Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable in Headless Mode  RSS feed

 
Steve Sinai
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Does anyone know if it's possible to create a JTable (along with the table header) in headless mode? I've not been having much luck, and I'm not even sure it's possible. But I could be wrong.

Thanks,
Steve Sinai
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By headless mode I presume you dont want to display the table
header.

To achieve this do the following:



In a nutshell, whenever you wrap a table inside a JScrollPane and then
add the scrollpanel to the container, the headers are always displayed.
On the other hand, if you dont wrap it inside the JScrollPane, you need
to add the header explicitly.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!