本文整理了Java中javax.swing.JFrame.getCursor()
方法的一些代码示例,展示了JFrame.getCursor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFrame.getCursor()
方法的具体详情如下:
包路径:javax.swing.JFrame
类名称:JFrame
方法名:getCursor
暂无
代码示例来源:origin: stackoverflow.com
public static void main(String[] args) {
JFrame parent = new JFrame();
parent.setSize(400, 400);
parent.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
parent.setVisible(true);
Object[] possibilities = { "ham", "spam", "yam" };
// raw pane
JOptionPane optionPane = new JOptionPane(
"Complete the sentence:\n\"Green eggs and...\"",
JOptionPane.PLAIN_MESSAGE, JOptionPane.DEFAULT_OPTION, null,
possibilities, possibilities[0]);
// create a dialog for it with the title
JDialog dialog = optionPane.createDialog("Customized Dialog");
// special code - in this case make the cursors match
dialog.setCursor(parent.getCursor());
// show it
dialog.setVisible(true);
// blocking call, gets the selection
String s = (String) optionPane.getValue();
System.out.println("Selected " + s);
}
代码示例来源:origin: BTCPrivate/bitcoin-private-full-node-wallet
Cursor oldCursor = this.parentFrame.getCursor();
try {
this.parentFrame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
代码示例来源:origin: ZencashOfficial/zencash-swing-wallet-ui
Cursor oldCursor = this.parentFrame.getCursor();
try
代码示例来源:origin: BTCPrivate/bitcoin-private-full-node-wallet
Cursor oldCursor = this.parentFrame.getCursor();
this.parentFrame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
Thread.sleep(20 * 1000);
代码示例来源:origin: BTCPrivate/bitcoin-private-full-node-wallet
Cursor oldCursor = JContactListPanel.this.parentFrame.getCursor();
try {
JContactListPanel.this.parentFrame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
代码示例来源:origin: BTCPrivate/bitcoin-private-full-node-wallet
Cursor oldCursor = parent.getCursor();
try {
String txID = TransactionTable.this.getModel().getValueAt(lastRow, 6).toString();
代码示例来源:origin: ZencashOfficial/zencash-swing-wallet-ui
Cursor oldCursor = this.parentFrame.getCursor();
this.parentFrame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
Thread.sleep(20 * 1000);
代码示例来源:origin: ZencashOfficial/zencash-swing-wallet-ui
Cursor oldCursor = JContactListPanel.this.parentFrame.getCursor();
try
代码示例来源:origin: ZencashOfficial/zencash-swing-wallet-ui
Cursor oldCursor = parent.getCursor();
try
代码示例来源:origin: BTCPrivate/bitcoin-private-full-node-wallet
Cursor oldCursor = this.parentFrame.getCursor();
String balance;
try {
代码示例来源:origin: ZencashOfficial/zencash-swing-wallet-ui
Cursor oldCursor = this.parentFrame.getCursor();
String balance = null;
try
代码示例来源:origin: BTCPrivate/bitcoin-private-full-node-wallet
Cursor oldCursor = this.parentFrame.getCursor();
try {
this.parentFrame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
代码示例来源:origin: ZencashOfficial/zencash-swing-wallet-ui
Cursor oldCursor = this.parentFrame.getCursor();
try
代码示例来源:origin: BTCPrivate/bitcoin-private-full-node-wallet
Cursor oldCursor = this.parentFrame.getCursor();
try {
this.parentFrame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
代码示例来源:origin: ZencashOfficial/zencash-swing-wallet-ui
Cursor oldCursor = this.parentFrame.getCursor();
try
内容来源于网络,如有侵权,请联系作者删除!