🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: What is wrong with this code: Combo box displays incorrectly?

#7707
From: Reid
Date: Thu, 04 Jan 2001 16:58
149 lines
7425 bytes
--------------090307020902000703060501
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Thanks for the response.

I have been at this simple task for 20 hours or more..

You say "Only if I select the JBCL option in the wizard" ..

As a newbie I don't know if this is required or not...  I am just trying 
to get an applet to run outside the JBuilder IDE.   I do know that I 
want to have an applet that uses swing.  I need the archive builder to 
build an archive of the current applet's class and ALL the other 
dependencies so that the thing will actually run!!  ( I am assumming 
that the archive builder will optimize this by only including what is 
actually needed)

I know that the browser attempting to load the applet either cannot find 
the VerticalFlowLayout class or what appears to be "all the rest of the 
classes".   I know that an applet's world is defined by that applet's 
<TAG>.   I have tried different settings the properties of the <TAG> 
with no success.  I have taken others advice, read pages and chapters on 
this topic and still have had no success.

For instance if the applet is called "MyAppletClass.class" and that 
class and all others needed were included in the .jar file I would 
assume that the <APPLET> tag would just need to be something like ..

<APPLET
  CODEBASE = "."
  ARCHIVE  = "MyArchive.jar"
  CODE     = "MyArchive.MyAppletClass.class"
  NAME     = "TestApplet"
  WIDTH    = 400
  HEIGHT   = 300
  HSPACE   = 0
  VSPACE   = 0
  ALIGN    = top
 >
</APPLET>

And if the MyArchive.jar archive was in the same directory as the HTML 
file that loads it that all would be well.   Well it's not.   ;)

Because I am a newbie to Java I am not 100% sure of what the &*^% is 
going wrong here.

Even if I use the "Include All" options of the archive builder dialog on 
each tag and end up with a 1.2 mg .jar file it still doesn't run.... :(

What I need is someone to send me a small project that is a JBuilder 
applet that USES JBUILDER CLASSES (like VerticalFlowLayout, Swing, 
etc..) with a .JAR file that contains EVERYTHING and an accompanying 
HTML file that will load it correctly in a browser. (I have the Java 
Plug in I need).

Sorry for the shouting, it's just that I am getting sick of trying to do 
such a small task unsuccessfully over, and over, and over ...

Thanks,

Reid


Tor Iver Wilhelmsen wrote:

> Reid <reidr@buzybee.com> writes:
> 
>> But doesn't the Archive Builder create an archive that contains ALL
>> the classes necessary for running the applet?
> 
> 
> Only if you select the JBCL library in step 3 in the wizard and choose
> one of the "include required classes" options for it.



--------------090307020902000703060501
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html><head></head><body>Thanks for the response.<br>
<br>
I have been at this simple task for 20 hours or more..<br>
<br>
You say "Only if I select the JBCL option in the wizard" ..<br>
<br>
As a newbie I don't know if this is required or not...&nbsp; I am just trying
to get an applet to run outside the JBuilder IDE. &nbsp; I do know that I want
to have an applet that uses swing.&nbsp; I need the archive builder to build an
archive of the current applet's class and ALL the other dependencies so that
the thing will actually run!!&nbsp; ( I am assumming that the archive builder
will optimize this by only including what is actually needed)<br>
<br>
I know that the browser attempting to load the applet either cannot find
the VerticalFlowLayout class or what appears to be "all the rest of the classes".
&nbsp; I know that an applet's world is defined by that applet's &lt;TAG&gt;.
&nbsp; I have tried different settings the properties of the &lt;TAG&gt; with
no success.&nbsp; I have taken others advice, read pages and chapters on this
topic and still have had no success.<br>
<br>
For instance if the applet is called "MyAppletClass.class" and that class
and all others needed were included in the .jar file I would assume that
the &lt;APPLET&gt; tag would just need to be something like ..<br>
<br>
&lt;APPLET<br>
&nbsp; CODEBASE = "."<br>
&nbsp; ARCHIVE&nbsp; = "MyArchive.jar"<br>
&nbsp; CODE &nbsp; &nbsp; = "MyArchive.MyAppletClass.class"<br>
&nbsp; NAME &nbsp; &nbsp; = "TestApplet"<br>
&nbsp; WIDTH &nbsp;&nbsp; = 400<br>
&nbsp; HEIGHT &nbsp; = 300<br>
&nbsp; HSPACE &nbsp; = 0<br>
&nbsp; VSPACE &nbsp; = 0<br>
&nbsp; ALIGN &nbsp;&nbsp; = top<br>
&gt;<br>
&lt;/APPLET&gt;<br>
<br>
And if the MyArchive.jar archive was in the same directory as the HTML file
that loads it that all would be well. &nbsp; Well it's not. &nbsp; ;)<br>
<br>
Because I am a newbie to Java I am not 100% sure of what the &amp;*^% is going wrong here.<br>
<br>
Even if I use the "Include All" options of the archive builder dialog on
each tag and end up with a 1.2 mg .jar file it still doesn't run....  :(<br>
<br>
What I need is someone to send me a small project that is a JBuilder applet
that USES JBUILDER CLASSES (like VerticalFlowLayout, Swing, etc..) with a
.JAR file that contains EVERYTHING and an accompanying HTML file that will
load it correctly in a browser. (I have the Java Plug in I need).<br>
<br>
Sorry for the shouting, it's just that I am getting sick of trying to do
such a small task unsuccessfully over, and over, and over ...<br>
<br>
Thanks,<br>
<br>
Reid<br>
<br>
<br>
Tor Iver Wilhelmsen wrote:<br>
<blockquote type="cite" cite="mid:uwvcbaeyk.fsf@sds.no"><pre wrap="">Reid <a class="moz-txt-link-rfc2396E" href="mailto:reidr@buzybee.com">&lt;reidr@buzybee.com&gt;</a> writes:<br><br></pre>
  <blockquote type="cite"><pre wrap="">But doesn't the Archive Builder create an archive that contains ALL<br>the classes necessary for running the applet?<br></pre></blockquote>
    <pre wrap=""><!----><br>Only if you select the JBCL library in step 3 in the wizard and choose<br>one of the "include required classes" options for it.<br></pre>
    </blockquote>
    <br>
</body></html>
--------------090307020902000703060501--
Technical Details
Message-ID: <3A54ABC9.7090409@buzybee.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!newsfeed.online.be!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!dnews!209.86.212.8
References: <3A4BAE85.6010902@buzybee.com> <92i49k$qai3@bornews.inprise.com> <3A4CCC64.8050402@buzybee.com> <3A4E6174.39CAF201@formlessvoid.com> <3A4E72EF.9070703@buzybee.com> <3A4EACB3.9080406@buzybee.com> <3A5015E6.F611EC11@formlessvoid.com> <3A50184D.1070902@buzybee.com> <3a539841_2@dnews> <3A53DCE6.2090709@buzybee.com> <uwvcbaeyk.fsf@sds.no>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,67e3718c633b6313
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2001-01-04 08:51:40 PST
Message-ID: <3A54ABC9.7090409@buzybee.com>
Date: Thu, 04 Jan 2001 08:58:49 -0800
From: Reid <reidr@buzybee.com>
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; m18) Gecko/20001108 Netscape6/6.0
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: What is wrong with this code:  Combo box displays incorrectly?
References: <3A4BAE85.6010902@buzybee.com> <92i49k$qai3@bornews.inprise.com> <3A4CCC64.8050402@buzybee.com> <3A4E6174.39CAF201@formlessvoid.com> <3A4E72EF.9070703@buzybee.com> <3A4EACB3.9080406@buzybee.com> <3A5015E6.F611EC11@formlessvoid.com> <3A50184D.1070902@buzybee.com> <3a539841_2@dnews> <3A53DCE6.2090709@buzybee.com> <uwvcbaeyk.fsf@sds.no>
Content-Type: multipart/alternative;
 boundary="------------090307020902000703060501"
NNTP-Posting-Host: 209.86.212.8
X-Trace: 4 Jan 2001 08:50:02 -0800, 209.86.212.8
Lines: 150
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!newsfeed.online.be!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!dnews!209.86.212.8