62,615
社区成员
发帖
与我相关
我的任务
分享
import javax.swing.*;
public class Test {
public static void main(String[] args) {
new Frame();
//下面还有很多语句……
}
}
class Frame extends JFrame{
Frame(){
setVisible(true);
setSize(300,300);
JLabel j = new JLabel("hhhhh");
JButton jj =new JButton("x");
add(j);
add(jj);
}
}