Hi,
When I tried the example specified in the tutorial for
printing(JBrowser,Vista & JComponentVista), I got this exception. Any help?
Connected to file:D:\Test\Print\SOAP.htm
pageIndex : 0
mNumPages : 0
Exception occurred during event dispatching:
java.lang.IndexOutOfBoundsException
at Vista.getPageFormat(Vista.java:110)
at sun.java2d.RasterPrinterJob.printPage(RasterPrinterJob.java:402)
at sun.java2d.RasterPrinterJob.print(RasterPrinterJob.java:235)
at JBrowser$printMIListener.actionPerformed(JBrowser.java:254)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1066)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1101)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
at javax.swing.AbstractButton.doClick(AbstractButton.java:226)
at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:754)
at java.awt.Component.processMouseEvent(Component.java:3166)
at java.awt.Component.processEvent(Component.java:3005)
at java.awt.Container.processEvent(Container.java:1015)
at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code)
at java.awt.Container.dispatchEventImpl(Container.java:1060)
at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2068)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1852)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1755)
at java.awt.Container.dispatchEventImpl(Container.java:1047)
at java.awt.Window.dispatchEventImpl(Window.java:749)
at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java,
Compiled Code)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".