Article View: borland.public.jbuilder.java.language
Article #16622Problems with java.awt.Component.SetSize in Netscape 4.05
From: Per Sverre Wold
Date: Wed, 03 Feb 1999 00:00
Date: Wed, 03 Feb 1999 00:00
101 lines
4440 bytes
4440 bytes
This is a multi-part message in MIME format.
------=_NextPart_000_0020_01BE4F85.5FBE1510
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
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.=20
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).=20
Example from code:
=20
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 ?
--=20
Per Sverre Wold
per.sverre.wold@sds.no
Posten SDS A/S, Box 6664 Rodel=F8kka, N-0502 Oslo, Norway
------=_NextPart_000_0020_01BE4F85.5FBE1510
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>Hi !</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>I have problems using code generated by JBuilder in =
older=20
Netscape (e.g. Netscape 4.04). The UI in our project is pretty simple, =
so it's=20
not nessesary to use Swing (save download-time....). We are using the =
standard=20
AWT features in the UI-designer in JBuilder 2.01. </FONT></DIV>
<DIV><FONT size=3D2></FONT><FONT color=3D#000000 size=3D2>If you =
generate an simple=20
applet with an AWT-Button, JBuilder generates the code seen =
below.</FONT></DIV>
<DIV><FONT size=3D2>I have generated a jar-file with=20
"borland.jbcl.layout" (using the Deployment Wizard) and the =
final code=20
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=20
java.awt.Component: method setSize (II)V not found" (same =
problem=20
with method setBounds). </FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Example from code:</FONT></DIV>
<DIV><FONT size=3D2> </FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2> private void jbInit() throws =
Exception=20
{<BR> =20
button1.setLabel("button1");<BR> <STRONG>=20
this.setSize(400,300);</STRONG><BR> this.add(button1,=20
null);<BR> }</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=3D#000000 size=3D2>setSize and setBounds is standard =
JDK 1.1=20
methods and Netscape 4.04 is using 1.1.2.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=3D#000000 size=3D2>Any suggestions ?</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2><BR>-- <BR></FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>Per Sverre Wold</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2><A=20
href=3D"mailto:per.sverre.wold@sds.no">per.sverre.wold@sds.no</A></FONT><=
/DIV>
<DIV><FONT color=3D#000000 size=3D2>Posten SDS A/S, Box 6664 =
Rodeløkka,=20
N-0502 Oslo, Norway</FONT></DIV></BODY></HTML>
------=_NextPart_000_0020_01BE4F85.5FBE1510--
Technical Details
Message-ID:
<799kbt$ipe1@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,5f1a0bae3af3fa65,start X-Google-Attributes: gidf74b3,public From: "Per Sverre Wold" <per.sverre.wold@sds.no> Subject: Problems with java.awt.Component.SetSize in Netscape 4.05 Date: 1999/02/03 Message-ID: <799kbt$ipe1@forums.borland.com> X-Deja-AN: 440191114 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0020_01BE4F85.5FBE1510" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language