📄 yulan.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 + -