Re: Different height at JComboBox editor and renderer
- From: "Beaned" <readingmymail@xxxxxxxxx>
- Date: 28 Aug 2006 11:47:20 -0700
Babu Kalakrishnan wrote:
Unfortunately the answer is no. This (in my opinion) is one of the big
drawbacks of the swing framework - there's no single point where you
can override a certain behaviour in the UI area and allow it to
propagate to all look-n-feels.
In my opinion you'd be better off putting your custom sizing behaviour
in either a customized JComboBox subclass - (Or simply call
setPreferredSize on it). While the default behaviour of a JComponent is
to (rightly) ask the UI delegate to compute the preferred sizes, it
normally honors the preferred sizes set by the application at the
component level.
BK
Doing it the way you suggested works much better. Thanks for your help!
.
- References:
- Different height at JComboBox editor and renderer
- From: Beaned
- Re: Different height at JComboBox editor and renderer
- From: Babu Kalakrishnan
- Re: Different height at JComboBox editor and renderer
- From: Beaned
- Re: Different height at JComboBox editor and renderer
- From: Beaned
- Re: Different height at JComboBox editor and renderer
- From: Babu Kalakrishnan
- Different height at JComboBox editor and renderer
- Prev by Date: Re: AffineTransform.getScaleInstance question
- Next by Date: Re: JTable: How to memorize the width of the columns ?
- Previous by thread: Re: Different height at JComboBox editor and renderer
- Next by thread: Class sharing info
- Index(es):