how to make html button do something with java code example Example: how to create a button in java JButton button = new JButton();