javax.swing.JToolBar.setFocusable()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(100)

本文整理了Java中javax.swing.JToolBar.setFocusable()方法的一些代码示例,展示了JToolBar.setFocusable()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JToolBar.setFocusable()方法的具体详情如下:
包路径:javax.swing.JToolBar
类名称:JToolBar
方法名:setFocusable

JToolBar.setFocusable介绍

暂无

代码示例

代码示例来源:origin: magefree/mage

filterBar1.setFocusable(false);
filterBar1.setOpaque(false);
filterBar2.setFocusable(false);
filterBar2.setOpaque(false);

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@ScriptFunction
@Override
public void setFocusable(boolean aValue) {
  super.setFocusable(aValue);
}

代码示例来源:origin: com.nelkinda.japi/nelkinda-japi-swing

/**
 * Creates a JToolBar with the actions specified by the resource bundle.
 *
 * @param key Key from which to create the JToolBar.
 * @return Newly created JToolBar.
 */
@NotNull
private JToolBar createJToolBarFromKey(@NotNull final String key) {
  final JToolBar toolBar = new JToolBar();
  toolBar.setFocusable(false);
  processItemList(key, toolBar::addSeparator, itemKey -> toolBar.add(actionMap.get(itemKey)));
  SwingUtilitiesN.makeToolbarComponentsNotFocusable(toolBar);
  return toolBar;
}

代码示例来源:origin: girtel/Net2Plan

this.tb_buttons.setFocusable(false);
this.tb_buttons.setBorderPainted(false);
this.tb_buttons.setRollover(false);

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-notifications

splitPane.setRightComponent(scrollPane);
toolBar.setFocusable(false);
toolBar.setFloatable(false);
btnSearch = new JToggleButton(ImageUtilities.loadImageIcon("org/netbeans/modules/notifications/resources/find16.png", true));

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-inspect

private void initPanel() {
  setBorder(new EmptyBorder(1, 2, 1, 2));
  // configure toolbar
  toolbar = new NoBorderToolBar(JToolBar.HORIZONTAL);
  toolbar.setFloatable(false);
  toolbar.setRollover(true);
  toolbar.setBorderPainted(false);
  toolbar.setBorder(BorderFactory.createEmptyBorder());
  toolbar.setOpaque(false);
  toolbar.setFocusable(false);
  add(toolbar);
}

代码示例来源:origin: de.sciss/jsyntaxpane

jToolBar1.setFocusable(false);

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-mobility-svgcore

toolbar.setLayout(new GridBagLayout());
toolbar.setFloatable(false);
toolbar.setFocusable(true);
Border b = (Border) UIManager.get("Nb.Editor.Toolbar.border"); //NOI18N
toolbar.setBorder(b);

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-gsf-testrunner-ui

toolbar.add(btnAlwaysOpenNewTab);
  toolbar.setFocusable(false);
  toolbar.setRollover(true);
  toolbar.setFloatable(false);

代码示例来源:origin: tulskiy/musique

jToolBar1.setRollover(true);
jToolBar1.setBorderPainted(false);
jToolBar1.setFocusable(false);

代码示例来源:origin: xSAVIKx/AndroidScreencast

KeyboardFocusManager.getCurrentKeyboardFocusManager()
    .addKeyEventDispatcher(KeyEventDispatcherFactory.getKeyEventDispatcher(this));
jtb.setFocusable(false);
jbExplorer.setFocusable(false);
jbKbHome.setFocusable(false);

代码示例来源:origin: com.eas.platypus/platypus-js-forms

public ModelComponentDecorator() {
  super();
  setLayout(new BorderLayout());
  setOpaque(true);
  iconLabel.setOpaque(false);
  iconLabel.setBorder(null);
  iconLabel.setFocusable(false);
  iconLabel.setText("");
  iconLabel.setInheritsPopupMenu(true);
  checkEvents(iconLabel);
  //
  gapLabel.setOpaque(false);
  gapLabel.setBorder(null);
  gapLabel.setFocusable(false);
  gapLabel.setText("");
  gapLabel.setInheritsPopupMenu(true);
  checkEvents(gapLabel);
  //
  extraTools.setBorder(null);
  extraTools.setBorderPainted(false);
  extraTools.setFloatable(false);
  extraTools.setOpaque(false);
  extraTools.setFocusable(false);
  extraTools.setInheritsPopupMenu(true);
  recreateExtraEditingControls();
  checkEvents(extraTools);
  add(extraTools, BorderLayout.EAST);
  //
  setBorder(new LineBorder(WDIGETS_BORDER_COLOR));
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-callgraph

jToolBar1.setOrientation(javax.swing.SwingConstants.VERTICAL);
jToolBar1.setRollover(true);
jToolBar1.setFocusable(false);
jToolBar1.setName("jToolBar1"); // NOI18N

代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

tb.setFloatable(false);
tb.setOrientation(JToolBar.VERTICAL);
tb.setFocusable(false);

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-mobility-svgcore

toolbar.setLayout(new GridBagLayout());
toolbar.setFloatable(false);
toolbar.setFocusable(true);
Border b = (Border) UIManager.get("Nb.Editor.Toolbar.border"); //NOI18N
toolbar.setBorder(b);

相关文章

JToolBar类方法