This week's book giveaway is in the Other Open Source APIs forum. We're giving away four copies of Storm Applied and have Sean Allen, Peter Pathirana & Matthew Jankowski on-line! See this thread for details.
I am new to Swing.
I am creating a MDI Application. In my application am using menus. On menus select option
i want to call that selected panel.
the panel code is written in another file...
The code is working fine if I am writing the Whole code in one file..
But if i create another class and write panel code in that class.
and when i create object of that class in main class. Its not displaying the panle code in
the panle is being displayed out of frame..
seems to work the same way to me, either way - all as a single .java file, or as separate .java files
all in ReportPanel() is added to a separate JFrame, so it would be correct to appear 'outside' of the initial JDesktopPane/JFrame
perhaps what you need to do is pass a reference of the first JDesktopPane 'desk' when you create ReportPanel(...),
then add reportpanel's JInternalFrame to 'desk', rather than to a newly created JDesktopPane/JFrame
Joined: Aug 03, 2009
I got the solution. Now I can open the selected Panel on Click event of menu Item.
But now when I open the selected Panel and close the panel. after closing the panel I am not able ro reopen it... Its displaying nothing.. what would be the Issue...
on click even I am calling this method...
Joined: Jun 09, 2003
it no longer compiles with that changed method, so I can't help.