Questions tagged [jtableheader]

JTableHeader is the Swing component which manages the header of the JTable.

JTableHeader is the Swing component which manages the header of the JTable. It displays the column headers and unlike other rows stays visible on top as the table scrolls vertically in JScrollPane.

JTableHeader also handles resizing, rearrangement and sorting of columns in response to mouse inputs.

201 questions
0
votes
1 answer

column names are not displaying in Jtable

Possible Duplicate: JTable won’t show column headers How to see column labels in JTable? I'm creating a user registration form using swing. Some labels are not displayed properly and column names aren't displayed either. Below is my code: import…
developer
  • 9,116
  • 29
  • 91
  • 150
0
votes
1 answer

How to remove the table column headers from Jqgrid subgrid

I have the following jqgrid subgrid: http://jsfiddle.net/mojarame/uDd9J/34/ I am trying to configure it like the following html table that has the jExpander Plugin http://jsfiddle.net/mojarame/S5V6C/12/ But the column headers in the first JS Fiddle…
Amen Ra
  • 2,843
  • 8
  • 47
  • 85
0
votes
1 answer

Unable to introduce Text in next line when using Header Checkbox

I'm definitely not the best at explaining problem but let me try. I have an applet with me. In a JTabel I have one column as checkbox. I want to have text added to it in the header only such that I have some text and than in the next line I have…
0
votes
1 answer

Is it possible for JTable column headers to be verticaly aligned?

I'm working on a hotel booking timeline feature for hotel management system. I have a JTable where rows represent rooms and columns represent days. If room is booked for that day, the corresponding cell is highlighted. Since these cells don't have…
vedran
  • 2,167
  • 9
  • 29
  • 47
0
votes
2 answers

Different color in header of JTable

I have encountered a problem where if I use the main method in the same java file that contains the code for the JFrame which contains a JTable, and where I set the header color to yellow, when I run it , the header will be yellow. However, if I…
Laughy
  • 1,949
  • 5
  • 20
  • 22
0
votes
1 answer

Why is my JTable not showing up?

My JTable is not showing up. I don't have a clue why. maybe you can help me. I have a Window Class which has a right panel and the right panel should show a table with model data. I have used dummy data to start off with such as Month and Days. Here…
Soliman Soliman
  • 159
  • 1
  • 4
  • 17
0
votes
3 answers

Java: Code sample to provide summary statistics for selected column

I'm writing a program to do some statistical analysis on data imported from a csv file or database. I can get the data loaded into a jTable and displayed but I'm struggling with the next step. I would like to be able to click on a column heading…
screechOwl
  • 27,310
  • 61
  • 158
  • 267
-1
votes
1 answer

JTableHeader Font not changing

I'm trying to change the font of the headers in my JTable but the setFont method isn't working. I tried using the setFont on the renderer but that didn't work. I tried using UIDefaults but that didnt work either. I tried calling setFont on the…
Ashley
  • 1
  • 3
-1
votes
1 answer

why JTable header column is set dragged?

In a JPanel form there is a JTable. For some reason I've started receiving the following error when opening the form second time (and all following times) after doing some operations in it: Exception in thread "AWT-EventQueue-0"…
asph galax
  • 19
  • 6
-1
votes
1 answer

Groupable dynamic table header

I have some difficulty developing the following result (as below image) I want to make this table dynamically / automatically, where I have a list based on a model class and dynamically generate the columns exactly as the image shows, however,…
Geizon T.
  • 11
  • 5
-1
votes
1 answer

My jTable is not showing any coloumn headers

I am trying to add a jTable in my class MyPage which has a tabbedPane in it. I am able to call my jTable in it and the table is perfectly visible but the column headers are not. I have even tried to add my table in a scrollPane but that also doesn't…
-1
votes
1 answer

Table won't show header and resize

Trying to make frame that looks something like this: Class methods table This is what I've wrote so far: public class Dialog { private JFrame frame; private JPanel labelPanel; private JPanel buttonPanel; private JButton button1; private JButton…
squlerr
  • 11
  • 8
-1
votes
1 answer

Why does MouseListener on JTableHeader throw ArrayIndexOutOfBoundsException?

I'm just starting out with swing, but I've been stuck on this issue for about a week and I've tried everything I can think. I'm trying to update the table model as the result of a click on a column header and getting an…
-1
votes
1 answer

Dynamic Change JTable Header

I have a table displaying data for a year. The table can have different periods for each column, e.g. weeks, bi-weeks, months. I wish to change the year being displayed. I have managed to get the table data and header to change, however, the…
user4031188
-1
votes
1 answer

JTable - Sorting rendered values column

In JTable, all the columns can be sorted by using Table.setAutoCreateRowSorter(true); method. But the sorting is not properly in one column in that table which contains cell renderer. If you have any idea about it, please reply.
1 2 3
13
14