Top "Jtable" questions

JTable is a Java Swing component used to display and edit regular two-dimensional tables of cells.

How to refresh data in JTable I am using TableModel

Hi, I have created my TableModel and want to refresh JTable once I added a new row. What should be …

java swing jtable tablemodel
how to search an element in a JTable java?

I have made a JTable in java. I can do everything except search an element in my table. I want …

java swing search jtable
How to set column width in JTable/JXTable?

My application consists of several JTables resp. JXTables. The goal is to store column width and reload them on start …

java swing jtable column-width jxtable
JTable hide and show columns

I want to add some columns to a table (Swing JTable). Some of them will have a default size (e.…

java swing jtable
Java Swing JTable; Right Click Menu (How do I get it to "select" aka highlight the row)

Short: I need a "right-click event" to highlight the cell row. I am using a JTable inside a ScrollPane in …

java swing jtable right-click
How to sort JTable in shortest way?

I was searching for Sorting in JTable and I referred many articles, but couldn't get the easiest way to sort …

java swing sorting jtable tablerowsorter
java.lang.ArrayIndexOutOfBoundsException: 0 >= 0 attempting to populate JTable

I'm subclassing JTable and using a DefaultTableModel to model my table data. The following class sets up the JTable, and …

java swing jtable
How to add JTable in JPanel with null layout?

I want to add JTable into JPanel whose layout is null. JPanel contains other components. I have to add JTable …

java layout jtable layout-manager null-layout-manager
Setting column headers in JTable

I have the following JTable which uses a table model: http://s17.postimage.org/7zfh3l4lr/Screen_Shot_2012_03_10_at_15_11_31.…

java swing jtable jtableheader
How can I change JTable's header background color?

I've tried: table.getTableHeader().setBackground(Color.BLACK); Doesn't work. EDIT: This code doesn't work in my project only. Works in …

java swing netbeans jtable jtableheader