What is JTable and what is its purpose?
Answers were Sorted based on User's Feedback
Answer / sathiq
JTable is a Swing Componenet which is used to show the datas
in table format. It contains many custom models
| Is This Answer Correct ? | 78 Yes | 9 No |
Answer / p.sakthivel
We can make it like spreadsheet and we can modify the
cells for JTextField, JCheckBox , JComboBox etc., by using
TableCellEditor.
To design an input dialog for Student database
we can make it by simple table by using JTable and
TableModel no need to design dialog with JButton and
JLabels with Layout
| Is This Answer Correct ? | 44 Yes | 7 No |
Answer / shrikrishna kashid
With the JTable class you can display tables of data,
optionally allowing the user to edit the data. JTable does
not contain or cache data; it is simply a view of your data.
| Is This Answer Correct ? | 15 Yes | 12 No |
Answer / narmada
The JTable is used to display and edit regular two-dimensional tables of cells.
The JTable has many facilities that make it possible to customize its rendering and editing but provides defaults for these features so that simple tables can be set up easily. For example, to set up a table with 10 rows and 10 columns of numbers:
TableModel dataModel = new AbstractTableModel() {
public int getColumnCount() { return 10; }
public int getRowCount() { return 10;}
public Object getValueAt(int row, int col) { return new Integer(row*col); }
};
JTable table = new JTable(dataModel);
JScrollPane scrollpane = new JScrollPane(table);
| Is This Answer Correct ? | 10 Yes | 9 No |
am searching for the job based on java, swing, currently working small company. they are not giving any salary slip, offer letter. so if i try outside for MNC's they start with previous company details. what should i do..? please help me to get job and make my career.
Is javafx better than swing?
When i m clicking on next another frame is open but i want to hide the previous frame...........but it is not happening....still both frame are visible........how to make one frame to hide.......please help me.......
what is difference between checked and unchecked exception plz explain examples ?
What is the role of java swing?
How to link two forms in java swing?
Which package is needed for swing components?
What are the benefits if Swing over AWT?
What is the use of jcomponent class in swing?
Is swing still used?
Which layout does swing use by default?
What are the containers available in swing?