Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Table header border

804629Nov 8 2010 — edited Nov 11 2010
I'm new to swing. Our application is implemented in the NetBeans Platform. I'm using a JList to as the RowHeaderView in a JScrollPane that
holds a JTable. I have implemented a ListCellRenderer that makes the ListCells look the same as the TableHeader cells.

Everything works fine if I implement this outside of the NetBeans platform but when I move it back in I have problems. The main issue is making the borders look the same.

I use UIManager.getBorder("TableHeader.cellBorder") but this does not return the same border when in NetBeans.
I tried to get it directly from the JTable with table.getTableHeader().getBorder() but it returns null.

When I look at the TableHeaderRenderer in the debugger it is com.sun.java.swing.plaf.windows.WindowsTableHeader.XPDefaultRenderer and I can't find this in the API.

I know this is not the NetBeans forum but I have not gotten an answer from them and I'm hoping someone can enlighten me on the basic concept of what is going on, the border must be somewhere? If someone could point me to some documentation or give me a hint I would be very grateful.

Thanks,
Bill
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 9 2010
Added on Nov 8 2010
13 comments
1,655 views