 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Kevin Dean [TeamB] Guest
|
|
| Back to top |
|
 |
Kevin Dean [TeamB] Guest
|
Posted: Wed Sep 28, 2005 3:12 pm Post subject: Re: JDBTable setSelectionForeground Problem: preserving the |
|
|
Andreas Dörner wrote:
| Quote: | Kevin Dean [TeamB] schrieb:
Andreas Dörner wrote:
Hi !
I am using a ColumnPaintListener to color specific rows in my JDBTable
depending on the values in the cells. If i select a row with e.g. a red
foreground color, the default Renderer always sets the foreground white
and the background blue. I know i can set the selection color for the
whole Table with setSelectionForeground.
What can i do to preserve the foreground color when a row is selected ? I
would like to use the default renderer of the JDBTable. I know, writing
my own Renderer would solve this.
This thread should help:
http://groups.google.ca/group/borland.public.jbuilder.dbswing/browse_thread/thread/3a9bbb0e3f385a2a/c63618ee18b4bf5b
thanks for the answer, but..
..as far as i understand this example it only set the background. This is
no Problem for me, the problem is if i selecet a row in a JDBTabel with
custom background, the background is always white and the foreground
always blue. (in my case)
If i have only one row in a table and one row is always selected, the user
can not see if this row has a custom background.
|
I'm not aware of any ability to change the colour of the currently
selected row.
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html
Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|