Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

How To Create Internal Frame In Java Project..


1 reply to this topic

#1 tinoymalayil

    Premium Member

  • Kontributors
  • PipPipPipPipPipPipPipPip
  • 154 posts
  • Gender:Male
  • Location:India
  • myCENT:23.11

Posted 20 July 2009 - 09:45 AM

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

#2 afshin_a

    Newbie

  • Kontributors
  • Pip
  • 4 posts

Posted 22 March 2010 - 07:57 PM

View Posttinoymalayil, 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...
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, 22 March 2010 - 08:00 PM.





Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users