本文整理了Java中javax.swing.JMenu.setDelay()
方法的一些代码示例,展示了JMenu.setDelay()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JMenu.setDelay()
方法的具体详情如下:
包路径:javax.swing.JMenu
类名称:JMenu
方法名:setDelay
暂无
代码示例来源:origin: stackoverflow.com
for (int i = 0; i < 5; i++)
{
JMenu menu = new JMenu("Menu " + i);
pMenu.add(menu);
for (int j = 0; j < 10; j++)
{
menu.add(new JMenuItem("Item " + j));
}
menu.setDelay(1000);
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
protected void installDefaults() {
super.installDefaults();
((JMenu)menuItem).setDelay(200);
}
代码示例来源:origin: com.jidesoft/jide-oss
@Override
protected void installDefaults() {
super.installDefaults();
((JMenu) menuItem).setDelay(200);
crossMenuMnemonic = UIDefaultsLookup.getBoolean("Menu.crossMenuMnemonic");
}
代码示例来源:origin: com.jidesoft/jide-oss
@Override
protected void installDefaults() {
super.installDefaults();
if (menuItem instanceof JMenu) {
((JMenu) menuItem).setDelay(200);
}
crossMenuMnemonic = UIDefaultsLookup.getBoolean("Menu.crossMenuMnemonic");
}
代码示例来源:origin: net.sf.tinylaf/tinylaf
protected void installDefaults() {
super.installDefaults();
((JMenu)menuItem).setDelay(200);
crossMenuMnemonic = UIManager.getBoolean("Menu.crossMenuMnemonic");
}
代码示例来源:origin: com.jidesoft/jide-oss
@Override
protected void installDefaults() {
super.installDefaults();
updateDefaultBackgroundColor();
((JMenu) menuItem).setDelay(200);
crossMenuMnemonic = UIDefaultsLookup.getBoolean("Menu.crossMenuMnemonic");
}
代码示例来源:origin: stackoverflow.com
m11.setDelay(DELAY_MS);
m11.setDelay(DELAY_MS);
m11.add("Subelement 1.1");
m11.add("Subelement 1.2");
代码示例来源:origin: org.xworker/xworker_core
public static void init(JMenu comp, Thing thing, Container parent, ActionContext actionContext){
JMenuItemCreator.init(comp, thing, parent, actionContext);
Integer delay = JavaCreator.createInteger(thing, "delay");
if(delay != null){
comp.setDelay(delay);
}
Boolean popupMenuVisible = JavaCreator.createBoolean(thing, "popupMenuVisible");
if(popupMenuVisible != null){
comp.setPopupMenuVisible(popupMenuVisible);
}
}
}
代码示例来源:origin: khuxtable/seaglass
((JMenu) menuItem).setDelay(style.getInt(context, prefix + ".delay", 200));
if (oldStyle != null) {
uninstallKeyboardActions();
内容来源于网络,如有侵权,请联系作者删除!