Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1866
| From | "Michael Dunn" <michael.dunn@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: Change the color of t |
| Message-ID | <4678255e$1@dnews.tpgi.com.au> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1182242246.382044.43420@k79g2000hse.googlegroups.com> |
| Date | 2011-04-27 15:35 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui <deel007@googlemail.com> wrote in message news:1182242246.382044.43420@k79g2000hse.googlegroups.com... > Hello, > > I am trying to custumize a JCheckbox by changing the color of the > checkmark , but i dont know how !! > any idea ? Open the source code of MetalIconFactory copy the static inner class CheckBoxIcon add it as an inner class to your program change the color in drawCheck() set the new icon, either a) use a CheckBox constructor with icon as argument, or b) *both* checkbox.setIcon(...) and checkbox.setSelectedIcon(...) --- * 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
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Change the color of the c "deel007" <deel007@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
Re: Change the color of t "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
Re: Change the color of t "Laird Nelson" <laird.nelson@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
Re: Change the color of t "Michael Dunn" <michael.dunn@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
Re: Change the color of t deel007@googlemail.com.remove-dii-this - 2011-04-27 15:35 +0000
csiph-web