Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #216

Re: JSlider Set knob Colo

From "Michael Rauscher" <michael.rauscher@THRWHITE.remove-dii-this>
Subject Re: JSlider Set knob Colo
Message-ID <ekglmm$n78$1@registered.motzarella.org> (permalink)
Newsgroups comp.lang.java.gui
References <1164673389.007931.164770@h54g2000cwb.googlegroups.com>
Date 2011-04-27 15:26 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
Leit*o schrieb:
> Bart...Thanks for your answer...it really worked for me. Hey...Where
> did you find this properties like "Slider.gradient" and
> "Slider.focusGradient". Do you know some place where I can get all the
> properties I can set like this.
> 

It's always good to have a look at the source code. This way you learn 
much more than just the available properties. Of course, this is only 
possible if you have the source code of the look & feel under 
investigation...

Anyway, to get a list of properties of the current look & feel:

System.out.println( UIManager.getLookAndFeelDefaults().keySet() );

Or to get an alphabetically ordered list:

List<Object> keys = new ArrayList<Object>(
         UIManager.getLookAndFeelDefaults().keySet() );

Collections.sort( keys, new Comparator<Object>() {
     public int compare( Object o1, Object o2) {
         return ((String)o1).compareTo((String)o2);
     }
     public boolean equals() { return false; }
});

for ( Object key : keys )
     System.out.println( key );


Bye
Michael

---
 * 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 | NextPrevious in thread | Find similar


Thread

JSlider Set knob Color "Leitão" <¶év‰ï@THRWHITE.remove-dii-this> - 2011-04-27 15:25 +0000
  Re: JSlider Set knob Colo "Bart Cremers" <bart.cremers@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
    Re: JSlider Set knob Colo "Leitão" <¶év‰ï@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
      Re: JSlider Set knob Colo "Michael Rauscher" <michael.rauscher@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000

csiph-web