【问题标题】:Eclipse debugger crashing because of JOptionPane由于 JOptionPane 导致 Eclipse 调试器崩溃
【发布时间】:2012-02-09 23:46:02
【问题描述】:

当我运行带有打印行的调试器时,它运行良好,但是一旦我将 joptionpane 方法放入其中,它就会崩溃。我导入了 javax.swing.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

【问题讨论】:

  • 您有问题吗,代码..?就目前而言,这加起来“不是一个真正的问题”。
  • @AndrewThompson 我如何让调试器工作。简单的一行 response = JOptionPane.showInputDialog("输入一个大于 1 的数字:");导致调试器崩溃。
  • 我不使用 Eclipse。尝试按 F1。
  • 在 Eclipse 支持论坛上提问。

标签: java eclipse debugging joptionpane


【解决方案1】:

64 位 eclipse 是问题所在,一旦我下载了 Mac 的 32 位版本,它就像蛇的魅力一样工作

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-09-03
    • 2012-02-01
    • 2013-10-15
    • 2018-04-18
    • 1970-01-01
    • 1970-01-01
    • 2010-12-18
    • 1970-01-01
    相关资源
    最近更新 更多