本文整理了Java中javax.swing.JButton.setComponentPopupMenu()
方法的一些代码示例,展示了JButton.setComponentPopupMenu()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JButton.setComponentPopupMenu()
方法的具体详情如下:
包路径:javax.swing.JButton
类名称:JButton
方法名:setComponentPopupMenu
暂无
代码示例来源:origin: runelite/runelite
});
button.setComponentPopupMenu(popupMenu);
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction
@Override
public void setComponentPopupMenu(JPopupMenu aMenu) {
super.setComponentPopupMenu(aMenu);
}
代码示例来源:origin: senbox-org/snap-desktop
public JButton getButton(final JPanel panel) {
if (button == null) {
button = DialogUtils.createButton("batchProcessButton", "Batch", batchIcon, panel, DialogUtils.ButtonStyle.Icon);
button.setToolTipText("Right click to select a graph");
button.setComponentPopupMenu(createGraphPopup());
}
return button;
}
代码示例来源:origin: lbalazscs/Pixelitor
private void initFGButton() {
fgButton = initButton("Set Foreground Color", BIG_BUTTON_SIZE, 2);
fgButton.addActionListener(e -> fgButtonPressed());
fgButton.setLocation(0, SMALL_BUTTON_VERTICAL_SPACE);
fgButton.setComponentPopupMenu(createPopupMenu(true));
}
代码示例来源:origin: xyz.cofe/gui.swing
@Override
public void setComponentPopupMenu(JPopupMenu popup) {
JPopupMenu old = getComponentPopupMenu();
if( old!=null ){
old.removePopupMenuListener(popupMenuListener);
}
super.setComponentPopupMenu(popup);
if( popup!=null ){
popup.addPopupMenuListener(popupMenuListener);
}
}
代码示例来源:origin: lbalazscs/Pixelitor
private void initBGButton() {
bgButton = initButton("Set Background Color", BIG_BUTTON_SIZE, 1);
bgButton.addActionListener(e -> bgButtonPressed());
bgButton.setLocation(BIG_BUTTON_SIZE / 2, SMALL_BUTTON_VERTICAL_SPACE + BIG_BUTTON_SIZE / 2);
bgButton.setComponentPopupMenu(createPopupMenu(false));
}
代码示例来源:origin: omegat-org/omegat
m_quickScriptButtons[i].setComponentPopupMenu(quickScriptPopup);
代码示例来源:origin: sing-group/GC4S
.build();
btnBrowse.setComponentPopupMenu(getPopupMenu());
fileName.setComponentPopupMenu(getPopupMenu());
内容来源于网络,如有侵权,请联系作者删除!