本文整理了Java中javax.swing.JTextField.setCursor()
方法的一些代码示例,展示了JTextField.setCursor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextField.setCursor()
方法的具体详情如下:
包路径:javax.swing.JTextField
类名称:JTextField
方法名:setCursor
暂无
代码示例来源:origin: tomighty/tomighty
filenameField.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
filenameField.addMouseListener(new MouseAdapter() {
@Override
代码示例来源:origin: Waikato/weka-trunk
m_Input.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
m_OutputArea
.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
m_Input.setCursor(null);
m_OutputArea.setCursor(null);
代码示例来源:origin: javax.help/javahelp
public void run() {
TreeSelectionModel tsm = tree.getSelectionModel();
if (lastTOCnode == null && topNode.getChildCount() > 0) {
DefaultMutableTreeNode node =
(DefaultMutableTreeNode) topNode.getFirstChild();
if (node != null) {
tsm.clearSelection();
tsm.setSelectionPath(new TreePath(node.getPath()));
}
} else {
// beep
searchnav.getToolkit().beep();
}
searchparams.setCursor(paramCursor);
tree.setCursor(treeCursor);
}
});
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
m_Input.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
m_OutputArea
.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
m_Input.setCursor(null);
m_OutputArea.setCursor(null);
代码示例来源:origin: org.gephi/directory-chooser
private void applyEdit(DirectoryNode node) {
TreeNode[] nodes = model.getPathToRoot(node);
TreePath editingPath = new TreePath(nodes);
tree.setEditable(true);
tree.makeVisible(editingPath);
tree.scrollPathToVisible(editingPath);
tree.setSelectionPath(editingPath);
tree.startEditingAtPath(editingPath);
JTextField editField = DirectoryCellEditor.getTextField();
editField.setCursor(Cursor.getPredefinedCursor(Cursor.TEXT_CURSOR));
editField.setRequestFocusEnabled(true);
editField.requestFocus();
editField.setSelectionStart(0);
editField.setSelectionEnd(editField.getText().length());
}
代码示例来源:origin: com.numdata/numdata-swing
field.setCursor( waitCursor );
field.setCursor( fieldCursor );
代码示例来源:origin: org.gephi/ui-components
rangeSlider.setOpaque(false);
lowerBoundTextField.setOpaque(false);
lowerBoundTextField.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
upperBoundTextField.setOpaque(false);
upperBoundTextField.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
代码示例来源:origin: javax.help/javahelp
waitCursor = Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR);
searchparams.setCursor(waitCursor);
tree.setCursor(waitCursor);
searchparams.setCursor(paramCursor);
tree.setCursor(treeCursor);
内容来源于网络,如有侵权,请联系作者删除!