Re: JMenu holding JButton instances - bug with 5.0?
- From: "John McGrath" <ng@xxxxxxxxxxxxx>
- Date: Sat, 30 Apr 2005 03:52:28 GMT
On 4/29/2005 at 3:01:32 AM, allen@xxxxxxxxxxxxxxxxx wrote:
> I resorted to using JMenuItems for the JButtons, with a bit of
> tweaking they can look better.
Indeed. JMenuItem, JCheckBoxMenuItem and JRadioButtonMenuItem do pretty
much the same thing as JButtons, JCheckBoxes, and JRadioButtons, but they
are intended to be used in a menu. So I think they make a much better
starting point. You can always customize them to get the effect that you
want.
> However this discussion makes me amazed that some of my other
> code ever worked to start off with. I've embedded a JTable (in a
> scrollpane) using JCheckBox cell-renderers/editors into a JPopupMenu,
> and based on your description here, I'm amazed that it worked.
Did you place the table in a menu connected to a JMenuBar, or in a plain
JPopupMenu? I am not sure why they are different, but as you have seen,
they are.
--
Regards,
John McGrath
.
- References:
- JMenu holding JButton instances - bug with 5.0?
- From: allen
- Re: JMenu holding JButton instances - bug with 5.0?
- From: John McGrath
- Re: JMenu holding JButton instances - bug with 5.0?
- From: allen
- JMenu holding JButton instances - bug with 5.0?
- Prev by Date: Re: Java GUI -v- .NET Winforms ?
- Next by Date: Re: Event handler problem in JTable
- Previous by thread: Re: JMenu holding JButton instances - bug with 5.0?
- Next by thread: BoxLayout making component too big
- Index(es):