Thread View: borland.public.jbuilder.java.swing
3 messages
3 total messages
Started by Tony
Sat, 20 Mar 2004 08:23
JBuilder Menu Designer question
Author: Tony
Date: Sat, 20 Mar 2004 08:23
Date: Sat, 20 Mar 2004 08:23
20 lines
1533 bytes
1533 bytes
Dear all, I am trying to use JBuilder Menu designer to help me with menu building in our application. However, we use special (our own) bean called TMenuItem, which, naturally, extends JMenuItem and adds special functionality for binding to defined Actions. So far I have been using JBuilder to create a dummy menu with designer (it creates a menu with JMenuItems) and then was doing a global substitution of "JMenuItem" to "TMenuItem" After that, designer still works (and even shows the right menu lables). My question is whether it is possible to tell JBuilder designer to use my class (TMenuItem) instead of default class (JMenuItem). I would be grateful for any ideas, Tony.
Re: JBuilder Menu Designer question
Author: Greg Hamer
Date: Mon, 22 Mar 2004 17:53
Date: Mon, 22 Mar 2004 17:53
32 lines
2293 bytes
2293 bytes
You can use the 'Bean Chooser' button that is in the lower left corner of the palette, under the selection arrow, to specify that you wish to drop a TMenuItem. You could then drop them onto PopupMenu items or Menu items in the component tree to add them to menus. But the extra dummy items that show up in the menu designer will always transform JMenuItems, so you would need to get into the habit of dropping them instead of just labeling them one after the other. "Tony" <aoganesi@yahoo.com> wrote in message news:405bff8d$1@newsgroups.borland.com... > Dear all, > > I am trying to use JBuilder Menu designer to help > me with menu building in our application. However, > we use special (our own) bean called TMenuItem, which, > naturally, extends JMenuItem and adds special > functionality for binding to defined Actions. > > So far I have been using JBuilder to create a dummy > menu with designer (it creates a menu with JMenuItems) > and then was doing a global substitution of "JMenuItem" > to "TMenuItem" After that, designer still works > (and even shows the right menu lables). > > My question is whether it is possible to tell JBuilder > designer to use my class (TMenuItem) instead of default > class (JMenuItem). > > I would be grateful for any ideas, > Tony. > >
Re: JBuilder Menu Designer question
Author: Tony
Date: Mon, 22 Mar 2004 19:42
Date: Mon, 22 Mar 2004 19:42
18 lines
1640 bytes
1640 bytes
Greg, Thanks a lot! Great solution! I really overlooked the obvious. Tony. "Greg Hamer" <ghamer@dslextreme.com> wrote in message news:405f27a7$1@newsgroups.borland.com... > You can use the 'Bean Chooser' button that is in the lower left corner of > the palette, under the selection arrow, to specify that you wish to drop a > TMenuItem. You could then drop them onto PopupMenu items or Menu items in > the component tree to add them to menus. But the extra dummy items that show > up in the menu designer will always transform JMenuItems, so you would need > to get into the habit of dropping them instead of just labeling them one > after the other. >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads