java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:3181) at java.util.ArrayList.grow(ArrayList.java:261) at java.util.ArrayList.ensureExplicitCapacity(ArrayList.java:235) at java.util.ArrayList.ensureCapacityInternal(ArrayList.java:227) at java.util.ArrayList.add(ArrayList.java:458) at org.netbeans.modules.print.provider.ComponentProvider.getPages(ComponentProvider.java:102) at org.netbeans.modules.print.ui.Preview.createPapers(Preview.java:655) at org.netbeans.modules.print.ui.Preview.updated(Preview.java:203) at org.netbeans.modules.print.util.UI$Dialog.show(UI.java:689) at org.netbeans.modules.print.util.UI$Dialog.show(UI.java:657) at org.netbeans.modules.print.ui.Preview.print(Preview.java:141) at org.netbeans.modules.print.action.PrintAction.actionPerformed(PrintAction.java:102) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.AbstractButton.doClick(AbstractButton.java:376) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877) at java.awt.Component.processMouseEvent(Component.java:6525) at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) at java.awt.Component.processEvent(Component.java:6290) at java.awt.Container.processEvent(Container.java:2234) at java.awt.Component.dispatchEventImpl(Component.java:4881) at java.awt.Container.dispatchEventImpl(Container.java:2292) at java.awt.Component.dispatchEvent(Component.java:4703) at java.awt.LightweightDispatcher.retargetMouseEvent(LightweightDispatcher.java:4898) at java.awt.LightweightDispatcher.processMouseEvent(LightweightDispatcher.java:4533) at java.awt.LightweightDispatcher.dispatchEvent(LightweightDispatcher.java:4462) at java.awt.Container.dispatchEventImpl(Container.java:2278) at java.awt.Window.dispatchEventImpl(Window.java:2750) at java.awt.Component.dispatchEvent(Component.java:4703)