Tutorial on Java Swing : Android training in chandigarh

Tutorial on Java Swing : Android training in Chandigarh

android training in chandigarh

In Today segments, We will discuss about the Java Swing in android training in Chandigarh
which is most concept in android.

Java Swing tutorial is a elements of Java Foundation Classes (JFC) that is made to make a window-
based applications. It is assembled on the top of AWT (Abstract Windowing Toolkit) API and entirely
written in java.peripherals.
The javax.swing package presents classes for java swing API such as JColorChooser, JButton,
JTextField,JRadioButton,JMenu,  JTextArea, JCheckbox, etc.

Hierarchy of Java Swing classes

The grouping of java swing API is given below.
Android training institute in Chandigarh

Swing is a components of Java Foundation classes (JFC), the other components of JFC are java2D
and Abstract window toolkit (AWT). AWT, Swing & Java 2D are used forconstructing graphical user
interfaces (GUIs) in java. In this tutorial we will mainly explain about Swing API which is used for
building GUIs on the top of AWT and are enough light-weight compared to AWT.In the upon example
we have used many components. Let’s discuss a bit about them first then we will learn  them in detail
in the next tutorials.
JFrame – A frame is an illustration of JFrame. Frame is a window that can have border, title, menu,
text fields buttons, and several other segments. A Swing application must have a frame to have the
peripherals added to it.

JPanel – A panel is an illustration of JPanel. A frame can have more than one group and each panel
can have several components. You can also call them parts of Frame. Panels are appropriate for align
components and placing them to appropriate place  in a frame.

JLabel – A label is an illustration of JLabel class. A label is text and images. If you want to provide a
string or an image on a frame, you can do so by using labels. In the above example we wanted to
display texts “User” & “Password” just before the text fields , we did this by creating and adding labels
to the appropriate positions.

JTextField – Used for occupying user inputs, these are the text boxes where user get in the data.

JPasswordField – It is related to text fields but the entered data gets hidden and displayed as dots
on GUI.

JButton – A button is an instance of JButton class. In the upon shown examples  we have a button
“Login”.

Android training in Chandigarh will provide the best It Techniques.

0 comments:

Post a Comment

Note: only a member of this blog may post a comment.