Article View: borland.public.jbuilder.java.language
Article #17069Re: Installing Swing 1.1 in JBuilder 2.0.1
From: hk74
Date: Thu, 17 Dec 1998 00:00
Date: Thu, 17 Dec 1998 00:00
47 lines
2865 bytes
2865 bytes
In article <3678DD3A.B0C997BE@cs.tut.fi>,
steph@cs.tut.fi wrote:
> >
> > Got to the "Tools" Menu -> "Default Project Properties"
> > Click on "Libraries"
> > Click on "New"
> > Give it a name ("Swing 1.1" is a good name) , class path, source and
> > docs directories (source and docs are optional)
> > Click on "Ok" and wait with JBuilder does it stuff
> > Click on "Add" and then selected "Swing 1.1" (or what ever you have
> > called it).
> >
>
> thanks.
>
> I did that already... but is there a way to get the swing components in
> the tool bar ? Because if we do only what you are describing, JBuilder
> is still call the old swing library when compiling (even if it doen't
> use it)
You can add them to the tool bar by clicking the right mouse button while you
are over it, then selecting properties, adding a new page (for example
"Swing1.1", selecting it and adding "Add from archive". Then provide the path
to your "Swingall.jar" and voila - the components can now be seen. After
this choose them all and while they are all chosen, press install. You may
then close the dialog and you have a new toolbar for your swing components.
There seem to be problems, however. I couldn't get any of the components to
display correctly in the designer view, only a red area with the name of the
class is displayed. In addition, the properties of the components cannot be
set in the designer view, I couldn't for example change the name of any of my
buttons, or the preferred size, etc. The icons are shown nicely in the
toolbar, but the ui is not.
So, the only benefit for bringing the 1.1 swing components to the project
seems to be that after that the builder automatically generates
"javax.swing.blahblah" component instead of "com.sun.java.swing.blahblah"
when you add the component to your frame in the designer. You cannot visually
edit any of them.
If someone has information on the contrary, please let me know, as I am
struggling with the very same problem myself.
Harri
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Technical Details
Message-ID:
<75b7qp$pea$1@nnrp1.dejanews.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3678DD3A.B0C997BE@cs.tut.fi>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,d6e9ab9fc33f5600 X-Google-Attributes: gidf74b3,public From: hk74@netscape.net Subject: Re: Installing Swing 1.1 in JBuilder 2.0.1 Date: 1998/12/17 Message-ID: <75b7qp$pea$1@nnrp1.dejanews.com> X-Deja-AN: 423251607 References: <3678DD3A.B0C997BE@cs.tut.fi> X-Http-Proxy: 1.0 lato.saunalahti.fi:80 (Squid/2.0.PATCH2), 1.0 x13.dejanews.com:80 (Squid/1.1.22) for client 195.197.9.34, 195.197.160.4 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Dec 17 15:26:21 1998 GMT Newsgroups: borland.public.jbuilder.java.language X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I)