Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #2861 > unrolled thread
| Started by | "Chanchal" <chanchal@THRWHITE.remove-dii-this> |
|---|---|
| First post | 2011-04-27 15:41 +0000 |
| Last post | 2011-04-27 15:41 +0000 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.lang.java.gui
Changing color of a selec "Chanchal" <chanchal@THRWHITE.remove-dii-this> - 2011-04-27 15:41 +0000
Re: Changing color of a s "Tom N" <tom.n@THRWHITE.remove-dii-this> - 2011-04-27 15:41 +0000
Re: Changing color of a s "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:41 +0000
Re: Changing color of a s "Chanchal" <chanchal@THRWHITE.remove-dii-this> - 2011-04-27 15:41 +0000
| From | "Chanchal" <chanchal@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:41 +0000 |
| Subject | Changing color of a selec |
| Message-ID | <1c73ced4-a4a2-4711-80f9-b40f93c80ae9@s8g2000prg.googlegroups.com> |
To: comp.lang.java.gui
Hi All,
I do not know if this is a cross-posting. I have searched the
groups and couldn't find the info i wanted.
Apologies over, my problem is that, i want to change the color of a
JTable cell which is selected. Selection can happen by mouse click or
using arrow keys or tab key.
Kindly advice. Thanks in advance
Chanchal
---
* Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [next] | [standalone]
| From | "Tom N" <tom.n@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:41 +0000 |
| Subject | Re: Changing color of a s |
| Message-ID | <Xns9A02D858423F6ndt601946x@61.9.191.5> |
| In reply to | #2861 |
To: comp.lang.java.gui
Chanchal wrote:
> Apologies over, my problem is that, i want to change the color of a
> JTable cell which is selected. Selection can happen by mouse click or
> using arrow keys or tab key.
Different look-and-feels do this differently. You could change to a
different look-and-feel to see if it matches what you want.
You can subclass DefaultTableCellRenderer and get complete control. Your
JTable subclass should override
getCellRenderer(int row, int column)
or you may be able to use
setDefaultRenderer(Class columnClass, TableCellRenderer renderer)
on a straight JTable.
---
* Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:41 +0000 |
| Subject | Re: Changing color of a s |
| Message-ID | <7c79ceebb23e0@uwe> |
| In reply to | #2862 |
To: comp.lang.java.gui Tom N wrote: >>...want to change the color of a >> JTable cell which is selected. Selection can happen by mouse click or >> using arrow keys or tab key. > >Different look-and-feels do this differently. You could change to a >different look-and-feel to see if it matches what you want. Have you checked it, for e.g.* using the system PLAF? <http://www.physci.org/test/resize/> -- Andrew Thompson http://www.physci.org/ Message posted via JavaKB.com http://www.javakb.com/Uwe/Forums.aspx/java-gui/200712/1 --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "Chanchal" <chanchal@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:41 +0000 |
| Subject | Re: Changing color of a s |
| Message-ID | <432a990a-cc77-4ea3-86b0-4d0509566307@i12g2000prf.googlegroups.com> |
| In reply to | #2863 |
To: comp.lang.java.gui Hello Gentlemen, My application is already using a look and feel. So changing the look and feel is not an option. Anyway i have implemented it by creating a custom cell renderer Thanks agan, for the response Chanchal --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.gui
csiph-web