Total members 10261 | Gratitudes |It is currently Wed May 23, 2012 8:25 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 1 post ] 
Author Question
 Question subject: Help with JInternalFrame
PostPosted: Thu Oct 23, 2008 1:55 am 
Offline
Proficient
User avatar

Joined: Sun Oct 19, 2008 3:47 pm
Posts: 281
Has thanked: 0 time
Have thanks: 1 time

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?


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 1 post ] 
Quick reply


  

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 5 guests



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team