Jump to content
xisto Community
Sign in to follow this  
tinoymalayil

How To Create Internal Frame In Java Project..

Recommended Posts

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 ExampleIf 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...

Share this post


Link to post
Share on other sites

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...

boolean resizable = true;
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 (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.