|
![]() |
名片设计 CorelDRAW Illustrator AuotoCAD Painter 其他软件 Photoshop Fireworks Flash |
|
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 返回类别: 教程 上一教程: JAVA基础知识精华总结 下一教程: java.net.URLEncoder翻译 您可以阅读与"java基础问题请教!"相关的教程: · JAVA初学及基础问题 · java、J2EE基础问题汇总 · Java初学及基础问题 · weblogic的几个基础问题 · JAVA程序员必读:基础篇(目录) |
![]() ![]() |
快精灵印艺坊 版权所有 |
首页![]() ![]() ![]() ![]() ![]() ![]() ![]() |