📄 magic4.java
字号:
/* Java Applet generated by CGLIB of B-Prolog */
import java.awt.*;
import java.applet.Applet;
import java.awt.event.*;
import java.net.*;
import java.net.*;
public class magic4 extends Applet {
boolean repeat = false;
public void start(){repeat = true; }
public void stop(){repeat = false; }
Button bu_1;
Button bu_2;
Button bu_3;
Button bu_4;
Button bu_5;
Button bu_6;
Button bu_7;
Button bu_8;
Button bu_9;
Button bu_10;
Button bu_11;
Button bu_12;
Button bu_13;
Button bu_14;
Button bu_15;
Button bu_16;
public void init(){
setLayout(null);
bu_1 = new Button(" 1");
add(bu_1);
bu_1.setSize(42,42);
bu_1.setLocation(0,0);
bu_2 = new Button(" 2");
add(bu_2);
bu_2.setSize(42,42);
bu_2.setLocation(42,0);
bu_3 = new Button(" 15");
add(bu_3);
bu_3.setSize(42,42);
bu_3.setLocation(84,0);
bu_4 = new Button(" 16");
add(bu_4);
bu_4.setSize(42,42);
bu_4.setLocation(126,0);
bu_5 = new Button(" 12");
add(bu_5);
bu_5.setSize(42,42);
bu_5.setLocation(0,42);
bu_6 = new Button(" 14");
add(bu_6);
bu_6.setSize(42,42);
bu_6.setLocation(42,42);
bu_7 = new Button(" 3");
add(bu_7);
bu_7.setSize(42,42);
bu_7.setLocation(84,42);
bu_8 = new Button(" 5");
add(bu_8);
bu_8.setSize(42,42);
bu_8.setLocation(126,42);
bu_9 = new Button(" 13");
add(bu_9);
bu_9.setSize(42,42);
bu_9.setLocation(0,84);
bu_10 = new Button(" 7");
add(bu_10);
bu_10.setSize(42,42);
bu_10.setLocation(42,84);
bu_11 = new Button(" 10");
add(bu_11);
bu_11.setSize(42,42);
bu_11.setLocation(84,84);
bu_12 = new Button(" 4");
add(bu_12);
bu_12.setSize(42,42);
bu_12.setLocation(126,84);
bu_13 = new Button(" 8");
add(bu_13);
bu_13.setSize(42,42);
bu_13.setLocation(0,126);
bu_14 = new Button(" 11");
add(bu_14);
bu_14.setSize(42,42);
bu_14.setLocation(42,126);
bu_15 = new Button(" 6");
add(bu_15);
bu_15.setSize(42,42);
bu_15.setLocation(84,126);
bu_16 = new Button(" 9");
add(bu_16);
bu_16.setSize(42,42);
bu_16.setLocation(126,126);
}
public void paint(Graphics g){
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -