在JTable中,當行改變后触發一個事件如何做,請指教 JTable table; table.getSelectionModel().addListSelectionListener(new ListSelectionListenerlist(){ //....... }); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Ok,as following: void add_change_event(JTable table){ table.getSelectionModel().addListSelectionListener(new ListSelectionListener(){ public void valueChanged(ListSelectionEvent e){ JOptionPane.showMessageDialog(null,"Row changed!"); } }); }for your attention , Thanks! 看看我的spring配置是不是有问题,事务不起作用,在线等 一个SSH 的系统,接口是面向DAO,还是面向业务? 人和创建怎么样? 关于jstl (加急)我用nested标签,但是如果输入的时间为空值的话,就会出错! executeUpdate()下面的语句死活不执行 请问在TOMCAT中,.JAVA和.CLASS文件应该放在哪个目录下? 为什么我的WebLogic Server 不能启动?100分求求救. 关于struts的问题,请高手耐心讲解 ifram弹出层相关问题 求助!!!Tomcat安装的大问题,一头雾水啊!!! 请问谁有sql server 7.0的jdbc驱动??
table.getSelectionModel().addListSelectionListener(new ListSelectionListener(){
public void valueChanged(ListSelectionEvent e){
JOptionPane.showMessageDialog(null,"Row changed!");
}
});
}for your attention , Thanks!