Rabu, 19 Oktober 2016

How to work with swing operations in java

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 How to work with swing operations in java appeared first on Coding Security.


How to work with swing operations in java
read more

Tidak ada komentar:

Posting Komentar