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

📄 jroletoolbar.java

📁 TestDataBuilder是一个采用Java编写的
💻 JAVA
字号:
package com.testDataBuilder.ui.role;

import javax.swing.JToolBar;
import java.awt.Dimension;
import com.testDataBuilder.ui.core.JTDButton;

public class JRoleToolBar extends JToolBar {

    RoleDialog parent = null;
    private JTDButton btnNewRole = null;
    private JTDButton btnDelSelRole = null;
    
    public JRoleToolBar(RoleDialog parent){
        super();
		initialize();
        this.parent = parent;
    }

    /**
     * This method initializes this
     * 
     */
    private void initialize() {
        this.setSize(new Dimension(427, 28));
        this.add(getBtnNewRole());
        this.add(getBtnDelSelRole());
    		
    }

    /**
     * This method initializes btnNewRole	
     * 	
     * @return com.testDataBuilder.ui.core.JTDButton	
     */
    private JTDButton getBtnNewRole() {
        if (btnNewRole == null) {
            btnNewRole = new JTDButton();
            btnNewRole.setText("添加规则");
        }
        return btnNewRole;
    }

    /**
     * This method initializes btnDelSelRole	
     * 	
     * @return com.testDataBuilder.ui.core.JTDButton	
     */
    private JTDButton getBtnDelSelRole() {
        if (btnDelSelRole == null) {
            btnDelSelRole = new JTDButton();
            btnDelSelRole.setText("删除所选规则");
        }
        return btnDelSelRole;
    }
    
    
}  //  @jve:decl-index=0:visual-constraint="10,10"

⌨️ 快捷键说明

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