JAVA 开发修复U盘工具 更多洞信灶
代码参见本人QQ空间 public class Utatill extends JFrame { private JComboBox F=new JComboBox() private JLabel hint =new JLabel("提示:
请选择U盘") private JLabel BQ =new JLabel("<html><href>版权所有:奇缘网络</href></html>"坦大) private JLabel Border =new JLabel() private JLabel happyimage =new JLabel(new ImageIcon("new.gif")) private JButton enter=new JButton("确定") private JButton quit=new JButton("取消") private JRadioButton defunt= new JRadioButton("默纳扮认",true) private JRadioButton all= new JRadioButton("全盘") private ButtonGroup bg=new ButtonGroup() public Utatill() { super.setTitle("U盘文件恢复") super.setAlwaysOnTop(true) super.setSize(300, 400) super.setLocation(720, 200) super.setResizable(false) super.setDefaultCloseOperation(3) super.setLayout(null) String[] A=new String[26] for(int i=0i<26i++) { A=(char)(i+65)+"" F.addItem(A) } F.setSize(80,20) F.setLocation(25,70) super.add(F) defunt.setSize(60,30) defunt.setLocation(125,30) super.add(defunt) all.setSize(60,30) all.setLocation(184,30) super.add(all) bg.add(all) bg.add(defunt) hint.setSize(180,30) hint.setLocation(10,30) super.add(hint) happyimage.setSize(248,180) happyimage.setLocation(32,135) Border.setBorder(new TitledBorder("
牛年吉祥")) super.add(happyimage) Border.setSize(268,209) Border.setLocation(22,115) super.add(Border) BQ.setFont(new Font("宋体",Font.PLAIN,12)) BQ.setSize(120,25) BQ.setLocation(22,325) super.add(BQ) enter.setSize(60,30) enter.setLocation(130,66) super.add(enter) quit.setSize(60,30) quit.setLocation(200,66) super.add(quit) ActionListener() initialization() }public test_03(){
init()
}
public 肆亏void init(){
JLabel jl_1=new JLabel("用户名")
JLabel jl_2=new JLabel("密码")
JTextField jtf=new JTextField()
JPasswordField 搭竖jpf=new JPasswordField()
JButton button_1=new JButton("确定")
JPanel panel=new JPanel()
panel.setLayout(null)
jl_1.setBounds(30, 50, 50, 30)
jl_2.setBounds(30,90,50,30)
jtf.setBounds(100, 50, 100, 30)
jpf.setBounds(100, 90, 100, 30)
button_1.setBounds(110, 130, 80, 30)
panel.add(jl_1)
panel.add(jl_2)
panel.add(jtf)
panel.add(jpf)
panel.add(button_1)
this.add(panel)
this.setSize(300, 250)
this.setLocation(400, 裂枝神300)
this.setVisible(true)
}
public static void main(String[] args) {
new test_03()
}
评论列表(0条)