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

后端 未结 3 2023
刺人心
刺人心 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.

提交回复
热议问题