.Net2.0中废弃的API

废弃API

11-07

请问我这个类编译显示用了或者覆盖了废弃的API,不知道用了哪个废弃的API,大家帮帮忙rnimport java.awt.*;rnclass myframe extends Framernrn private Panel borderpanel;rn private Panel gridpanel;rn private Panel flowpanel;rn private Panel cardpanel;rn myframe(String title)rn rn super(title);rn setSize(300,400);rn setLocation(100,100);rn setborderlayout();rn setflowlayout();rn setgridlayout();rn setcardlayout();rn add(borderpanel);rn add(gridpanel);rn add(flowpanel);rn add(cardpanel);rn setLayout(new GridLayout(2,2));rn rn rn rn public void setborderlayout()rnrn Panel borderpanel=new Panel();rn borderpanel.setLayout(new BorderLayout());rn Button btn1=new Button("East");rn Button btn2=new Button("South");rn Button btn3=new Button("West");rn Button btn4=new Button("North");rn Button btn5=new Button("Center");rn borderpanel.add(btn1,BorderLayout.EAST);rn borderpanel.add(btn2,BorderLayout.SOUTH);rn borderpanel.add(btn3,BorderLayout.WEST);rn borderpanel.add(btn4,BorderLayout.NORTH);rn borderpanel.add(btn5,BorderLayout.CENTER);rn rn rnrnpublic void setflowlayout()rnrn Panel flowpanel=new Panel();rn flowpanel.setLayout(new FlowLayout());rn Button btn1=new Button("A");rn Button btn2=new Button("B");rn flowpanel.add(btn1,"1");rn flowpanel.add(btn2,"2");rn rn rnrnpublic void setgridlayout()rnrn Panel gridpanel=new Panel();rn gridpanel.setLayout(new GridLayout(2,3));rn Button btn1=new Button();rn Button btn2=new Button();rn Button btn3=new Button();rn Button btn4=new Button();rn Button btn5=new Button();rn gridpanel.add(btn1);rn gridpanel.add(btn2);rn gridpanel.add(btn3);rn gridpanel.add(btn4);rn gridpanel.add(btn5);rn rnrnpublic void setcardlayout()rnrn Panel cardpanel=new Panel();rn cardpanel.setLayout(new CardLayout());rn Button btn1=new Button("红桃K");rn Button btn2=new Button("梅花J");rn cardpanel.add(btn1);rn cardpanel.add(btn2);rn rnrn public static void main(String []args) throws HeadlessExceptionrn rn myframe mf=new myframe("我的架构");rn mf.show();rn rn rn

没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试