我正在使用以下代码,
StringBuffer sb1 = new StringBuffer("<html>Map Following data:\n WTXFF,WTXF");
JScrollPane scrollPane = new JScrollPane(new JLabel(sb1.toString())); Object[] options = new Object[] {"ShowMappingTable" , "Cancel", };
int answer = JOptionPane.showOptionDialog(getWindow(), scrollPane, "Error ", JOptionPane.YES_NO_OPTION,
JOptionPane.ERROR_MESSAGE, null, options, null);
如何将热键添加到 ShowMappingTable 和 Cancel 按钮。我非常感谢您的帮助。谢谢