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

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

    Create a JPanel, and add your radiobuttons to it. Don't forget to set the layout of the JPanel to something appropriate.

    Then call panel.setBorder(BorderFactory.createTitledBorder(name));

提交回复
热议问题