Java JTableThe JTable class is used to display data in tabular form. It is composed of rows and columns. JTable class declarationLet's see the declaration for javax.swing.JTable class. Commonly used Constructors:
Java JTable ExampleOutput: Java JTable Example with ListSelectionListenerOutput: If you select an element in column NAME, name of the element will be displayed on the console:
Next TopicJava JList
|