When I treat a JTextArea like this: ta = new JTextArea(); ta.setLineBreak(true); ta.setWrapStyleWord(true);
and try to display it the following exception will occur: java.lang.NullPointerException at javax.swing.text.PlainView.updateMetrics (PlainView.java:89) at javax.swing.text.PlainView.paint (PlainView.java:208) at javax.swing.plaf.basic.BasicTextUI$RootView.paint (BasicTextUI.java:253) at javax.swing.plaf.basic.BasicTextUI.paintSafely (BasicTextUI.java:925) at javax.swing.plaf.basic.BasicTextUI.paint (BasicTextUI.java:875) at javax.swing.plaf.basic.BasicTextUI.update (BasicTextUI.java:954) at javax.swing.JComponent.paintComponent (JComponent.java:1691) at javax.swing.JComponent.paint (JComponent.java:1562) at javax.swing.JComponent.paintDoubleBuffered (JComponent.java:1782) at javax.swing.JComponent.paintImmediately2 (JComponent.java:1757) at javax.swing.JComponent.paintImmediately (JComponent.java:1743) at javax.swing.RepaintManager.paintDirtyRegions (RepaintManager.java:578) at javax.swing.RepaintManager$RepaintWorker.run (RepaintManager.java:126) at java.awt.event.InvocationEvent.dispatch (InvocationEvent.java:200) at java.awt.EventQueue.dispatchEvent (EventQueue.java:465) at java.awt.EventDispatchThread.run (EventDispatchThread.java:75) This will happen in the Swing example application as it contains JTextAreas in that configuration. -- Summary: NPE in WrappedPlainView.updateMetrics Product: classpath Version: 0.90 Status: UNCONFIRMED Severity: normal Priority: P3 Component: swing AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: thebohemian at gmx dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26590 _______________________________________________ Bug-classpath mailing list Bug-classpath@gnu.org http://lists.gnu.org/mailman/listinfo/bug-classpath