I would:
  1. create a JFrame, set ContentPane to BorderLayout
  2. add ToolBar in the NORTH
  3. add JLabel in the SOUTH
  4. add JDesktopPane in the CENTER
  5. add the JInternalFrames to the JDesktopPane
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Amit Rana
Sent: Wednesday, February 13, 2002 8:59 PM
To: advanced_swing
Cc: swing
Subject: JinternalFrame and JDesktopPane Question.
Importance: High

Hi,
 
Requirement:
To have a screen that has toolbar at the top, status bar at the bottom and two frames in the center. The frames in the center will act as main work area. i.e. user can drag some patterns or objects on frame 1 and frame 2 will display its properties.
In order to give user freedom to close one or reduce/increase size I want them to be as frames instead of panels.
 
Problem:
1. Is there any other way in which I can achieve the same type of screen?
2. I want to put my internal frame on a desktopPane, how can I do that (in the attached code)?
3. why my internalFrame doesnt reflect the size that I give it?
 
What have i done:
1. Created a frame
2. Created a panel with BorderLayout.
3. Added a panel with toolbar in the north.
4. Added a panel with a Jlabel in the south.
5. Added a panel with JInternalFrame in the center.
 
The code:
1. Please find attached.
2. To Run--> java MainFrame
3. MainFrame.java -- is the startup class, that creates the frame.
4. MToolBar.java -- creates the toolbar.
5. MyInternalFrame.java -- create the internal frame.
 
Guide.
 
Regards,
Amit.

Reply via email to