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

📄 yulan.java

📁 一个使用JB9编写的网络俄罗斯方块,大家可以下载如有不足还请原谅,有是可以给我EMAIL
💻 JAVA
字号:
package one_piece;import java.awt.*;import com.borland.jbcl.layout.*;import javax.swing.*;/** * <p>Title: ONE PIECE</p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class YuLan extends JPanel {  int sqlenght = 20;  JLabel label[][] = new JLabel[4][4];  XYLayout xYLayout1 = new XYLayout();  public YuLan() {    try {      jbInit();    }    catch(Exception ex) {      ex.printStackTrace();    }  }  public void SetIcon(int row ,int comln,ImageIcon image)  {    ImageIcon thisimage;    thisimage = image;    label[row][comln].setIcon(thisimage);  }  void jbInit() throws Exception {    this.setLayout(xYLayout1);    for(int i = 0;i<4;i++)          for(int j = 0;j<4;j++)            {              label[i][j] = new JLabel();              this.add(label[i][j],  new XYConstraints(sqlenght*i+17,sqlenght*j+18 , -1, -1));            }  }}

⌨️ 快捷键说明

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