Which is a better top level container for this design, JFrame with Jpanels, or JDesktop with JInternalFrames

↘锁芯ラ 提交于 2019-12-02 00:52:37

GraphPanel may give you some ideas for constructing such an application.

JInternalFrames typically have titlebars, go-away boxes etc. example here which doesn't seem to fit your model. (Unless you want users to be able to move the panels anywhere they want, or make them go away?) So I'd suggest the simpler JFrame with JPanels.

Consider two JSplitPanes to separate the drawing area, control area, and properties area. JSplitPane allows the user to resize the areas by clicking and dragging the split line with the mouse.

(Use a JFrame for the top level component.)

As a beginner, if you don't need resizing and scrolling, you will have a much easier time if you make an app that doesn't resize or scroll.

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