Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

why won't the headings appear?

 
Momo Sawada
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello... i'm here again.. thanks for everybody who helped my so far...
i've got a new problem... just started using some features of javax.swing.. and i'm just confused..or rather i don't know... why the column headings of my JTable won't appear...

codecode:


thank you!!!
 
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
Check out the recommended way of adding the table to a its parent http://download.oracle.com/javase/tutorial/uiswing/components/table.html#show
 
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
This would suit better on the UI forums.
Moving thread
 
Rob Spoor
Sheriff
Posts: 20822
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A JTable actually consists of two components - the JTable itself, and its JTableHeader. A JScrollPane will automatically handle the JTableHeader, for all other purposes you must add it yourself.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!