WEB开发网
开发学院WEB开发Jsp java基础问题请教! 阅读

java基础问题请教!

 2008-01-05 09:09:00 来源:WEB开发网   
核心提示:import java.awt.*;import java.awt.event.*;import javax.swing.*;public class GridLayoutDemo extends JFrame implements ActionListener{PRivate JButton buttons[];pr

  import java.awt.*;import java.awt.event.*;import javax.swing.*;public class GridLayoutDemo extends JFrame implements ActionListener{ PRivate JButton buttons[]; private final String names[]={"one","two","three","four","five","six"}; private boolean flag = true; private Container container; private GridLayout grid1,grid2; public GridLayoutDemo() { super("GridLayout Demo"); grid1=new GridLayout(2,3,5,5); grid2=new GridLayout(3,2); Container container=getContentPane(); container.setLayout(grid1); buttons=new JButton[names.length]; for(int count=0;count

Tags:java 基础 问题

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接