D
Dobieslaw Wroblewski
Hi.
I have a JFrame derived object frame and JPanel derived object panel.
There is one submenu in the frame's menu that is somewhat like the panel
properties. Let's call it a JMenu props;
I want the submenu to be accessible both from the frame's menu bar and (as a
popup) from the panel.
So in the panel class in the code for mouse right click I wrote something
like:
frame.props.getPopupMenu().show(this, e.getX(), e.getY())
The popup shows OK after right-button click in the panel, however it
disappears from the frame's menu (the submenu is present in the frame's menu
but it does not unfold after being shown in the panel for the first time).
What can I be doing wrong?
DW.
I have a JFrame derived object frame and JPanel derived object panel.
There is one submenu in the frame's menu that is somewhat like the panel
properties. Let's call it a JMenu props;
I want the submenu to be accessible both from the frame's menu bar and (as a
popup) from the panel.
So in the panel class in the code for mouse right click I wrote something
like:
frame.props.getPopupMenu().show(this, e.getX(), e.getY())
The popup shows OK after right-button click in the panel, however it
disappears from the frame's menu (the submenu is present in the frame's menu
but it does not unfold after being shown in the panel for the first time).
What can I be doing wrong?
DW.