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

前端 未结 7 1702
野的像风
野的像风 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:31

    Not AFAIK, at least not with standard swing widgets.

    In VB you have a group widget, which is essentially a panel + border.

    In Swing you have a JPanel which is the container widget, and you create and set a border object on it only if you need one. One can argue that in a way that is more elegant since you don't pay for something you don't use (e.g., border)

提交回复
热议问题