🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2797

Method Toolkit.getDefaultToolkit() not found

#2797
From: Patrik Ernberg
Date: Tue, 12 Oct 1999 00:00
24 lines
1119 bytes
Hi all!
I'm having trouble when moving from source to design mode in JBuilder 3.

I am using a bean which allows the incorpororation of a gif-graphic in a
panel. When using Jbuilder 2, I had no problems moving from design to source
mode.

However, in Jbuilder 3, I get a message:
Method Toolkit.getDefaultToolkit() not found

And the graphics are not displayed.

The code looks something like this:

Image messagesBK =
   Toolkit.getDefaultToolkit().getImage("messagesBK.gif");

messageIPanel.setImage(messagesBK);

The funny thing is that I can compile and run the code without any trouble.

I would be thankful for any tips.

Patrik Ernberg
Technical Details
Message-ID: <7tuucj$h5t@newstoo.ericsson.se>
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: 1089d0,2651c8fdd274010d,start
X-Google-Attributes: gid1089d0,public
From: "Patrik Ernberg" <patrik.ernberg@era.ericsson.se>
Subject: Method Toolkit.getDefaultToolkit() not found
Date: 1999/10/12
Message-ID: <7tuucj$h5t@newstoo.ericsson.se>
X-Deja-AN: 535744201
Organization: Ericsson
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
Newsgroups: borland.public.jbuilder.java.api