本文整理了Java中javax.swing.JToggleButton.setModel()
方法的一些代码示例,展示了JToggleButton.setModel()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JToggleButton.setModel()
方法的具体详情如下:
包路径:javax.swing.JToggleButton
类名称:JToggleButton
方法名:setModel
暂无
代码示例来源:origin: stackoverflow.com
JToggleButton btn = new JToggleButton();
btn.setModel(new StickyModel());
btn.setIcon(new ImageIcon(ImageIO.read(getClass().getResource("/Blank.png"))));
btn.setSelectedIcon(new ImageIcon(ImageIO.read(getClass().getResource("/Bomb.png"))));
代码示例来源:origin: it.tidalwave.image/image-renderer
/***************************************************************************
*
*
**************************************************************************/
public void connectButton (final JToggleButton button)
{
action.putValue(Action.SHORT_DESCRIPTION, button.getToolTipText());
button.setAction(action);
button.setModel(buttonModel);
}
代码示例来源:origin: syedlopez/proguard
button.setModel(new JToggleButton.ToggleButtonModel()
代码示例来源:origin: fr.ifremer/isis-fish
queueTableDone.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
queueTableDone.setSelectionModel(selectionModelQueueTableDone);
autoLaunchButton.setModel(autoLaunchButtonModel);
代码示例来源:origin: AliView/AliView
toggleBtnAACode.setToolTipText("Show Amino Acid code (when translated sequence)");
toggleBtnAACode.setIcon(AppIcons.getShowAACodeIcon());
toggleBtnAACode.setModel(aliViewWindow.getAliMenuBar().getShowAACodeButtonModel());
this.add(toggleBtnAACode);
toggleBtnTransOnePos.setToolTipText("Show Translation as only one character Amino Acid)");
toggleBtnTransOnePos.setIcon(AppIcons.getTransOnePosIcon());
toggleBtnTransOnePos.setModel(aliViewWindow.getAliMenuBar().getTransOnePosButtonModel());
this.add(toggleBtnTransOnePos);
toggleBtnShowCodon.setToolTipText("Show/Hide codon positions on toolbar");
toggleBtnShowCodon.setIcon(AppIcons.getShowCodonIcon());
toggleBtnShowCodon.setModel(aliViewWindow.getAliMenuBar().getDrawCoonPosOnRulerButtonModel());
this.add(toggleBtnShowCodon);
代码示例来源:origin: AliView/AliView
toggleButtonDiffTrace.setIcon(AppIcons.getDiffIcon());
toggleButtonDiffTrace.setToolTipText("<html>Highlight difference from one selected \"trace\"-sequence<br>(Select trace sequence by right clicking on target)</html>");
toggleButtonDiffTrace.setModel(aliMenuBar.getHighlightDiffTraceButtonModel());
this.add(toggleButtonDiffTrace);
toggleBtnNonCons.setToolTipText("Highlight difference from majority rule consensus");
toggleBtnNonCons.setIcon(AppIcons.getHighlightNonConsIcon());
toggleBtnNonCons.setModel(aliMenuBar.getHighlightNonConsButtonModel());
this.add(toggleBtnNonCons);
toggleBtnCons.setToolTipText("Highlight majority rule consensus characters");
toggleBtnCons.setIcon(AppIcons.getHighlightConsIcon());
toggleBtnCons.setModel(aliMenuBar.getHighlightConsButtonModel());
this.add(toggleBtnCons);
toggleBtnTrans.setToolTipText("Translates nucleotide sequence to Amino Acids");
toggleBtnTrans.setIcon(AppIcons.getTranslateIcon());
toggleBtnTrans.setModel(aliMenuBar.getToggleTranslationButtonModel());
this.add(toggleBtnTrans);
内容来源于网络,如有侵权,请联系作者删除!