by Dinesh Thakur Category: Swing

Java graphics programming is possible using AWT i.e. Abstract Window Toolkit and swing components. Swing is a set of classes. These classes provide the components that are more powerful and flexible than AWT.

 
by Dinesh Thakur Category: Swing

Swing, a part of Java Federation Classes (JFC) is the next generation GUI toolkit that allows us to develop large scale enterprise applications in Java. It is a set of classes which provides many powerful and flexible components for creating graphical user interface. Earlier, the concept of Swing did not exist in Java and the user interfaces were built by using the Java's original GUI system, AWT. Because of the limitations of the AWT, Swing was introduced in 1997 by the Sun Microsystems. It provides new and improved components that enhance the look and functionality of GUIs.

 
by Dinesh Thakur Category: Swing

A JPanel is an invisible window on which they are located and arranged the elements in the window. We can insert any type of components within a panel, including other panels. This feature is essential when creating complex graphical interfaces you have to use different Layout Managers.

 
by Dinesh Thakur Category: Swing

A combo box is a combination of a list component and text field component. It can consist of more than one item, however, displays only one item at any point of time. It also allows user to type their selection. Unlike list component, combo box allows user to select only one item at a time. A combo box is an object of JComboBox class.

 
by Dinesh Thakur Category: Swing

The radiobutton component is a two state button which can either be selected or not selected, similar to a checkbox component. However, unlike checkboxes, the radiobuttons are associated with a group and only one radiobutton in a group can be selected. When the radiobutton in the group is selected, any other previously selected radiobutton in the group is deselected. The JRadioButton class is a subclass of JToggleButton which is further a subclass of AbstractButton.

 
by Dinesh Thakur Category: Swing

A scroll pane is a container that represents a small area to view other component. If the component is larger than the visible area, scroll pane provides horizontal and/or vertical scroll bars automatically for scrolling the components through the pane. A scroll pane is an object of the JScrollPane class which extends JComponent.

 
by Dinesh Thakur Category: Swing

A list components allows user to select a single or multiple items from a given list of items by clicking on each. By default, a user can select multiple items, however it is also possible to create a list from which user can choose only a single item.

 
by Dinesh Thakur Category: Swing

As a group of radio buttons, a drop-down list is a form of forcing the user to select only one element of a group of possibilities. However, it is a more compact way to do this, and is easier to change the elements of the list without surprising the user.

 
by Dinesh Thakur Category: Swing

The java.awt.event.TextListener interface allows to react to changes the text contained in components of type TextField and TextArea. The addTextListener () method enables a text component to generate user events. the method TextValueChanged () receives events.



 
by Dinesh Thakur Category: Swing

Event: An event is a signal to the program that something has happened. It can be triggered by typing in a text field, selecting an item from the menu etc. The action is initiated outside the scope of the program and it is handled by a piece of code inside the program. Events may also be triggered when timer expires, hardware or software failure occurs, operation completes, counter is increased or decreased by a value etc.

 

Page 1 of 16



About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.



Related Articles