javax.swing.JTextField.setTransferHandler()方法的使用及代码示例

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

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

JTextField.setTransferHandler介绍

暂无

代码示例

代码示例来源:origin: IanDarwin/javasrc

private void setMyTransferHandlers(String s) {
    TransferHandler th = new TransferHandler(s);
    tf.setTransferHandler(th);
    l.setTransferHandler(th);
  }
}

代码示例来源:origin: org.verapdf.apps/gui

this.numberOfFailed.setTransferHandler(null);
this.numberOfFailed.addKeyListener(getKeyAdapter(this.numberOfFailed, false));
this.numberOfFailed.setToolTipText(GUIConstants.MAX_FAILED_CHECKS_SETTING_TIP);
this.numberOfFailedDisplay.setTransferHandler(null);
this.numberOfFailedDisplay.addKeyListener(getKeyAdapter(this.numberOfFailedDisplay, true));
this.numberOfFailedDisplay.setToolTipText(GUIConstants.MAX_FAILED_CHECKS_DISP_SETTING_TIP);
this.fixMetadataPrefix.setTransferHandler(null);
panel.add(this.fixMetadataPrefix);

代码示例来源:origin: ru.sbtqa/monte-media

imageFolderField.setTransferHandler(new FileTextFieldTransferHandler(JFileChooser.DIRECTORIES_ONLY));
soundFileField.setTransferHandler(new FileTextFieldTransferHandler());

代码示例来源:origin: org.scijava/scijava-ui-swing

@Override
public void set(final WidgetModel model) {
  super.set(model);
  path = new JTextField(16);
  path.setDragEnabled(true);
  final String style = model.getItem().getWidgetStyle();
  path.setTransferHandler(new FileTransferHandler(style));
  setToolTip(path);
  getComponent().add(path);
  path.getDocument().addDocumentListener(this);
  getComponent().add(Box.createHorizontalStrut(3));
  browse = new JButton("Browse");
  setToolTip(browse);
  getComponent().add(browse);
  browse.addActionListener(this);
  refreshWidget();
}

代码示例来源:origin: com.github.waikato/fcms-widgets

m_TextSelection.setTransferHandler(null);
m_TextSelection.setText(getDefaultString());
m_TextSelection.setEditable(false);

代码示例来源:origin: omegat-org/omegat

picker.sourceLanguageFileField.setTransferHandler(transferHandler);
picker.targetLanguageFileField.setTransferHandler(transferHandler);

相关文章

JTextField类方法