⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 graph.java

📁 TieTaeToe,外國的五子棋。初學者必看
💻 JAVA
字号:
package ticTacToe;


import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class Graph extends Frame
{
  
    
    // Constructor 
	Graph()
    {  
		setLayout(new FlowLayout() );
    
  
     for(int i=0;i<10;i++)
       {
       Button b = new Button(i+"") ;
      // ActionListener listener = new DigitListener(this);
	  // b.addActionListener(listener);
	   add( b ) ;
		}

    this.setSize(300, 300) ;
    this.setVisible( true ) ;
    
    addWindowListener( new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0); }});
     
    
    }
	
public static void main( String [] args )
{
	GridLayout glf = new GridLayout() ;
}    

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -