【发布时间】:2019-05-27 21:35:11
【问题描述】:
我正在使用以下代码,
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 按钮。 我非常感谢您的帮助。 谢谢
【问题讨论】:
标签: swing joptionpane shortcut hotkeys jide