Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #4243

Re: Aligned elements in a JComboBox

From Bent C Dalager <bcd@pvv.ntnu.no>
Newsgroups comp.lang.java.programmer
Subject Re: Aligned elements in a JComboBox
Date 2011-05-18 09:13 +0000
Organization Norwegian university of science and technology
Message-ID <slrnit73d7.ako.bcd@microbel.pvv.ntnu.no> (permalink)
References <iqu8i1$ks3$1@news.belwue.de> <JGxAp.4755$iv4.3479@newsfe09.iad> <iquj14$f38$1@news.belwue.de> <7TEAp.10530$ZM2.10334@newsfe19.iad>

Show all headers | View raw


On 2011-05-18, Knute Johnson <nospam@knutejohnson.com> 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

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Aligned elements in a JComboBox Thomas Richter <thor@math.tu-berlin.de> - 2011-05-17 18:42 +0200
  Re: Aligned elements in a JComboBox Knute Johnson <nospam@knutejohnson.com> - 2011-05-17 09:49 -0700
    Re: Aligned elements in a JComboBox Thomas Richter <thor@math.tu-berlin.de> - 2011-05-17 21:41 +0200
      Re: Aligned elements in a JComboBox Knute Johnson <nospam@knutejohnson.com> - 2011-05-17 18:00 -0700
        Re: Aligned elements in a JComboBox Bent C Dalager <bcd@pvv.ntnu.no> - 2011-05-18 09:13 +0000
          Re: Aligned elements in a JComboBox "John B. Matthews" <nospam@nospam.invalid> - 2011-05-18 07:56 -0400
  Re: Aligned elements in a JComboBox Roedy Green <see_website@mindprod.com.invalid> - 2011-05-19 10:29 -0700

csiph-web