🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Problem to run swing app in a Mac

#11493
From: Computer Center Macintosh User
Date: Wed, 26 May 1999 00:00
61 lines
2287 bytes
This is a multi-part message in MIME format.
--------------5EAEA742B9525D098B7060A1
Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353"
Content-Transfer-Encoding: 7bit

I need to run an application that uses a swing interface (METAL L&F) in
a Mac. I wrapped it with Jbindery, but when run it generates the
following exception:

com.sun.java.swing.plaf.metal.MetalLookAndFell/icons/JavaCup.gif not
found
_exceptionOccurred: java.lang.NullPointerException()
java.lang.NullPointerException
    at sun.awt.macos.MToolkit.getFontMetrics(MToolkit.java:357)
    at
com.sun.java.swing.plaf.basic.BasicGraphicsUtils.getPreferredButtonSize(BasicGraphicsUtils.java:425)

    at
    at com.sun.java.swing.JComponent.getPreferredSize
(JComponent.java:700)
    at
    at
    at com.sun.java.swing.JComponent.setUI(Jcomponent.java:298)
    at
com.sun.java.swing.JInternalFrame$DesktopIcon.setUI(JinternalFrame.java:1458)

 .
.
.
at
com.apple.mrj.JManager.JMStaticMethodDispatcher.run(JMAWTContextImpl.java:721)

at java.lang.Thread.run(Thread.java:473)


I use the swing class distributed with JBuilder 2.0.1

--------------5EAEA742B9525D098B7060A1
Content-Type: text/x-vcard; charset=us-ascii;
 name="nessa.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Computer Center Macintosh User
Content-Disposition: attachment;
 filename="nessa.vcf"

begin:vcard 
n:smith;vanessa 
tel;pager:n/a
tel;cell:n/a
tel;fax:n/a
tel;home:(785)830-0996
tel;work:n/a
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:nessa@falcon.ukans.edu
x-mozilla-cpt:;1
fn:vanessa smith
end:vcard

--------------5EAEA742B9525D098B7060A1--
Technical Details
Message-ID: <374C8B5A.174EB32E@falcon.ukans.edu>
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,ca7f16097584e900,start
X-Google-Attributes: gid111d45,public
From: Computer Center Macintosh User <nessa@falcon.ukans.edu>
Subject: Problem to run swing app in a Mac
Date: 1999/05/26
Message-ID: <374C8B5A.174EB32E@falcon.ukans.edu>
X-Deja-AN: 482518106
X-Accept-Language: en
Content-Type: multipart/mixed; boundary="------------5EAEA742B9525D098B7060A1"
Organization: University of Kansas
Mime-Version: 1.0
Reply-To: nessa@falcon.ukans.edu
Newsgroups: borland.public.jbuilder.java.swing