adding frames to mainFrame

孤人 提交于 2019-12-10 00:32:43

问题


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.

回答1:


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



来源:https://stackoverflow.com/questions/10885784/adding-frames-to-mainframe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!