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

📄 alignmentaction.java

📁 SWING的界面UI包 SWING的界面UI包
💻 JAVA
字号:
/* * EditingAction.java * * Created on 2007-9-9, 10:49:14 * * To change this template, choose Tools | Templates * and open the template in the editor. */package dyno.swing.designer.beans.actions;import dyno.swing.designer.beans.SwingDesigner;import java.awt.event.ActionEvent;import javax.swing.AbstractAction;import javax.swing.Action;/** * * @author rehte */public class AlignmentAction extends AbstractAction implements ActionCategory {    protected SwingDesigner designer;    protected Action[] subactions;    public AlignmentAction(SwingDesigner designer) {        this.designer = designer;        putValue(NAME, "Alignment");        subactions = new Action[]{            new LeftAlignmentAction(designer),             new CenterAlignmentAction(designer),             new RightAlignmentAction(designer),             new TopAlignmentAction(designer),             new MiddleAlignmentAction(designer),             new BottomAlignmentAction(designer)        };    }    public void actionPerformed(ActionEvent e) {    }    public Action[] getSubActions() {        return subactions;    }}

⌨️ 快捷键说明

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