Is there a “Group Box” equivalent in Java Swing?

前端 未结 7 1499
野的像风
野的像风 2021-01-30 19:50

Trying to build a GUI application in Java/Swing. I\'m mainly used to \"painting\" GUIs on the Windows side with tools like VB (or to be more precise, Gupta SQLWindows... wonder

7条回答
  •  伪装坚强ぢ
    2021-01-30 20:24

    A Group box is just a set of 'logically grouped widgets'. This in the swing world is a JPanel.

    Add your widgets to a JPanel.

    Set its border type to 'Titled Border' and give the title, same as the name of the VB6 'frame'.

    Voila. You have your group box.

提交回复
热议问题