在我的代码中,在某种程度上,我有这样的代码 JFileChooser ch = new JFileChooser(); at javax.swing.JComponent.setUI(JComponent.java:673)
at javax.swing.JFileChooser.updateUI(JFileChooser.java:1763
我有一个使用JFileChooser的swing应用程序。单击“文件”菜单中的“打开菜单项”时,应显示“文件”对话框,用户可在该对话框中选择该文件。“文件”对话框未显示,堆栈跟踪显示NullPointerException由JFileChooser引发。
JFileChooser fc = new JFileChooser