BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: JDBTable setSelectionForeground Problem: preserving the

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder DB Swing
View previous topic :: View next topic  
Author Message
Kevin Dean [TeamB]
Guest





PostPosted: Mon Sep 26, 2005 5:20 pm    Post subject: Re: JDBTable setSelectionForeground Problem: preserving the Reply with quote



Andreas Dörner wrote:

Quote:
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

--
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
Kevin Dean [TeamB]
Guest





PostPosted: Wed Sep 28, 2005 3:12 pm    Post subject: Re: JDBTable setSelectionForeground Problem: preserving the Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder DB Swing All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.