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


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

Re: Aligned elements in a JComboBox

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Aligned elements in a JComboBox
Date 2011-05-19 10:29 -0700
Organization Canadian Mind Products
Message-ID <lpkat65msds8ajcqdm5gehq4v8kohlc9pl@4ax.com> (permalink)
References <iqu8i1$ks3$1@news.belwue.de>

Show all headers | View raw


On Tue, 17 May 2011 18:42:40 +0200, Thomas Richter
<thor@math.tu-berlin.de> wrote, quoted or indirectly quoted someone
who said :

>This is how the JComboBox currently renders. But I want it
>laid out such that the separator between the two elements forming one 
>entry of it are underneath each other.

I have not experimented with this but see what you can do with
setBorder
setInsets

Also see what alignment commands you have.

see http://mindprod.com/jgloss/border.html
-- 
Roedy Green Canadian Mind Products
http://mindprod.com
How long did it take after the car was invented before owners understood 
cars would not work unless you regularly changed the oil and the tires?
We have gone 33 years and still it is rare to uncover a user who 
understands computers don't work without regular backups.

Back to comp.lang.java.programmer | Previous | NextPrevious 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