In this article we will look at how to create and work with various AWT controls available in the java.awt package along with sample code. We can add and remove controls to a Container like Applet and Frame using the following methods available in the Container class: Component add(Component ref) Component remove(Component ref) Label A label is a GUI control which can be used to display static text. Label can be created using the Label class and its constructors which are listed below: Label() Label(String str) Label(String str, int how) The parameter how specifies the text alignment. Valid values are
The post What are the basic AWT controls in java appeared first on Coding Security.
What are the basic AWT controls in java
read more
Tidak ada komentar:
Posting Komentar