Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!newsfeed1.swip.net!uio.no!ntnu.no!not-for-mail From: Bent C Dalager Newsgroups: comp.lang.java.programmer Subject: Re: Aligned elements in a JComboBox Date: Wed, 18 May 2011 09:13:11 +0000 (UTC) Organization: Norwegian university of science and technology Lines: 22 Message-ID: References: <7TEAp.10530$ZM2.10334@newsfe19.iad> NNTP-Posting-Host: microbel.pvv.ntnu.no X-Trace: orkan.itea.ntnu.no 1305709991 26692 129.241.210.179 (18 May 2011 09:13:11 GMT) X-Complaints-To: usenet@ntnu.no NNTP-Posting-Date: Wed, 18 May 2011 09:13:11 +0000 (UTC) User-Agent: slrn/pre1.0.0-18 (Linux) Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4243 On 2011-05-18, Knute Johnson wrote: > > (...) You might consider extending that though or write your > own layout manager. While my own personal approach to component layout is to take out my very big Layout Mallet and repeatedly smash it into GridBagLayout until it does what I want(*), I think the intent of the Swing (or even AWT) designers was that people would be writing their own specialized layouts when they have special needs. So presumably this is actually a practical thing to do. I would definitely look into it for a situation like this. Cheers, Bent D * There probably isn't a layout mallet big enough to make GridBagLayout work for the problem at hand though. -- Bent Dalager - bcd@pvv.org - http://www.pvv.org/~bcd powered by emacs