2个回答
展开全部
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=0;i<26;i++) { 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(); }
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |