how to create a button in java

Java
JButton button = new JButton();
Source

Also in Java: