Article View: borland.public.jbuilder.java.swing
Article #1382Re: JButton auto resize??
From: John McGrath [TeamB]
Date: Wed, 17 Dec 2003 23:39
Date: Wed, 17 Dec 2003 23:39
31 lines
2152 bytes
2152 bytes
On 12/17/2003 at 2:41:18 AM, Rudy wrote:
> > What XYConstraints do you use when you add the button to its
> > container?
> Here is the code for my class,
This is the line of code I was trying to get you to look at. You are
using an XYLayout, but you are not specifying an XYConstraint object
when you add it to the container.
> super.add(mComponent);
But that said, I really wonder why you are using XYLayout in the first
place. It sounds like you are trying to directly manage the size and
position of the buttons, so what does the layout manager do for you?
> I also dont suppose you could tell me how best to use the images and
> imageIcons for buttons,
Take a look at the Java Tutorial on the Sun web site. The Swing
section should cover this.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<3fe0f730@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!chcgil2-snh1.gtei.net!news.bbnplanet.com!nycmny1-snf1.gtei.net!news.gtei.net!colt.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fca70a4$1@newsgroups.borland.com> <3fcaeb5a@newsgroups.borland.com> <3fde40c0$1@newsgroups.borland.com> <3fde639f$1@newsgroups.borland.com> <3fe008a8@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,d747d5f574c277f5 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-12-17 17:09:42 PST From: "John McGrath [TeamB]" <ng-b@JPMcGrath.net> Subject: Re: JButton auto resize?? Newsgroups: borland.public.jbuilder.java.swing References: <3fca70a4$1@newsgroups.borland.com> <3fcaeb5a@newsgroups.borland.com> <3fde40c0$1@newsgroups.borland.com> <3fde639f$1@newsgroups.borland.com> <3fe008a8@newsgroups.borland.com> User-Agent: XanaNews/1.15.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 NNTP-Posting-Host: 141.158.232.159 Message-ID: <3fe0f730@newsgroups.borland.com> Date: 17 Dec 2003 16:39:12 -0700 X-Trace: newsgroups.borland.com 1071707952 141.158.232.159 (17 Dec 2003 16:39:12 -0700) Lines: 31 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!chcgil2-snh1.gtei.net!news.bbnplanet.com!nycmny1-snf1.gtei.net!news.gtei.net!colt.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail