🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #12913

problem using JDK 1.2b4 and Swing 1.1b3

#12913
From: Paul Erion
Date: Mon, 19 Oct 1998 00:00
29 lines
1761 bytes
I'm puzzled ... I'm attempting ot test some of the features of JDK 1.2
Beta 4 and Swing 1.1 Beta 3, but I'm having difficulty constructing
the most trivial of examples.  For my project properties I've set up
the target JDK as per Blake Stone's directions, and the only Java
library that I've included is Swing 1.1 Beta 3 [the classpath being
set to swingall.jar].  I create a new project, [via the Project
Wizard], then I go to the "File" menu, select "New..." and click on
"Application", check "Use only core JDK and Swing classes" in the
Application Style" section, fill out the text fields [giving names to
things] and that's it.  Now when I build the project, I get the error
"Error: (24) method
setLookandFeel(com.sun.java.swing.plaf.windows.WindowLookAndFeel) not
found in class com.sun.java.swing.UIManager."

The wizard has decided to include "import
com.sun.java.swing.UIManager;".  If I change that to "import
javax.swing.UIManager;", the thing compiles.  So in some sense, my
question becomes why is "com.sun.java.swing.UIManager" being imported
instead of "javax.swing.UIManager" when I'm using Swing 1.1 [at least
I think I am].

Any help would be greatly appreciated ... and if I haven't adequately
explained what I've done please feel free to ask.

Thanks,

:Paul

p.s., I using JBuilder 2 Pro on NT 4.0 sp3
Technical Details
Message-ID: <362b5a90.242635765@news6.bellatlantic.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,35319f0fde361099,start
X-Google-Attributes: gid111d45,public
From: erion@within.com (Paul Erion)
Subject: problem using JDK 1.2b4 and Swing 1.1b3
Date: 1998/10/19
Message-ID: <362b5a90.242635765@news6.bellatlantic.net>
X-Deja-AN: 402894541
Organization: Bell Atlantic Internet Solutions
Newsgroups: borland.public.jbuilder.java.swing