java.lang.IllegalArgumentException

Zero length string passed to TextLayout cons tructor.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web7445

  • via Oracle Community by 807587, 11 months ago
    Zero length string passed to TextLayout cons tructor.
  • Zero length string passed to TextLayout constructor.
  • via Netbeans Bugzilla by ssa, 2 weeks ago
    Zero length string passed to TextLayout constructor.
  • Stack trace

    • java.lang.IllegalArgumentException: Zero length string passed to TextLayout cons tructor. at java.awt.font.TextLayout.<init>(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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.