• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How Can I Get the Column Names and Widths (in pixels) from a JTable

 
Kaydell Leavitt
Ranch Hand
Posts: 689
Eclipse IDE Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to save the column names and the column widths to disk and restore them for a JTable.

I don't see how to do this. Can somebody help me out?

-- Kaydell
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
your subject title says how do I get..., but the message say how do I save...

if you want to 'get' the info, here's a simple demo
run the demo, click button, drag one of the column widths wider, click button,
drag the columns around (different order), click button

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic