🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: use Swing 1.0.3 - UIDefaults.getUI() failed

#12383
From: Matt Krevs
Date: Mon, 18 Jan 1999 00:00
37 lines
1813 bytes
Does this error occur when you use components other than JButton? If the
error occurs with numerous components then I would guess your problem is a
classpath problem. Doe you have all required Swing classes in your
classpath.

Try including swingall.jar in the classpath and see if the problem still
occurs

Lo�c Tr�gan wrote in message <77n2qe$2vi1@forums.borland.com>...
>Hi all,
>
>I've made a simple application, which works fine with JBuilder libraries
>(either from the dos prompt or from the IDE). Unfortunatly, when I execute
>it with swing 1.0.3 and jdk1.1.7, I get the following error for each swing
>component :
>
>"    UIDefaults.getUI() failed : no ComponentUI class for
>com.sun.java.swing.JButton[ ,0,0,OxO,invalid,
>layout=com.sun.java.swing.Overlaylayout ]"
>
>I use this command line to launch the application :
>    jre -cp autohhlp.jar autohhlp.Application1
>
>here are my environment variables :
>    set ClassPath="C:\Program
Files\JavaSoft\JRE\1.1\lib\rt.jar";"C:\Program
>Files\JavaSoft\JRE\1.1\lib\swingall.jar"
>
>    SET PATH="C:\PROGRA~1\JAVASOFT\JRE\1.1\BIN\";%path%
>
>here are the file versions :
>    rt.jar                      1346KB   11/11/98 21:07
>    swingall.jar           1957KB   30/06/98 14:43
>
>thanx for your help.
>
>
Technical Details
Message-ID: <77tldv$7j48@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <77n2qe$2vi1@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,a6c26cfd0fe7fe04
X-Google-Attributes: gid111d45,public
From: "Matt Krevs" <mattkrevs@flex.com.au>
Subject: Re: use Swing 1.0.3 - UIDefaults.getUI() failed
Date: 1999/01/18
Message-ID: <77tldv$7j48@forums.borland.com>
X-Deja-AN: 433761377
References: <77n2qe$2vi1@forums.borland.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing