Multiple Selection import java.applet. Scrollbars import java.applet. The parameter 10 is the starting point. Everytime we click, we increase the value of the scrollbar by 5. I still have to see a scrollbar which reposes in the centre of a window.
Labels import java.awt.
We add it to the current Applet window. When you run the above code, you see a label on the screen. Here we explicitly state the layout we desire, viz., BorderLayout. Then we add the Label to the North. In this way, we can control the positioning of a label.