[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jfriends] JDK1.2.2,HJTableでIllegalArgumentException




ひがさんのデータベース対応コンポーネントを使っています。

http://www.javaopen.org/jfriends/dbcompo.html

ひがさんの HJTable ですが、JDK1.2.2 (Swing 1.1.x) では
数値型のカラムの編集時に IllegalArgumentException が発生します。

JDK 1.1.8, Swing 1.0.3 を使用するとこの現象は発生しません。

Exception occurred during event dispatching:
java.lang.IllegalArgumentException: Cannot format given Object as a Number
	at java.text.NumberFormat.format(NumberFormat.java:202)
	at java.text.Format.format(Format.java:129)
	at javax.swing.JTable$7.setValue(JTable.java:2680)
	at javax.swing.table.DefaultTableCellRenderer.getTableCellRendererComponent(DefaultTableCellRenderer.java:122)
	at javax.swing.JTable.prepareRenderer(JTable.java:2897)
	at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:968)
	at javax.swing.plaf.basic.BasicTableUI.paintRow(BasicTableUI.java:899)
	at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:811)
	at javax.swing.plaf.ComponentUI.update(ComponentUI.java:43)
	at javax.swing.JComponent.paintComponent(JComponent.java:329)
	at javax.swing.JComponent.paint(JComponent.java:638)
	at javax.swing.JComponent.paintChildren(JComponent.java:452)
	at javax.swing.JComponent.paint(JComponent.java:641)
	at javax.swing.JViewport.paintViaBackingStore(JViewport.java:442)
	at javax.swing.JViewport.paint(JViewport.java:567)
	at javax.swing.JComponent.paintWithBuffer(JComponent.java:3701)
	at javax.swing.JComponent._paintImmediately(JComponent.java:3646)
	at javax.swing.JComponent.paintImmediately(JComponent.java:3496)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:365)
	at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:191)
	at javax.swing.SystemEventQueueUtilities.processRunnableEvent(SystemEventQueueUtilities.java:366)
	at javax.swing.SystemEventQueueUtilities.access$0(SystemEventQueueUtilities.java:362)
	at javax.swing.SystemEventQueueUtilities$RunnableTarget.processEvent(SystemEventQueueUtilities.java:403)
	at java.awt.Component.dispatchEventImpl(Component.java:2394)
	at java.awt.Component.dispatchEvent(Component.java:2307)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:287)
	at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)

# なんだか根が深そう...
-- 
ENDO Yasuyuki <yasuyuki@xxxxxxxxxx>
http://www.javaopen.org/jfriends/ (Japanese Only)