Article View: borland.public.jbuilder.java.api
Article #1732Re: New Packages
From: Rob
Date: Sat, 22 Sep 2001 14:24
Date: Sat, 22 Sep 2001 14:24
59 lines
3138 bytes
3138 bytes
Howdy Joi! OK, I have added "Tools >> Configure JDK's >> Class >> Add >> c:/jdk/jre/lib/ext/FontChooser.jar" and in the "Tools >> Configure JDK's >> Class" panel, 'c:/jdk/jre/lib/ext/FontChooser.jar' appears as one of the entries. All of the classes in the FontChooser package contain the following package statement: package FontChooser; When I go "Project >> Add Files/Packages >> Packages", I can't see an 'ext', 'lib' or 'FontChooser' package there. How do I configure my package so it can be imported through this option? Thanking your for your effort! Rob On the learning curve and searching for a handle.. :) "Joi Ellis [TeamB]" <joi@aravox.com> wrote in message news:3bac9bf5_1@dnews... > Rob <"relaxedrob@optushome.com.au"> wrote: > > Thank you for your response Joi! > > > Configure JDK's >> Class >> Add > > C:/jdk/jre/lib/ext/FontChooser.jar > > > But how do I import this as a package then?? > > > When I go to > > Project >> Add Files/Packages >> Explorer, I can see (and add) all of the > > individual files in the package, but this is *not* what I want to do. I want to > > import the *package* just as I would do with java.io.* etc. > > > When I go Project >> Add Files/Packages >> Packages, I do not see the package > > there - how can I make JBuilder see my package *as* a package?? > > You do not need to use "Add Files/Packages" unless you have source and > intend to compile the stuff with the rest of your project's sources. > > If you have added the jar to the JDK's list of jars, *and* that JDK is > the JDK selected in the Project's properties, then you need only add the > import statements to your own code. > > Place the cursor in a source file somewhere within a class or method, > then press control-alt-space. You'll get a class/package browser, and your > FontChooser should be available within its own package (whatever that is.) > > -- > Joi Ellis (TeamB) http://www.teamb.com/ > No direct email, please. > For best results, post on news server newsgroups.borland.com! > Newsgroup Guidelines: http://www.borland.com/newsgroups/guide.html > Only posts which violate the rules in guide.html are subject to cancelation.
Technical Details
Message-ID:
<3bac9fa7$1_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!209.30.0.50!nntp.flash.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3bac39e3$1_2@dnews> <3bac7e68_1@dnews> <3bac96e0$1_1@dnews> <3bac9bf5_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,f082586d7b00139e X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-09-22 07:33:12 PST From: "Rob" <"relaxedrob@optushome.com.au"> Newsgroups: borland.public.jbuilder.java.api References: <3bac39e3$1_2@dnews> <3bac7e68_1@dnews> <3bac96e0$1_1@dnews> <3bac9bf5_1@dnews> Subject: Re: New Packages Date: Sun, 23 Sep 2001 00:24:12 +1000 Lines: 61 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 203.164.96.29 Message-ID: <3bac9fa7$1_2@dnews> X-Trace: dnews 1001168807 203.164.96.29 (22 Sep 2001 07:26:47 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!209.30.0.50!nntp.flash.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews