使用 JOprionPane 时光标出现问题。我将光标设置为 pharent 框架,然后使用以下命令显示一个对话框:
Object[] possibilities = {"ham", "spam", "yam"};
String s = (String) JOptionPane.showInputDialog(MagicCollectorClient.getMainFrame(),"Complete the sentence:\n\"Green eggs and...\"",
"Customized Dialog",JOptionPane.PLAIN_MESSAGE,null,possibilities,"ham");
它显示对话框,但将光标更改为默认系统光标,直到我关闭对话框。有没有什么办法解决这一问题?