Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1969 > unrolled thread
| Started by | "Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this> |
|---|---|
| First post | 2011-04-27 15:36 +0000 |
| Last post | 2011-04-27 15:36 +0000 |
| Articles | 8 — 5 participants |
Back to article view | Back to comp.lang.java.gui
Look and feel: Metal them "Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: Look and feel: Metal "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: Look and feel: Metal "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: Look and feel: Metal "Karsten Lentzsch" <karsten.lentzsch@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: Look and feel: Metal "Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: Look and feel: Metal "Karsten Lentzsch" <karsten.lentzsch@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: Look and feel: Metal "Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: Look and feel: Metal "IchBin" <ichbin@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
| From | "Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:36 +0000 |
| Subject | Look and feel: Metal them |
| Message-ID | <1183737111.695357.197710@g4g2000hsf.googlegroups.com> |
To: comp.lang.java.gui Hi all! I am using a bunch of look and feels as displayed on www.javootoo.com. However, some look and feels seem to change the MetalLookAndFeel permanently. Anytime I instantiate a new MetalLookAndFeel object, the changed colors from a previous LnF are still active. Even setting a new DefaultMetalTheme() via MetalLookAndFeel.setCurrentTheme before instantiating the LnF instance doesn't seem to help. This also affects all LnF's that are based on Metal, like JGoodies, Compiere, and others. What's wrong? Does anyone know the magic of how to cure this? How? Karsten --- * 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 | "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:36 +0000 |
| Subject | Re: Look and feel: Metal |
| Message-ID | <m7ts83lfbkn8ga2pvlttjaao99s8e1ee5k@4ax.com> |
| In reply to | #1969 |
To: comp.lang.java.gui On Fri, 06 Jul 2007 08:51:51 -0700, Karsten Wutzke <kwutzke@web.de> wrote, quoted or indirectly quoted someone who said : >I am using a bunch of look and feels as displayed on www.javootoo.com. >However, some look and feels seem to change the MetalLookAndFeel >permanently. Anytime I instantiate a new MetalLookAndFeel object, the >changed colors from a previous LnF are still active. What happens if you reboot? Is there any chance thing info is being cached in a Java DLL? -- Roedy Green Canadian Mind Products The Java Glossary http://mindprod.com --- * 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:36 +0000 |
| Subject | Re: Look and feel: Metal |
| Message-ID | <74d03149ad5d5@uwe> |
| In reply to | #1969 |
To: comp.lang.java.gui Karsten Wutzke wrote: .. >I am using a bunch of look and feels as displayed on www.javootoo.com. >However, some look and feels seem to change the MetalLookAndFeel >permanently. Anytime I instantiate a new MetalLookAndFeel object, the >changed colors from a previous LnF are still active. From vague memory, that is a bug in the ML&F. Something to do with statics. Ensure it never appears, and most of the other PLAF's should work just fine. >...This also affects all LnF's that are based on >Metal, like JGoodies, ... Yes. It while using JGoodies that I first noticed the problem. -- Andrew Thompson http://www.athompson.info/andrew/ Message posted via http://www.javakb.com --- * 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 | "Karsten Lentzsch" <karsten.lentzsch@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:36 +0000 |
| Subject | Re: Look and feel: Metal |
| Message-ID | <f6od7q$q8h$02$1@news.t-online.com> |
| In reply to | #1969 |
To: comp.lang.java.gui Karsten Wutzke wrote: I provide a demo with sources that shows how to properly change the L&f and/or MetalTheme(-Extension) at runtime. You can download the JGoodies Looks Demo for the binaries, and find the switching code and theme implementations in the JGoodies Looks sources. There are a bunch of issues that the L&f provider must take care of, as well as the developer that wants to switch an L&f at runtime. The L&f provider should use the proper store (AppContext based), should change the UIDefault table at L&f-level, not user-level, and must not store state in static variables - unless they are properly invalidated on L&f and theme change. When switching a theme or L&f, the developer must traverse the component tree and all components that will be displayed later but are not currently in the component tree. This can be done by overriding the appropriate #updateUI methods. To summarize, the costs to properly switch an L&f at runtime are very high. Therefore I recommend to most developer to choose an L&f at runtime, and use it when restarting the app. -Karsten Lentzsch > I am using a bunch of look and feels as displayed on www.javootoo.com. > However, some look and feels seem to change the MetalLookAndFeel > permanently. Anytime I instantiate a new MetalLookAndFeel object, the > changed colors from a previous LnF are still active. > > Even setting a new DefaultMetalTheme() via > MetalLookAndFeel.setCurrentTheme before instantiating the LnF instance > doesn't seem to help. This also affects all LnF's that are based on > Metal, like JGoodies, Compiere, and others. > > What's wrong? Does anyone know the magic of how to cure this? How? --- * 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 | "Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:36 +0000 |
| Subject | Re: Look and feel: Metal |
| Message-ID | <1183838623.164207.265870@k79g2000hse.googlegroups.com> |
| In reply to | #1975 |
To: comp.lang.java.gui On 7 Jul., 17:58, Karsten Lentzsch <kars...@jgoodies.com> wrote: > Karsten Wutzke wrote: > > I provide a demo with sources that shows how to properly > change the L&f and/or MetalTheme(-Extension) at runtime. > You can download the JGoodies Looks Demo for the binaries, > and find the switching code and theme implementations in > the JGoodies Looks sources. > > There are a bunch of issues that the L&f provider must > take care of, as well as the developer that wants to switch > an L&f at runtime. > > The L&f provider should use the proper store (AppContext based), > should change the UIDefault table at L&f-level, not user-level, > and must not store state in static variables - unless they are > properly invalidated on L&f and theme change. > > When switching a theme or L&f, the developer must traverse > the component tree and all components that will be displayed > later but are not currently in the component tree. This can > be done by overriding the appropriate #updateUI methods. > > To summarize, the costs to properly switch an L&f at runtime > are very high. Therefore I recommend to most developer to > choose an L&f at runtime, and use it when restarting the app. > > -Karsten Lentzsch > > > I am using a bunch of look and feels as displayed onwww.javootoo.com. > > However, some look and feels seem to change the MetalLookAndFeel > > permanently. Anytime I instantiate a new MetalLookAndFeel object, the > > changed colors from a previous LnF are still active. > > > Even setting a new DefaultMetalTheme() via > > MetalLookAndFeel.setCurrentTheme before instantiating the LnF instance > > doesn't seem to help. This also affects all LnF's that are based on > > Metal, like JGoodies, Compiere, and others. > > > What's wrong? Does anyone know the magic of how to cure this? How? Have to take a look at it. Got another one: Do look and feels use the UIManager's UIDefaults class to store *new* keys in it when switched to? Karsten --- * 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 | "Karsten Lentzsch" <karsten.lentzsch@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:36 +0000 |
| Subject | Re: Look and feel: Metal |
| Message-ID | <f6r1mi$26k$03$1@news.t-online.com> |
| In reply to | #1977 |
To: comp.lang.java.gui Karsten Wutzke wrote: > [...] > Got another one: > > Do look and feels use the UIManager's UIDefaults class to store *new* > keys in it when switched to? L&fs store and retrieve data in the UIDefaults table. There are no new and old values; each L&f can define its own keys, types, and values - except the class default that map names to UI delegates. However, many L&fs share many keys. -Karsten --- * 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 | "Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:36 +0000 |
| Subject | Re: Look and feel: Metal |
| Message-ID | <1183983740.954240.62100@n60g2000hse.googlegroups.com> |
| In reply to | #1975 |
To: comp.lang.java.gui On 7 Jul., 17:58, Karsten Lentzsch <kars...@jgoodies.com> wrote: > Karsten Wutzke wrote: > > I provide a demo with sources that shows how to properly > change the L&f and/or MetalTheme(-Extension) at runtime. > You can download the JGoodies Looks Demo for the binaries, > and find the switching code and theme implementations in > the JGoodies Looks sources. > snip > > -Karsten Lentzsch > Hmm I downloaded the sources but I could't find the code you mean. Can you point me into the right direction or tell me the source file name? Karsten --- * 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 | "IchBin" <ichbin@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:36 +0000 |
| Subject | Re: Look and feel: Metal |
| Message-ID | <ItKdnXXb8NmrLA7bnZ2dnUVZ_h7inZ2d@comcast.com> |
| In reply to | #1988 |
To: comp.lang.java.gui Karsten Wutzke wrote: > On 7 Jul., 17:58, Karsten Lentzsch <kars...@jgoodies.com> wrote: >> Karsten Wutzke wrote: >> >> I provide a demo with sources that shows how to properly >> change the L&f and/or MetalTheme(-Extension) at runtime. >> You can download the JGoodies Looks Demo for the binaries, >> and find the switching code and theme implementations in >> the JGoodies Looks sources. >> > snip >> -Karsten Lentzsch >> > > Hmm I downloaded the sources but I could't find the code you mean. Can > you point me into the right direction or tell me the source file name? > > Karsten > Think Karsten is referring to: package com.jgoodies.looks.demo.DemoFrame -- Thanks in Advance... http://weconsulting.org IchBin, Philadelphia, Pa, USA http://ichbinquotations.weconsulting.org ______________________________________________________________________ 'If there is one, Knowledge is the "Fountain of Youth"' -William E. Taylor, Regular Guy (1952-) --- * 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