Changing the Column name in JTable

The JTable class is a component of Swing programming which presents the user data within a scrolltable.Changing the name of the Column in JTable we use the method ChangeName().

JLabel in Java Swing

As frame, panels, and applets are Swing components, similarly labels are also Swing components. The idea behind using JLabel is to display an area for a short text string or an image, or both. Labels do not respond to input events;hence, JLabel does not receive the keyboard focus. The label can be aligned by setting the label’s contents using the vertical and horizontal alignment.

How to Use JList in Swing

A list is a simple presentation of choices, which are large in number. As a Swing Component, list is written as JList. The JList component is defined as a component, which provides a set of items that are scrollable, from which, one or more items may be selected.

 

How to use Slider in Java

JSlider is used to design the slider in the JFrame and user can select a value from a range(min to max).A slider is bounded by a minimum(in this example(1 is the min)) and maximum value(in this example (200is the max)).

Changing a JButton text in Java

The label of the button is changed using the setText() method .Pushbuttons and Command Buttons as they are commonly known are an integral part of GUI(Graphical user interface).A button is the easiest way to trap the user action.

Page 7 of 12

About Us

Rekha SetiaRekha Setia is a passionate blogger of Extra Computer Notes. if you have any ideas or any request me @