做了個自定義COMBOBOX
然后作為EDITOR設定到一個JTABLE的某個CELL
在使用這個EDITOR的時候出現了例外
ava.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
如何解決?
uj5u.com熱心網友回復:
看錯誤提示,應該是這個控制元件創建時要設定為可視,即setVusible(true)uj5u.com熱心網友回復:
也許你可以看一下這個,或許有你需要的解決方案https://stackoverflow.com/questions/18968815/jcombobox-as-cell-editor-java-awt-illegalcomponentstateexception-component-must
uj5u.com熱心網友回復:
用這個試試setVisible(true)
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/256537.html
標籤:Java SE
上一篇:hibernate 配置問題
