?? palette.java
字號(hào):
/* * This source code is part of TWaver 1.3.1 * * SERVA Software PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * Copyright 2000-2005 SERVA Software, Inc. All rights reserved. */package demo.editor;
import java.awt.FlowLayout;import javax.swing.BorderFactory;import javax.swing.JLabel;import javax.swing.JPanel;
public class Palette extends JPanel{
private String name;
public Palette(String name, Class[] classes) {
this.name = name; FlowLayout layout = new FlowLayout();
layout.setAlignment(FlowLayout.LEFT); layout.setHgap(0); layout.setVgap(0); this.setLayout(layout); this.setBorder(BorderFactory.createEmptyBorder(5, 10, 5, 10)); if (classes != null && classes.length > 0) { for (int i = 0; i < classes.length; i++) { JLabel button = new PaletteButton(classes[i]); this.add(button); } }
} public String getName(){ return name; }
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -