Hi all,
I am doin a project in Java using Netbeans IDE..Please tell me how to create Internal Frame in the Java swing application .I saw many tutorials.But all the tutorials showing the same example.I need to set the property of dragging as false for the JInternal Frame an d also need to automatically close the active JInternal Frame when navigating any other page by selecting from the menu..
i.e for Example
If we have an application which having one single menu with two menuitems..
I need to view the page of each menuitem in the main frame..and also no two internal frame are to set open at same time..
Please help me...
| |
|
Welcome to KnowledgeSutra - Dear Guest | |
How To Create Internal Frame In Java Project..
Started by tinoymalayil, Jul 20 2009 09:45 AM
1 reply to this topic
#2
Posted 22 March 2010 - 07:57 PM
tinoymalayil, on Jul 20 2009, 02:15 PM, said:
Hi all,
I am doin a project in Java using Netbeans IDE..Please tell me how to create Internal Frame in the Java swing application .I saw many tutorials.But all the tutorials showing the same example.I need to set the property of dragging as false for the JInternal Frame an d also need to automatically close the active JInternal Frame when navigating any other page by selecting from the menu..
i.e for Example
If we have an application which having one single menu with two menuitems..
I need to view the page of each menuitem in the main frame..and also no two internal frame are to set open at same time..
Please help me...
I am doin a project in Java using Netbeans IDE..Please tell me how to create Internal Frame in the Java swing application .I saw many tutorials.But all the tutorials showing the same example.I need to set the property of dragging as false for the JInternal Frame an d also need to automatically close the active JInternal Frame when navigating any other page by selecting from the menu..
i.e for Example
If we have an application which having one single menu with two menuitems..
I need to view the page of each menuitem in the main frame..and also no two internal frame are to set open at same time..
Please help me...
boolean closeable = true;
boolean maximizable = true;
boolean iconifiable = true;
int width = 200;
int height = 50;
JInternalFrame iframe = new JInternalFrame("", resizable, closeable, maximizable, iconifiable);
iframe.setSize(width, height);
// Add components to internal frame
// Add internal frame to desktop
JDesktopPane desktop = new JDesktopPane();
desktop.add(iframe);
Edited by afshin_a, 22 March 2010 - 08:00 PM.
Reply to this topic

1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users














