Re: [jnc-users] Problems with drag and drop
Status: Beta
Brought to you by:
soapy
From: Marco T. <mt...@gm...> - 2007-02-18 10:50:25
|
Kirill Kryticki wrote: > Hi!. I have example of application with drag and drop features. After > compilation by JNC next exception is thrown when I try to drag some label: > Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException > at java.nio.charset.CharsetEncoder.encode(Test.exe) > at gnu.gcj.convert.CharsetToBytesAdaptor.write(Test.exe) > at java.io.UnsupportedEncodingException.<init>(Test.exe) > at gnu.gcj.convert.Output_iconv .<init>(Test.exe) > at java.lang.String.getBytes(Test.exe) > at sun.awt.datatransfer.DataTransferer.isEncodingSupported(Test.exe) > at sun.awt.datatransfer.DataTransferer.isFlavorCharsetTextType(Test.exe ) > at sun.awt.datatransfer.DataTransferer.isFlavorCharsetTextType(Test.exe) > at sun.awt.datatransfer.DataTransferer.getFormatsForFlavors(Test.exe) > at sun.awt.datatransfer.DataTransferer.getFormatsForFlavors (Test.exe) > at java.awt.Component.processMouseMotionEvent(Test.exe) > at java.awt.Component.processMouseMotionEvent(Test.exe) > at java.awt.Component.processEvent(Test.exe) > at java.awt.Component.processEvent (Test.exe) > at java.awt.Component.dispatchEventImpl(Test.exe) > at java.awt.Component.dispatchEventImpl(Test.exe) > at java.awt.Component.dispatchEvent(Test.exe) > at java.awt.Component.dispatchEvent(Test.exe ) > at java.awt.LightweightDispatcher.processMouseEvent(Test.exe) > at java.awt.LightweightDispatcher.processMouseEvent(Test.exe) > at java.awt.Container.dispatchEventImpl(Test.exe) > at java.awt.Container.dispatchEventImpl (Test.exe) > at java.awt.Component.dispatchEvent(Test.exe) > at java.awt.Component.dispatchEvent(Test.exe) > at java.awt.Container.dispatchEventImpl(Test.exe) Yes, I see. Also the needed cursor images are not bundled with JNC 1.1. > I tried to use standard java libs with compilation( charsets.jar - with > some classes from another libs) but compilation of charsets.jar failed > (without logs of errors). Well, that's unfortunately not a simple problem such as a missing class. This is just a good reason why AWT/Swing support is still experimental. Please use SWT if you can. It compiles flawless, looks better and runs faster :-) > Java source application attached Thanks for that! I always appreciate AWT/Swing examples since I only have some minor small ones. I'll see to it that it will work in JNC 1.2. Marco |