Article View: borland.public.jbuilder.java.language
Article #15866Invisible MacLookAndFeel
From: D.Terzis
Date: Wed, 24 Mar 1999 00:00
Date: Wed, 24 Mar 1999 00:00
44 lines
2638 bytes
2638 bytes
Hi guys...
I am getting a strange problem ("neither class nor source found") using
JBuilder 2.0 (JDK 1.1.6) with Swing 1.1.1. Namely, I am trying to run the
MacLookAndFeel class, after declaring a variable of this type as follows
private static final LookAndFeel macLookAndFeel = new
com.sun.java.swing.plaf.mac.MacLookAndFeel();
and JBuilder (but also JDK 1.2, from the command line) complains that it's not
there... However, I can see the file lying under that path, plus I can declare
private static final LookAndFeel motifLookAndFeel = new
com.sun.java.swing.plaf.motif.MotifLookAndFeel();
without problems - the MotifLookAndFeel files being in the same package,
com.sun.swing.plaf, as MacLookAndFeel). The even more strange thing is that,
if I do a right mouse click over the macLookAndFeel variable and select
"Browse symbol at cursor", the IDE (correctly) loads the MacLookAndFeel
class!!!
Could it be that Sun has incorporated an if statement in the class loader,
preventing MacLookAndFeel from even being compiled? I am aware that for
copyright reasons they don't allow running this LookAndFeel in Windows
platforms (I run NT 4.0), but my impression so far was that one could
"surpass" this limitation by doing a simple method overload, like
private static final LookAndFeel macLookAndFeel = new
com.sun.java.swing.plaf.mac.MacLookAndFeel()
{
public boolean isSupportedLookAndFeel()
{
return true;
}
};
Any ideas?
Thanks,
Dimitris
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Technical Details
Message-ID:
<7db04p$7pj$1@nnrp1.dejanews.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,500d15439fc9b424,start X-Google-Attributes: gid111d45,public X-Google-Thread: 10cf9d,500d15439fc9b424,start X-Google-Attributes: gid10cf9d,public X-Google-Thread: f74b3,500d15439fc9b424,start X-Google-Attributes: gidf74b3,public X-Google-Thread: fa3e3,500d15439fc9b424,start X-Google-Attributes: gidfa3e3,public From: D.Terzis@Nortel.co.uk Subject: Invisible MacLookAndFeel Date: 1999/03/24 Message-ID: <7db04p$7pj$1@nnrp1.dejanews.com> X-Deja-AN: 458390866 X-Http-Proxy: 1.0 x11.dejanews.com:80 (Squid/1.1.22) for client 192.100.101.17 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Wed Mar 24 15:25:26 1999 GMT Newsgroups: borland.public.jbuilder.java.language,borland.public.jbuilder.java.swing,borland.public.jbuilder.ide,borland.public.jbuilder.non-technical X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I)