Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tableheader colour.??  RSS feed

 
Raji Raj
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

posted Today 2:12:45 PM 0
hi ,

this s my code::
table = new JTable(new DefaultTableModel());
((DefaultTableModel) table.getModel()).setDataVector(vData, vCols);

table.setShowGrid(true);
table.setPreferredScrollableViewportSize(new Dimension(990,17));
table .setDragEnabled(false);
table .getTableHeader().setReorderingAllowed(false);
table.getTableHeader().setBackground(Color.gray);
but my table header not changing to gray colour..Anyone please help to resolve this.
Thanks...
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please stop posting the same question over and over again; once is enough.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!