Article View: borland.public.jbuilder.java.swing
Article #10957Re: JBuilder bug?
From: Rich Wilkman
Date: Wed, 21 Jul 1999 00:00
Date: Wed, 21 Jul 1999 00:00
98 lines
4030 bytes
4030 bytes
David:
It's the setBorder(null) calls that are the problem. So back to my
question of copying and pasting or dragging between containers. The
setBorder(null) call indicates that there was a valid border object and
something happened to it or it was moved to no longer be in scope for
those buttons.
Comment out those lines and see if that doesn't clear it up for you.
After that, if you can tell me how you got that code generated I'll be
happy to get the bug logged.
-Rich
David wrote:
>
> 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
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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:
<37964477.FBE66EE@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3795D17C.1AE9A5B1@lmco.com> <3795F0E1.DCB00C0@inprise.com> <37960D9A.567DB882@lmco.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: Rich Wilkman <rwilkman@inprise.com> Subject: Re: JBuilder bug? Date: 1999/07/21 Message-ID: <37964477.FBE66EE@inprise.com> X-Deja-AN: 503707230 Content-Transfer-Encoding: 7bit References: <3795D17C.1AE9A5B1@lmco.com> <3795F0E1.DCB00C0@inprise.com> <37960D9A.567DB882@lmco.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