Add buttons in Java code