Re: JTable Background Color



hellbent4u@xxxxxxxxx wrote:
Hi all,

How does one access the grey-colored portion of a JTable that has not
been occupied by the rows? I want to fill color in that part. If
someone has an idea how t odo it, please tell me.

Thanx and Regards,
Ankur

Normally you have a JTable inside of a ScrollPane. Here is how you do it.
jScrollPane.setViewportView(jTable);
jScrollPane.getViewport().setBackground(Color.white);

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
.



Relevant Pages

  • Re: QuickFom question
    ... Knowledge is the "Fountain of Youth"' ... -William E. Taylor, Regular Guy ... I am not a big fan of MySQL but it easy to use and 95% of Hosting sites seem to run it.. ...
    (comp.lang.php)
  • Re: JDK 1.7.0 project
    ... Standard Edition 7 Binary Snapshot Releases ... Knowledge is the "Fountain of Youth"' ... -William E. Taylor, Regular Guy ...
    (comp.lang.java.softwaretools)
  • Re: java 1.5 supported app Servers
    ... It also supports J2EE 1.5 compliance. ... Knowledge is the "Fountain of Youth"' ... -William E. Taylor, Regular Guy ...
    (comp.lang.java.programmer)
  • Re: Quick question
    ... pass it to a function insertIntoDB() to issue the insert. ... Knowledge is the "Fountain of Youth"' ... -William E. Taylor, Regular Guy ...
    (comp.lang.php)
  • Re: use JFrame before it is constructed
    ... class MyClass ... Knowledge is the "Fountain of Youth"' ... -William E. Taylor, Regular Guy ...
    (comp.lang.java.gui)