Article View: borland.public.jbuilder.java.swing
Article #7709Re: What is wrong with this code: Combo box displays incorrectly?
From: Rich Wilkman
Date: Thu, 04 Jan 2001 17:15
Date: Thu, 04 Jan 2001 17:15
108 lines
5681 bytes
5681 bytes
Reid: Applets are not for newbies so don't kick yourself or be surprised if it takes you 20 more hours to get the pattern and steps correct. You say you are using the Plugin. If that is the case then the Applet tag you posted won't activate the plugin (you have to run it through the HTML converter first). The class you need must be in the jar in your archive parameter. Open up the jar file that you've built and look inside. If it's not there, go through the docs on the Archive Builder (or use the old Deployment Wizard addin from Code Central). If the jar file does contain your class then it's time to chase other items (and we'd need to see your *real* applet tag at that point along with a description of the directory layout on the server -- remember that Java is case sensitive so MyArchive.MyAppletClass.class is not the same as myarchive.MyAppletClass.class. As an aside, the norm is for a lowercase package name with mixed case class names -- something that JBuilder doesn't enforce but is the pattern that it suggests in all it's wizards. You also might want to stop and do some quick homework to provide you with a sanity check to show you that it is possible to deploy an applet. http://www.got.net/~rwilkman/java for the basics and tutorials (sadly not updated for the Archive Builder yet). All of this info, however, is in the online docs (search on Applet). Almost verbatim, in fact, but the Pubsters at Borland have to be, uh, more neutral in their presentation than I have to be. -Rich Reid wrote: > 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. >>
Technical Details
Message-ID:
<3A54AFAB.4782042F@formlessvoid.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!news.belnet.be!news.tele.dk!194.42.224.136!diablo.netcom.net.uk!netcom.net.uk!btnet-peer!btnet!newsfeed.bt.es!195.5.65.34.MISMATCH!caladan.arrakis.es!bornews.borland.com!dnews!209.144.169.10References:
<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> <3A54ABC9.7090409@buzybee.com>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 09:21:24 PST Message-ID: <3A54AFAB.4782042F@formlessvoid.com> Date: Thu, 04 Jan 2001 09:15:23 -0800 From: Rich Wilkman <richw@formlessvoid.com> Reply-To: richw@formlessvoid.com X-Mailer: Mozilla 4.74 [en] (WinNT; U) X-Accept-Language: en,ja 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> <3A54ABC9.7090409@buzybee.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 209.144.169.10 X-Trace: 4 Jan 2001 09:15:52 -0800, 209.144.169.10 Lines: 109 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!news.belnet.be!news.tele.dk!194.42.224.136!diablo.netcom.net.uk!netcom.net.uk!btnet-peer!btnet!newsfeed.bt.es!195.5.65.34.MISMATCH!caladan.arrakis.es!bornews.borland.com!dnews!209.144.169.10