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


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

Re: cobbling a ComboBox

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!transit3.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "Albretch Mueller" <albretch.mueller@THRWHITE.remove-dii-this>
Subject Re: cobbling a ComboBox
Message-ID <1214321081.136206@nntp.acecape.com> (permalink)
X-Comment-To comp.lang.java.gui
Newsgroups comp.lang.java.gui
In-Reply-To <g3pac7$aki$1@registered.motzarella.org>
References <g3pac7$aki$1@registered.motzarella.org>
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 76
Date Wed, 27 Apr 2011 15:46:27 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303919187 96.60.20.240 (Wed, 27 Apr 2011 10:46:27 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:46:27 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:3705

Show key headers only | View raw


  To: comp.lang.java.gui
Daniele Futtorovic wrote:

> Try UIManager.getColor(Object).
 
 Actually I had done both.

 If you go:

  JFrame JFrm = new JFrame(" Seting Parsing Rules for: ");
  Clr = UIManager.getColor(JFrm);
System.out.println("// __ UIManager.getColor(JFrm): |" + Clr + "|");

 you will get:

// __ UIManager.getColor(JFrm): |null|

> You might try to dump all the UIManager keys
(UIManager.getDefaults().keySet()) and look for the appropriate key.

 That I did also via:

  String aKey;
  Hashtable HTUIDef = UIManager.getDefaults();
  Enumeration HTKeys = HTUIDef.keys();
  while(HTKeys.hasMoreElements()){
   Object ObjKey = HTKeys.nextElement();
   if(ObjKey instanceof String){
. . .
   }
  }

 But I don't see which of these is the one I need

sh-3.1# cat t.txt | grep Color
// __ |TabbedPane.contentAreaColor|
// __ |List.dropLineColor|
// __ |InternalFrame.borderColor|
// __ |ToolBar.borderColor|
// __ |Slider.tickColor|
// __ |Tree.dropLineColor|
// __ |Table.dropLineColor|
// __ |ColorChooser.swatchesRecentSwatchSize|
// __ |ColorChooser.swatchesSwatchSize|
// __ |SplitPane.dividerFocusColor|
// __ |ColorChooser.foreground|
// __ |ColorChooser.swatchesDefaultRecentColor|
// __ |Table.gridColor|
// __ |SplitPaneDivider.draggingColor|
// __ |TabbedPane.borderHightlightColor|
// __ |Tree.selectionBorderColor|
// __ |MenuBar.borderColor|
// __ |ColorChooser.background|
// __ |Table.sortIconColor|
// __ |TitledBorder.titleColor|
// __ |Table.dropLineShortColor|
// __ |ColorChooserUI|
// __ |Slider.altTrackColor|
sh-3.1# cat t.txt | grep color
// __ |RootPane.colorChooserDialogBorder|
~ 
> Chances are such nuanced behaviour as you want may not be available.
~ 
 They are nuanced behaviours but I am trying to be a little more intuitive
to the user (in my understanding) and make the best use of the window's
real estate
~ 
 Thank you Daniele.
 Daniele for president!!! ;-) (Well, I could tell you may not be that bored
to become a politician)
 lbrtchx

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


Thread

cobbling a ComboBox "Albretch Mueller" <albretch.mueller@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
  Re: cobbling a ComboBox "Daniele Futtorovic" <daniele.futtorovic@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
    Re: cobbling a ComboBox "Albretch Mueller" <albretch.mueller@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
      Re: cobbling a ComboBox "Daniele Futtorovic" <daniele.futtorovic@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
        Re: cobbling a ComboBox "Albretch Mueller" <albretch.mueller@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
          Re: cobbling a ComboBox "Daniele Futtorovic" <daniele.futtorovic@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
            Re: cobbling a ComboBox "Daniele Futtorovic" <daniele.futtorovic@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
              Re: cobbling a ComboBox "Albretch Mueller" <albretch.mueller@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
                Re: cobbling a ComboBox "Daniele Futtorovic" <daniele.futtorovic@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000

csiph-web