abstractlnfaction.java

来自「SWING的界面UI包 SWING的界面UI包」· Java 代码 · 共 31 行

JAVA
31
字号
/* * 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.LookAndFeel;/** * * @author William Chen */public abstract class AbstractLnfAction extends AbstractContextAction {    private LookAndFeel lnf;    public AbstractLnfAction(SwingDesigner designer, String name) {        super(designer);        putValue(NAME, name);    }            protected abstract LookAndFeel createLnf();    public void actionPerformed(ActionEvent e) {        if(lnf==null)            lnf=createLnf();        designer.setDesignLnf(lnf);        designer.setRootComponent(designer.getRootComponent());        designer.repaint();    }}

⌨️ 快捷键说明

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