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

后端 未结 3 2024
刺人心
刺人心 2021-01-23 03:31

I\'m a beginner with Swing and AWT, I\'m looking to build a GUI using Netbeans. My GUI requires three areas, that I\'m currently thinking of as JPanels on a JFrame. I require

相关标签:
3条回答
  • 2021-01-23 03:47

    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.

    enter image description here

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

    0 讨论(0)
  • 2021-01-23 03:50

    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.

    0 讨论(0)
  • 2021-01-23 03:52

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

    GraphPanel screenshot

    0 讨论(0)
提交回复
热议问题