I tried the following :
However it wouldn't compile.Code:public class MyUI extends JInternalFrame{ ...... public MyUI (MyUIController controller,String title) { addInternalFrameListener(new InternalFrameAdapter(){ @Override public void internalFrameActivated(ActionEvent e) { manageAddCategory(); } }); ..... }
Any help appreciated
Whats the error on compile?
And don't put stuff like adding listeners in the constructor - its bad practice.
Was just replying and I managed to fix it, I needed to import
javax.swing.event.InternalFrameAdapter;
even though I had imported
javax.swing.event.*;
Last edited by johnsonk; 03-21-2010 at 06:05 PM. Reason: typo
Oh wait I imported awt.event.* , my bad![]()
Thanks for your reply though
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks