Article View: borland.public.jbuilder.java.swing
Article #11059JdbCombobox problem
From: wim.van.leuven
Date: Tue, 13 Jul 1999 00:00
Date: Tue, 13 Jul 1999 00:00
62 lines
3486 bytes
3486 bytes
Hello everybody, If been using the JdbComboBox component from the dbSwing package, but get strange results: I have a JdbComboBox bound to a column with a picklist descriptor attached to anoter dataSet. When the internal frame, containing the combobox, gets displayed the first time, everything works fine. The second time the internal frame gets displayed (notice that the combobox does not get recreated, it is the same as the first time!), I cannot open my combobox and get an error something in the sense of: Exception occurred during event dispatching: java.lang.NumberFormatException: Nederlands at java.lang.FloatingDecimal.readJavaFormatString(Compiled Code) at java.lang.Double.valueOf(Compiled Code) at java.lang.Double.<init>(Compiled Code) at com.borland.dx.text.VariantFormatStr.a(Compiled Code) at com.borland.dx.text.VariantFormatStr.format(Compiled Code) at com.borland.dx.dataset.Column.format(Compiled Code) at com.borland.dbswing.JdbTable.prepareRenderer(Compiled Code) at javax.swing.JTable.getToolTipText(Compiled Code) at javax.swing.ToolTipManager.mouseEntered(Compiled Code) at java.awt.AWTEventMulticaster.mouseEntered(Compiled Code) at java.awt.AWTEventMulticaster.mouseEntered(Compiled Code) at java.awt.AWTEventMulticaster.mouseEntered(Compiled Code) at java.awt.AWTEventMulticaster.mouseEntered(Compiled Code) at java.awt.Component.processMouseEvent(Compiled Code) at java.awt.Component.processEvent(Compiled Code) at java.awt.Container.processEvent(Compiled Code) at java.awt.Component.dispatchEventImpl(Compiled Code) at java.awt.Container.dispatchEventImpl(Compiled Code) at java.awt.Component.dispatchEvent(Compiled Code) at java.awt.LightweightDispatcher.retargetMouseEvent(Compiled Code) at java.awt.LightweightDispatcher.trackMouseEnterExit(Compiled Code) at java.awt.LightweightDispatcher.processMouseEvent(Compiled Code) at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code) at java.awt.Container.dispatchEventImpl(Compiled Code) at java.awt.Window.dispatchEventImpl(Compiled Code) at java.awt.Component.dispatchEvent(Compiled Code) at java.awt.EventQueue.dispatchEvent(EventQueue.java:258) at java.awt.EventDispatchThread.run(EventDispatchThread.java:68) Notice that the value 'Nederlands' is the value of the lookupDisplayColumn from the pickListDescriptor. So it seems that somehow the combobox gets screwed. When navigating to another field on the same dataset and trying to change this value, the combobox picks up the change on the dataset and starts looping between its datachanged event and updateItemSelected method. This is an 'infinite' loop until the Java VM gets a stack overflow! Can anyone shed some light on this issue? Thanks in advance!! Wim Van Leuven. Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.
Technical Details
Message-ID:
<7mevvt$e0l$1@nnrp1.deja.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,2a83321b5777c40d,start X-Google-Attributes: gid111d45,public From: wim.van.leuven@watco.be Subject: JdbCombobox problem Date: 1999/07/13 Message-ID: <7mevvt$e0l$1@nnrp1.deja.com> X-Deja-AN: 500437550 X-Http-Proxy: 1.0 x38.deja.com:80 (Squid/1.1.22) for client 193.74.148.91 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Tue Jul 13 09:13:38 1999 GMT Newsgroups: borland.public.jbuilder.java.swing X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)