problem with jeditor pane while copying and pasteing
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Gautam_Khandelwal
Posted On:   Thursday, February 26, 2004 11:00 PM

hi all i'm facing a big problem , i hv an applet that generate an html report inside an jeditor pane our user sometimes copy(cntr+c) and paste (cntr+v) the content into excel sheet the problem is that some users are doing it without any problem ,while some others are facing problem when they press cntr+c one exception is thrown(i hv copied below ) but the content is actually not selected (paste is not activated in excel),and thus operation failes. problem becomes more interesting when at some machines this same Exception is thrown but still,they copy and paste successfully. Please Help java.lang.NullPointerException at javax   More>>

hi all


i'm facing a big problem , i hv an applet that generate
an html report inside an jeditor pane

our user sometimes copy(cntr+c) and paste (cntr+v) the
content into excel sheet

the problem is that some users are doing it without any
problem ,while some others are facing problem when they press cntr+c one exception is thrown(i hv copied below ) but the
content is actually not selected (paste is not activated in excel),and thus operation failes.

problem becomes more interesting when at some machines
this same Exception is thrown but still,they copy and paste
successfully.


Please Help


java.lang.NullPointerException

at javax.swing.plaf.basic.BasicTableUI$TableTransferHandler$TableTransferable.getHTMLData(BasicTableUI.java:1360)

at javax.swing.plaf.basic.BasicTransferable.getTransferData(BasicTransferable.java:116)

at sun.awt.datatransfer.DataTransferer.translateTransferable(DataTransferer.java:1001)

at sun.awt.windows.WDataTransferer.translateTransferable(WDataTransferer.java:144)

at sun.awt.windows.WClipboard.setContents(WClipboard.java:75)

at javax.swing.TransferHandler.exportToClipboard(TransferHandler.java:206)

at javax.swing.TransferHandler$TransferAction.actionPerformed(TransferHandler.java:809)

at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1502)

at javax.swing.JComponent.processKeyBinding(JComponent.java:2422)

at javax.swing.JTable.processKeyBinding(JTable.java:3243)

at javax.swing.JComponent.processKeyBindings(JComponent.java:2468)

at javax.swing.JComponent.processKeyEvent(JComponent.java:2385)

at java.awt.Component.processEvent(Component.java:4830)

at java.awt.Container.processEvent(Container.java:1380)

at java.awt.Component.dispatchEventImpl(Component.java:3526)

at java.awt.Container.dispatchEventImpl(Container.java:1437)

at java.awt.Component.dispatchEvent(Component.java:3367)

at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1700)

at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:568)

at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:739)

at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:673)

at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:534)

at java.awt.Component.dispatchEventImpl(Component.java:3396)

at java.awt.Container.dispatchEventImpl(Container.java:1437)

at java.awt.Component.dispatchEvent(Component.java:3367)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)

   <<Less
About | Sitemap | Contact