java creating a button from scratch code example Example: how to create a button in java JButton button = new JButton();