java.lang.IllegalArgumentException: Zero length string passed to TextLayout cons tructor.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 807587, 1 year ago
Zero length string passed to TextLayout cons tructor.
via Netbeans Bugzilla by ssa, 6 months ago
Zero length string passed to TextLayout constructor.
via Oracle Community by 843806, 5 months ago
Zero length string passed to TextLayout constructor.
via blogspot.com by Unknown author, 2 years ago
Zero length string passed to TextLayout constructor.
via Google Groups by Christian Pesch, 6 months ago
via Oracle Community by 807582, 1 year ago
Zero length string passed to TextLayout constructor.
java.lang.IllegalArgumentException: Zero length string passed to TextLayout cons tructor.
at java.awt.font.TextLayout.(TextLayout.java:471)
at sun.java2d.pipe.OutlineTextRenderer.drawString(OutlineTextRenderer.java:67)
at sun.java2d.pipe.GlyphListPipe.drawString(GlyphListPipe.java:32)
at sun.java2d.SunGraphics2D.drawString(SunGraphics2D.java:2534)
at sun.print.ProxyGraphics2D.drawString(ProxyGraphics2D.java:720)
at javax.swing.plaf.basic.BasicGraphicsUtils.drawStringUnderlineCharAt(BasicGraphicsUtils.java:234)
at javax.swing.plaf.basic.BasicLabelUI.paintEnabledText(BasicLabelUI.java:81)
at javax.swing.plaf.basic.BasicLabelUI.paint(BasicLabelUI.java:164)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
at javax.swing.JComponent.paintComponent(JComponent.java:541)
at javax.swing.JComponent.printComponent(JComponent.java:908)
at javax.swing.JComponent.paint(JComponent.java:812)
at javax.swing.JComponent.print(JComponent.java:891)
at javax.swing.JComponent.paintChildren(JComponent.java:651)
at javax.swing.JComponent.printChildren(JComponent.java:921)
at javax.swing.JComponent.paint(JComponent.java:820)
at javax.swing.JComponent.print(JComponent.java:891)
at javax.swing.JComponent.paintChildren(JComponent.java:651)
at javax.swing.JComponent.printChildren(JComponent.java:921)
at javax.swing.JComponent.paint(JComponent.java:820)
at javax.swing.JComponent.print(JComponent.java:891)
at javax.swing.JComponent.paintChildren(JComponent.java:651)
at javax.swing.JComponent.printChildren(JComponent.java:921)
at javax.swing.JComponent.paint(JComponent.java:820)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:557)
at javax.swing.JComponent.print(JComponent.java:891)
at javax.swing.JComponent.paintChildren(JComponent.java:651)
at javax.swing.JComponent.printChildren(JComponent.java:921)
at javax.swing.JComponent.paint(JComponent.java:820)
at javax.swing.JComponent.print(JComponent.java:891)
at java.awt.GraphicsCallback$PrintCallback.run(GraphicsCallback.java:32)
at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
at java.awt.Container.print(Container.java:1367)
at sun.awt.windows.WComponentPeer.print(WComponentPeer.java:223)
at sun.awt.windows.WCanvasPeer.print(WCanvasPeer.java:97)
at sun.awt.windows.WPanelPeer.print(WPanelPeer.java:26)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.