Senin, 23 Januari 2017

What are swing controls in Java Programming

In this article we will look at some of the swing controls available in javax.swing package along with sample Java code for each control.   Labels The JLabel class is used to display a label i.e., static text. A JLabel object can be created using any one of the following constructors: JLabel(Icon icon) JLabel(String str) JLabel(String str, Icon icon, int align) In the above constructors icon is used to specify an image to be displayed as a label. Icon is a predefined interface which is implemented by the ImageIcon class. str is used to specify the text to be displayed in the label and align

The post What are swing controls in Java Programming appeared first on Coding Security.


What are swing controls in Java Programming
read more

Tidak ada komentar:

Posting Komentar