我在数据库中设置了权限,1代表管理员,0代表普通用户,代码如下:create table d
(
name varchar(20) primary key (name,sf), mima varchar(20),
sf char(10))insert into d values ('白军','qwer','1')
insert into d values ('张三','197899','1')
insert into d values ('李司','11','0')
alter proc selec_procas
  select name ,mima,
       case sf
          when 1 then '管理员'
  when 0 then '普通用户'
  end 
   from  d 
 
exec selec_proc 
          
 登陆画面代码如下:
import javax.swing.*;import db.Testdb;
import db.UserInfo;
import db.UserSQL;import java.awt.*;
import java.awt.event.*;
import java.util.*;
public class DengL  extends JFrame implements ActionListener{
JLabel j1,j2,j3;
JTextField text1;
JPasswordField text2;
JPanel p1,p2,p3,p4,p;
JRadioButton but1,but2;
JButton t1,t2;
ButtonGroup group;
public DengL(){
super("登陆");
 j1=new JLabel("用户名");
 text1=new JTextField(10);
 
 j2=new JLabel("密码");
 text2=new JPasswordField(10);
 
 j3=new JLabel("身份");
 but1 = new JRadioButton("管理员",true);
 but2 =new  JRadioButton("普通用户");
 group = new ButtonGroup();
 group.add(but1);
 group.add(but2);
 t1= new JButton("登陆");
 t2 =new JButton("重置");
 p1=new JPanel();
 p1.add(j1);
 p1.add(text1);
 p2=new JPanel();
 p2.add(j2);
 p2.add(text2);
 p3=new JPanel();
 p3.add(j3);
 p3.add(but1);
 p3.add(but2);
 p4=new JPanel();
 p4.add(t1);
 p4.add(t2);
 p=new JPanel();
 p.setLayout(new GridLayout(4,1));
 p.add(p1);
 p.add(p2);
 p.add(p3);
 p.add(p4);
 add(p,BorderLayout.CENTER);
 
 setSize(400,400);
 setVisible(true);
 t1.addActionListener(this);
 t2.addActionListener(this);
 this.addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
Testdb db=Testdb.getInstance();
try{
if(db.conn!=null){
db.conn.close();
}
}catch(Exception ex){
ex.printStackTrace();
}
finally{
System.exit(0);
}
}

 });
 
 

}
public void actionPerformed(ActionEvent e){

if(e.getSource()==t1){
selectMethod();
//
}

if(e.getSource()==t2){
text1.setText("");
text2.setText("");
}
}
public void selectMethod(){
String name=text1.getText();
String mima=String.valueOf(text2.getPassword());
if("".equals(name)&&name==null){
JOptionPane.showMessageDialog(this, "用户名不能为空");
return ;
}
if("".equals(mima)&&mima==null){
JOptionPane.showMessageDialog(this,"密码不能为空");
return ;
}
UserInfo info=new UserInfo();
UserSQL sql=new UserSQL();
ArrayList<UserInfo> list=sql.select(name);
int n=list.size();
if(n==0){
 JOptionPane.showMessageDialog(this, "暂无数据");
 return ;
}
String s="";
String str[]=new String [3];
if(n==1){
for(UserInfo in:list){
str[0]=in.getName();
str[1]=in.getMima();
str[2]=in.getSf();
}

}
if(but1.isSelected()){
s="1";
if(str[0].equals(name)&&str[1].equals(mima)&&str[2].equals(s)){
Cx c=new Cx();
c.setVisible(true);
this.disable();

}
 
}
 if(but2.isSelected()){
 s="0";
 if(str[0].equals(name)&&str[1].equals(mima)&&str[2].equals(s)){
 
 //t.setVisible(true);
 this.disable();
 Pt t=new Pt();
 
 }

}



}
public static void main(String[] args) {
new DengL(); }}
如果我选择了管理员单选按钮怎样才能把管理员的信息显示在Jtable中。请高手指点一下,最好有具体代码!!