0
當我運行帶有打印線的調試器運行良好,但只要我把joptionpane方法崩潰。我導入了javax.swing.joptionpane。Eclipse調試器崩潰,因爲JOptionPane
Integer.parseInt(String, int) line: 470
Integer.parseInt(String, int) line: 470
Integer.parseInt(String) line: 499
AquaOptionPaneUI(BasicOptionPaneUI).getMnemonic(String, Locale) line: 806
AquaOptionPaneUI(BasicOptionPaneUI).getButtons() line: 773 [local variables unavailable]
AquaOptionPaneUI(BasicOptionPaneUI).createButtonArea() line: 613 [local variables unavailable]
AquaOptionPaneUI.createButtonArea() line: 33 [local variables unavailable]
AquaOptionPaneUI(BasicOptionPaneUI).installComponents() line: 161 [local variables unavailable]
AquaOptionPaneUI(BasicOptionPaneUI).installUI(JComponent) line: 124
JOptionPane(JComponent).setUI(ComponentUI) line: 662
JOptionPane.setUI(OptionPaneUI) line: 1837
JOptionPane.updateUI() line: 1859 [local variables unavailable]
JOptionPane.<init>(Object, int, int, Icon, Object[], Object) line: 1822
JOptionPane.showInputDialog(Component, Object, String, int, Icon, Object[], Object) line: 552
JOptionPane.showInputDialog(Component, Object, String, int) line: 508
JOptionPane.showInputDialog(Component, Object) line: 458
JOptionPane.showInputDialog(Object) line: 424
debugtest.main(String[]) line: 15
你有一個問題,代碼..?就目前而言,這加起來「不是真正的問題」。 – 2012-02-10 00:36:50
@AndrewThompson如何讓調試器工作。簡單的線路響應= JOptionPane.showInputDialog(「輸入一個大於1的數字:」);導致調試器崩潰。 – zach 2012-02-10 04:38:32
我不使用Eclipse。嘗試擊中F1。 – 2012-02-10 04:41:14