Article View: borland.public.jbuilder.java.swing
Article #11046Re: JBuilder bug?
From: David
Date: Wed, 21 Jul 1999 00:00
Date: Wed, 21 Jul 1999 00:00
68 lines
2886 bytes
2886 bytes
Here is the generated code (Frame created via drag and drop):
JButton qryJButton = new JButton();
....
....
qryJButton.setBorder(null);
qryJButton.setToolTipText("Locate a record in the data set");
qryJButton.setBorderPainted(false);
qryJButton.setDisabledIcon(new ImageIcon(new
java.net.URL("file://.../images/qryButtonDis.gif")));
qryJButton.setFocusPainted(false);
qryJButton.setIcon(new ImageIcon(new
java.net.URL("file://..../images/qryButton.gif")));
qryJButton.setRolloverIcon(new ImageIcon(new
java.net.URL("file://...../images/qryButtonOver.gif")));
...
jToolBar1.add(qryJButton, null);
What is strange is that looking at the Design tab, the buttons are all wrong,
but when I run the application, they appear to be correct, other than adding
a grey area between the top of the button and the toolbar edge.
Kinda strange me thinks.
Rich Wilkman wrote:
> David:
>
> Do you have a snippet of code? A compound border is the default for a
> JButton (if memory serves). Are you moving between containers or
> replicating via copy and paste?
>
> -Rich
>
> David wrote:
> >
> > Good morning -
> >
> > I am using JBuilder 3 Enterprise to develop some client GUI's. When I
> > place buttons on the Frame along with JTextFields and JLabels using the
> > layout manager, GridBagLayout, I get strange component behavior. I set
> > the JButton border property to <none>. But whenever I move the buttons
> > or modify the other Frame objects, the JButtons property switches to
> > CompoundBorder.
> >
> > I am using an evaluation copy from JavaOne and suspect that it is not
> > ready for prime time. If anyone has any ideas or suggestions, I would
> > appreciate hearing them.
> >
> > Thanks in advance,
> >
> > David
>
> --
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Rich Wilkman
> Quality Assurance Manager
> Borland JBuilder Team
>
> If you see something that looks like an opinion up there,
> it's mine and mine alone.
>
> Mail sent to me from the newsgroups won't bounce but will
> be ignored. If I have time, I'll respond, but you have
> a better chance if you confine your posts to the newsgroups
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<37960D9A.567DB882@lmco.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3795D17C.1AE9A5B1@lmco.com> <3795F0E1.DCB00C0@inprise.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,2a8addb775e4cd79 X-Google-Attributes: gid111d45,public From: David <david.v.clark@lmco.com> Subject: Re: JBuilder bug? Date: 1999/07/21 Message-ID: <37960D9A.567DB882@lmco.com> X-Deja-AN: 503627223 Content-Transfer-Encoding: 7bit References: <3795D17C.1AE9A5B1@lmco.com> <3795F0E1.DCB00C0@inprise.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing