本文整理汇总了Java中javax.swing.plaf.metal.MetalToggleButtonUI类的典型用法代码示例。如果您正苦于以下问题:Java MetalToggleButtonUI类的具体用法?Java MetalToggleButtonUI怎么用?Java MetalToggleButtonUI使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MetalToggleButtonUI类属于javax.swing.plaf.metal包,在下文中一共展示了MetalToggleButtonUI类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getEmbedButton
import javax.swing.plaf.metal.MetalToggleButtonUI; //导入依赖的package包/类
/**
* Getter method for embedButton
*
* @return embedButton
*/
public JToggleButton getEmbedButton() {
if (this.embedButton == null) {
this.embedButton = new JToggleButton(labelUtil.getString("gui.label.tab.dhEmbed"),
new ImageIcon(getClass().getResource("/image/EmbedIcon.png")), true);
if (toggleUiHack) {
this.embedButton.setUI(new MetalToggleButtonUI());
}
this.embedButton.setVerticalTextPosition(SwingConstants.BOTTOM);
this.embedButton.setHorizontalTextPosition(SwingConstants.CENTER);
this.embedButton.setFocusable(false);
this.actionButtonGroup.add(this.embedButton);
}
return this.embedButton;
}
示例2: getExtractButton
import javax.swing.plaf.metal.MetalToggleButtonUI; //导入依赖的package包/类
/**
* Getter method for extractButton
*
* @return extractButton
*/
public JToggleButton getExtractButton() {
if (this.extractButton == null) {
this.extractButton = new JToggleButton(labelUtil.getString("gui.label.tab.dhExtract"),
new ImageIcon(getClass().getResource("/image/ExtractIcon.png")));
if (toggleUiHack) {
this.extractButton.setUI(new MetalToggleButtonUI());
}
this.extractButton.setVerticalTextPosition(SwingConstants.BOTTOM);
this.extractButton.setHorizontalTextPosition(SwingConstants.CENTER);
this.extractButton.setFocusable(false);
this.actionButtonGroup.add(this.extractButton);
}
return this.extractButton;
}
示例3: getGenSigButton
import javax.swing.plaf.metal.MetalToggleButtonUI; //导入依赖的package包/类
/**
* Getter method for genSigButton
*
* @return genSigButton
*/
public JToggleButton getGenSigButton() {
if (this.genSigButton == null) {
this.genSigButton = new JToggleButton(labelUtil.getString("gui.label.tab.wmGenSig"),
new ImageIcon(getClass().getResource("/image/EmbedIcon.png"))); // TODO
if (toggleUiHack) {
this.genSigButton.setUI(new MetalToggleButtonUI());
}
this.genSigButton.setVerticalTextPosition(SwingConstants.BOTTOM);
this.genSigButton.setHorizontalTextPosition(SwingConstants.CENTER);
this.genSigButton.setFocusable(false);
this.actionButtonGroup.add(this.genSigButton);
}
return this.genSigButton;
}
示例4: getSignWmButton
import javax.swing.plaf.metal.MetalToggleButtonUI; //导入依赖的package包/类
/**
* Getter method for signWmButton
*
* @return signWmButton
*/
public JToggleButton getSignWmButton() {
if (this.signWmButton == null) {
this.signWmButton = new JToggleButton(labelUtil.getString("gui.label.tab.wmEmbed"),
new ImageIcon(getClass().getResource("/image/EmbedIcon.png")));
if (toggleUiHack) {
this.signWmButton.setUI(new MetalToggleButtonUI());
}
this.signWmButton.setVerticalTextPosition(SwingConstants.BOTTOM);
this.signWmButton.setHorizontalTextPosition(SwingConstants.CENTER);
this.signWmButton.setFocusable(false);
this.actionButtonGroup.add(this.signWmButton);
}
return this.signWmButton;
}
示例5: getVerifyWmButton
import javax.swing.plaf.metal.MetalToggleButtonUI; //导入依赖的package包/类
/**
* Getter method for verifyWmButton
*
* @return verifyWmButton
*/
public JToggleButton getVerifyWmButton() {
if (this.verifyWmButton == null) {
this.verifyWmButton = new JToggleButton(labelUtil.getString("gui.label.tab.wmVerify"),
new ImageIcon(getClass().getResource("/image/ExtractIcon.png")));
if (toggleUiHack) {
this.verifyWmButton.setUI(new MetalToggleButtonUI());
}
this.verifyWmButton.setVerticalTextPosition(SwingConstants.BOTTOM);
this.verifyWmButton.setHorizontalTextPosition(SwingConstants.CENTER);
this.verifyWmButton.setFocusable(false);
this.actionButtonGroup.add(this.verifyWmButton);
}
return this.verifyWmButton;
}