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 and repaint  RSS feed

 
keiyia jackson
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you repaint a jtable??
Keiyia
 
Meghna ks
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using this code :
JTable1.repaint();
JTable1.revalidate();
Meghna
 
keiyia jackson
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That doesn't repaint.
i have the capability of hiding them, but just can't get them back.
ok, here's the situation:
i have a split pane with a table on one side. on the menubar is a view option. it has 4 checkbox menuitems. i need for the the appearance to change everytime an item is selected or deselected. if selected, it needs to be hidden (which i already had). if deselcted, return to original state (which i can't get to worked).
 
Javaoops
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try out implementing TableModelListener in your AbstractTableModel.


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!