🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #892

Best way to auto-format buttons and such inside a JPanel.

#892
From: Innominate Innominate
Date: Sun, 07 Nov 2004 04:48
7 lines
1335 bytes
I'm trying to add a number of simple Swing elements to a JPanel that is 
using a GridLayout. When I add a JComboBox to the panel, the box is 
sized so as to entirely fill its portion of the grid. Is there a setting 
I can make so that the box's size can be determined, probably at 
runtime, in an appropriate way, given the font in use at the time?

Innominate
Technical Details
Message-ID: <418da914$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!HSNX.atgi.net!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,923035278953d9b1,start
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 06 Nov 2004 23:48:24 -0500
From: Innominate Innominate <innominatetwice_spam_no!@yahoo.com>
Reply-To:  innominatetwice_spam_no!@yahoo.com
User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Best way to auto-format buttons and such inside a JPanel.
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.168.64.28
Message-ID: <418da914$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1099802900 24.168.64.28 (6 Nov 2004 20:48:20 -0700)
Lines: 7
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!HSNX.atgi.net!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail