Thu Oct 23, 2008 1:55 am
Hi all,
I have made a class that extends JInternalFrame. In my main window,
I have a menubar. When the user clicks a menu item (save, for
example), how do I get the currently active window to do that. I can
get the active frame via
JInternalFrame frame = desktop.getSelectedFrame();
But, alas, this does me no good since my class is a descendant of that
and, in the above case, frame.save() doesn't exist. I tried to
typecast it to no avail. I know I am missing something - probably
something simple.
Does the active (focused) window somehow get the menu events? if so,
how would I handle it?
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.