Adding multiple buttons: – java provide facility to add multiples button using setFocusable() method which requires Boolean value and will decide whether component can gain the focus or not, and also use requestFocusInWindow() method which will be let us the component the gain the focus on startup. Where we design three buttons and a text box with scroll bar using applet.