Re: JButton.setMargin broken
- From: usenet@xxxxxxx (Christian Kaufhold)
- Date: Sun, 26 Aug 2007 11:17:52 +0000 (UTC)
Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx> wrote:
It seems that Swing ignores JButton.setMargin. Is that your finding?
Is this a bug or is there some excuse for it?
The margin is modelled as an extra border (e.g.
javax.swing.plaf.basic.BasicBorders.MarginBorder), usually installed
by the LookAndFeel. If you replace a button's border, put a margin
border (using CompoundBorder) in the place where you want to have it,
relative to the other border(s).
Christian
.
- Follow-Ups:
- Re: JButton.setMargin broken
- From: Roedy Green
- Re: JButton.setMargin broken
- References:
- JButton.setMargin broken
- From: Roedy Green
- JButton.setMargin broken
- Prev by Date: Re: JButton.setMargin broken
- Next by Date: Re: JColourChooser
- Previous by thread: Re: JButton.setMargin broken
- Next by thread: Re: JButton.setMargin broken
- Index(es):