解决方案 »

  1.   

    帮楼主贴下图吧
    http://i53.tinypic.com/21o3kif.png
      

  2.   

    刚好有个差不多的,改了下发上来,细节自己改
    import java.awt.*;
    import javax.swing.*;
    public class jframe {
               JButton btn1 = new JButton("交卷");
               JButton btn2 = new JButton("上一题");
               JButton btn3 = new JButton("下一题");
               JButton btn4 = new JButton("确认");
               JLabel  lab1 = new JLabel("考生姓名:           ");
               JLabel  lab2 = new JLabel("某某某                     ");
               JLabel  lab3 = new JLabel("距考试结束还有:           ");
               JLabel  lab4 = new JLabel("**:**:**");
               JTextArea textArea = new JTextArea(10,50);
               JPanel   northPanel = new JPanel();
               JPanel   centerPanel = new JPanel();
               JPanel   southPanel = new JPanel();
               JPanel   fatherPanel =new JPanel();
               JFrame   frame  =new JFrame();
               JRadioButton[] teams = new JRadioButton[4];
               ButtonGroup group =new ButtonGroup();
               public jframe(){
                frame.setTitle("查询");
                frame.setBounds(300, 150,800,300);
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);           
                frame.setResizable(false);
                frame.setVisible(true); 
                
                teams[0] = new JRadioButton("A");
                teams[1] = new JRadioButton("B");
                teams[2] = new JRadioButton("B");
                teams[3] = new JRadioButton("B");
                for(int i=0;i<teams.length;i++)
                {            
                group.add(teams[i]);
                southPanel.add(teams[i]);
                }
                
                northPanel.add(lab1);
                northPanel.add(lab2);
                northPanel.add(lab3);
                northPanel.add(lab4);
                northPanel.add(btn1);
                
                
                centerPanel.add(textArea);
                
                
                southPanel.add(btn2);
                southPanel.add(btn3);
                southPanel.add(btn4);
                
                
                fatherPanel.add(northPanel,BorderLayout.NORTH);
                fatherPanel.add(centerPanel,BorderLayout.CENTER);
                fatherPanel.add(southPanel,BorderLayout.SOUTH);
                
                frame.add(fatherPanel); 
                
               }
               public static void main(String[] arguments){
                jframe  s=new jframe();
            
            }
    }
      

  3.   

    JFrame下的一个BorderLayout布局
    North:JPanel的默认布局,含两个JLabel、两个JTextField、一个JButton;
    后一个JTextField内放置一个时钟,可以用定时器解决。
    Center:BorderLayout布局,Center为一个JTextArea,South为4个JCheckBox;
    South:JPanel的默认布局,含3个JButton类实现ActionListener接口,4个JButton的注册监听到类的ActionPerformed方法上。
      

  4.   

    真的都是好久没写了  楼主  myeclipse 里面有swing的插件 你试试  直接拖拽  类似VB  很强大的