Article View: borland.public.jbuilder.java.swing
Article #11572Re: Look and Feel
From: Tor Iver Wilhelmsen
Date: Fri, 07 May 1999 00:00
Date: Fri, 07 May 1999 00:00
40 lines
2328 bytes
2328 bytes
"Terry Diederich" <terrydiederich@lllow.com> writes: > It seems like Sun is positioning the Java Look and Feel (formerly called > Metal) to be the "standard" look and feel for Java applications that will be > cross platform. How is it really being used? Unless you explicitly set the L&F by involking e.g. UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); it will use the "cross-platform" L&F, which is Metal. > Are applications using the look and feel of the platform they are running on > (i.e. use Windows L&F if running on Windows, Motif L&F if running on Unix, > Mac L&F if running on a Mac), or is Metal used no matter what the platform? We use the system L&F, but mainly because we're supposed to "mirror" an existing Win32 application written in FoxPoo. > Is it normal to let the users decide which L&F to use through some sort of > options or preference settings? Is this a good idea? Are there > compatibility problems between one L&F and the next? Some L&Fs can be incomplete or buggy, and largely didn't work properly in 1.03 - you need 1.1.1 to get a reasonably stable Swing, and e.g. the JBuilder 2 JBCL classes build on the 1.0.x naming scheme. The 2.01x patch provides alternative versions which use the 1.1.x naming. Also, switching L&Fs can be "incomplete", depending on how your application is managed: updateComponentTreeUI() seems to ignore non-visible or otherwise "swapped out" components. > I remember hearing that there was some sort of lock on the Windows L&F to > prevent it from running on other platforms. Sun wasn't sure they had the > rights to distribute the L&F and Microsoft wouldn't give their approval. Is > this true? Yes. However, people frequently post the common workaround: To subclass it and have isSupportedLookAndFeel() (or whatever it's called) return true.
Technical Details
Message-ID:
<u4slp9uw4.fsf@sds.no>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7gsk6j$cj812@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,e3ac46a321fb0962 X-Google-Attributes: gid111d45,public From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no> Subject: Re: Look and Feel Date: 1999/05/07 Message-ID: <u4slp9uw4.fsf@sds.no> X-Deja-AN: 475073756 Sender: towi@SDSA1761 References: <7gsk6j$cj812@forums.borland.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing