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

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

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

JSpinner.setFocusable介绍

暂无

代码示例

代码示例来源:origin: org.fudaa.framework.ebli/ebli-3d

public ZControleEchelle() {
 spinner_ = new JSpinner();
 spinner_.setToolTipText(EbliLib.getS("Modifier l'chelle des z"));
 final SpinnerModel model = new SpinnerNumberModel(1, // initial value
   1, // min
   1000, // max
   1);
 spinner_.setModel(model);
 spinner_.getModel().addChangeListener(this);
 spinner_.setRequestFocusEnabled(false);
 spinner_.setFocusable(false);
}

代码示例来源:origin: MovingBlocks/box2d-editor

gridGapSpinner.setFocusable(false);

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

/**
 * Creates and returns the JSpinner used for year navigation.
 * 
 * @return
 */
private JSpinner createSpinner() {
  JSpinner spinner = new JSpinner();
  spinner.setFocusable(false);
  spinner.setBorder(BorderFactory.createEmptyBorder());
  NumberEditor editor = new NumberEditor(spinner);
  editor.getFormat().setGroupingUsed(false);
  editor.getTextField().setFocusable(false);
  spinner.setEditor(editor);
  return spinner;
}

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

/**
 * Creates and returns the JSpinner used for year navigation.
 * 
 * @return
 */
private JSpinner createSpinner() {
  JSpinner spinner = new JSpinner();
  spinner.setFocusable(false);
  spinner.setBorder(BorderFactory.createEmptyBorder());
  NumberEditor editor = new NumberEditor(spinner);
  editor.getFormat().setGroupingUsed(false);
  editor.getTextField().setFocusable(false);
  spinner.setEditor(editor);
  return spinner;
}

代码示例来源:origin: org.swinglabs.swingx/swingx-all

/**
 * Creates and returns the JSpinner used for year navigation.
 * 
 * @return
 */
private JSpinner createSpinner() {
  JSpinner spinner = new JSpinner();
  spinner.setFocusable(false);
  spinner.setBorder(BorderFactory.createEmptyBorder());
  NumberEditor editor = new NumberEditor(spinner);
  editor.getFormat().setGroupingUsed(false);
  editor.getTextField().setFocusable(false);
  spinner.setEditor(editor);
  return spinner;
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop

/**
 * Creates and returns the JSpinner used for year navigation.
 * 
 * @return
 */
private JSpinner createSpinner() {
  JSpinner spinner = new JSpinner();
  spinner.setFocusable(false);
  spinner.setBorder(BorderFactory.createEmptyBorder());
  NumberEditor editor = new NumberEditor(spinner);
  editor.getFormat().setGroupingUsed(false);
  editor.getTextField().setFocusable(false);
  spinner.setEditor(editor);
  return spinner;
}

代码示例来源:origin: org.swinglabs.swingx/swingx-core

/**
 * Creates and returns the JSpinner used for year navigation.
 * 
 * @return
 */
private JSpinner createSpinner() {
  JSpinner spinner = new JSpinner();
  spinner.setFocusable(false);
  spinner.setBorder(BorderFactory.createEmptyBorder());
  NumberEditor editor = new NumberEditor(spinner);
  editor.getFormat().setGroupingUsed(false);
  editor.getTextField().setFocusable(false);
  spinner.setEditor(editor);
  return spinner;
}

相关文章