|
Warning: Cannot convert string "-b&h-lucida-medium-r-normal-sans-*-140-*-*-p-*-iso8859-1" to type FontStruct
Exception in thread "main" java.lang.Error: Do not use ImageViewerFrame.add() use ImageViewerFrame.getContentPane().add() instead
at javax.swing.JFrame.createRootPaneException(JFrame.java:465)
at javax.swing.JFrame.addImpl(JFrame.java:491)
at java.awt.Container.add(Container.java:307)
at ImageViewerFrame.<init>(ImageViewer.java:36)
at ImageViewer.main(ImageViewer.java:18)
应该怎样解决?
谢谢! |
|