以下代码可以给一个标签加方框:
public class BorderDemo {   static {
        try {
            UIManager.setLookAndFeel
                (UIManager.getSystemLookAndFeelClassName());
        } catch (Exception e) {
      }
   }
    public static void main(String... a) {
        JFrame f = new JFrame();
        JLabel label = new JLabel("******");
        label.setBorder
            (BorderFactory.createTitledBorder
                 (BorderFactory.createEtchedBorder(), "方框"));
        f.add(label);
        f.pack();
        f.setVisible(true);
    }
    
}但是我想给一组控件加方框应该怎么做了?
比如我想给两个单选铵钮和两个标签加方框,这样看起来就是一组,美观,怎样才能实现了.?
我是初次用JBuiler2005做界面,找不到怎么弄,也不知道代码怎么写,请各位高手看看了?
急待回答.