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
-1
votes
2 answers

How to make the defaulttablemodel table header bold

I want to make the header of a jtable with defaulttablemodel BOLD. Here's my code class TablePanel extends JPanel { private String[] COLUMNS = {"FAMILY MEMBERS", "STAR (NAKSHATRA)"}; private DefaultTableModel model = new…
human
  • 637
  • 4
  • 15
  • 41
-1
votes
1 answer

Unable to show column names in JTable

I created small form in Java in which used JTable and to fill the table. I used the following code. import net.proteanit.sql.DbUtils; try { CreateConnection(); PreparedStatement st =conn.prepareStatement("Select * from ABC;"); …
Nirav Kamani
  • 3,192
  • 7
  • 39
  • 68
-1
votes
1 answer

How to create a JTable like header, and use it as JTexPane header?

I need a JTextPane which has a header on top just like the one in a JTable. Basically I need a one row/column multiline JTable without having to go through all trouble crating renderes and editors. I tried adding a JLabel and JTextpane in a JPanel,…
Igor
  • 1,532
  • 4
  • 23
  • 44
-2
votes
1 answer

how java swing RGB color from database and JTable cell Bg color

hi i have save Jbutton RGB Background Color or Foreground Color into database after that i want to show background color into JTable cell. i have face problem when program result not show kindly guide me and i am not know more about JTable…
-2
votes
1 answer

Java get Bounds of a Column TableHeader

I need to get the rectangle of a single column in the Table Header. Is there a way to receive this information?
dbausnnd
  • 59
  • 1
  • 3
-3
votes
1 answer

Jtable header distorted

When I call the method updateTable() the table is displayed correctly but when I scroll the table horizontally some of the headers become distorted(wrong headers/headers overlap each other.). I am using Netbeans what shall I do? public void …
Akki
  • 1,221
  • 3
  • 14
  • 33
1 2 3
13
14