阅读背景:

在删除Swing容器中的组件之前,如何为Container添加事件侦听器

来源:互联网 

I tried to add a event listener to a container like JTextPane , when before removed a component ,that I can check the component's name and decide the component should be removed or not. I search the answer,there is a Container Listener ,it has the method componentRemoved,but it fired after component removed.so ,Any one has some solution?Any suggestion will be appreciated.I tried to add a event listener to a container




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: