Article View: borland.public.jbuilder.java.language
Article #16623Re: Problems with java.awt.Component.SetSize in Netscape 4.05
From: Richard Wilkman
Date: Wed, 03 Feb 1999 00:00
Date: Wed, 03 Feb 1999 00:00
63 lines
2757 bytes
2757 bytes
The version of Netscape you are targeting does not fully support JDK
1.1, which is why the error is saying it can't find a core Java method
that was added in 1.1.
Versions of NS prior to 4.05 must have a patch applied to them to be
JDK 1.1 compliant. Without the patch you must code to JDK 1.02
standards. NS 4.06 finally has it all in one spot.
So, you (and your users) need to update their browsers to run 1.1.
You may want to investigate the Java Plugin from Javasoft as a better
solution to the problem.
-Rich
> Per Sverre Wold wrote:
>
> Hi !
>
> I have problems using code generated by JBuilder in older Netscape
> (e.g. Netscape 4.04). The UI in our project is pretty simple, so
> it's not nessesary to use Swing (save download-time....). We are
> using the standard AWT features in the UI-designer in JBuilder 2.01.
> If you generate an simple applet with an AWT-Button, JBuilder
> generates the code seen below.
> I have generated a jar-file with "borland.jbcl.layout" (using the
> Deployment Wizard) and the final code functions well in Netscape 4.5
> and IE 4.01. But when you try to run from Netscape 4.04 or 4.05 I
> get the error-message: "NoSuchMethodError java.awt.Component: method
> setSize (II)V not found" (same problem with method setBounds).
>
> Example from code:
>
> private void jbInit() throws Exception {
> button1.setLabel("button1");
> this.setSize(400,300);
> this.add(button1, null);
> }
>
> setSize and setBounds is standard JDK 1.1 methods and Netscape 4.04
> is using 1.1.2.
>
> Any suggestions ?
>
> --
> Per Sverre Wold
> per.sverre.wold@sds.no
> Posten SDS A/S, Box 6664 Rodel๏ฟฝkka, N-0502 Oslo, Norway
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rich Wilkman
Senior Quality Assurance Engineer
Borland JBuilder Team
If you see something that looks like an opinion up there,
it's mine and mine alone.
Mail sent to me from the newsgroups won't bounce but will
be ignored. If I have time, I'll respond, but you have
a better chance if you confine your posts to the newsgroups
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<36B880C7.7182956B@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<799kbt$ipe1@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,5f1a0bae3af3fa65 X-Google-Attributes: gidf74b3,public From: Richard Wilkman <rwilkman@inprise.com> Subject: Re: Problems with java.awt.Component.SetSize in Netscape 4.05 Date: 1999/02/03 Message-ID: <36B880C7.7182956B@inprise.com> X-Deja-AN: 440243652 Content-Transfer-Encoding: 8bit References: <799kbt$ipe1@forums.borland.com> Content-Type: text/plain; charset=iso-8859-1 Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language