java中swing的简单用法,做一个小界面
![](https://images2015.cnblogs.com/blog/897641/201603/897641-20160310130713366-1078391204.jpg)
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
package zzn; import javax.swing.*; public class demoui extends JFrame { public static void main(String[] args) { demoui ui=new demoui(); } public demoui() { this.setVisible(true); this.setSize(500,500); } }
package zzn; import javax.swing.*; public class demoui extends JFrame { public static void main(String[] args) { demoui ui=new demoui(); } public demoui() { this.setVisible(true); this.setSize(500,500); } }