简体   繁体   中英

Netbeans GUI builder and jtable stateChanged fired when add custom java bean to gui

i make some custom java beans components to add at my GUI. This componenent contains a jtable with a stateChangeListener, the problem is when i add this component to my GUI stateChaged is fired (and fire an exception).

How can i resolve this?

Is it your own StateChangeListener (and not somewhere inside JTable)?! If so, the exception and the stack trace should tell you where and what is wrong. I would guess something isn't initialized in the right order.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM