-1

i want to add some frame to my main frame, lets say we've 3 frames (Frame1, Frame2, and Frame3) i want to:

  1. Create new Frame called Frame 4 and add menu bar with items (View Frame1, View Frame2, View Frame3) --> actually i've created this frame successfully.
  2. When click on View Frame1 i want to display Frame1 in a certain place in Frame4 and so on for all menuItems
  3. My problem is i've created my old frames by using Drag-and-drop tech. in net beans
  4. There is a component called internalFrame but when i tried to use it i couldn't add my old frame to this internal one.
mKorbel
  • 109,525
  • 20
  • 134
  • 319
BDeveloper
  • 1,175
  • 6
  • 24
  • 44
  • 1
    Use one [`JFrame`](http://docs.oracle.com/javase/6/docs/api/javax/swing/JFrame.html) and multiple [`JInternalFrame`](http://docs.oracle.com/javase/6/docs/api/javax/swing/JInternalFrame.html)s instead. – Eng.Fouad Jun 04 '12 at 18:32

1 Answers1

2

You can solve your problems by reading this great tutorial on creating MDI applications in Java using NetBeans.

GETah
  • 20,922
  • 7
  • 61
  • 103