jtable问题,来大牛解决了啊【急求】分不是问题 本帖最后由 wea56567 于 2013-06-24 10:23:33 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 运行的时候报错Exception in thread "AWT-EventQueue-1" java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.util.Vector求原因 你content里面为什么要content.addAll(map.values());也就是里面是map.put(1, 1);map.put(2, "启用");map.put(3, "连接");map.put(4, "6h");map.put(5, "启用");的value值,然后(Vector) content.get(row)把"启用",true 什么的再转成Vector?什么逻辑啊??? @flagiris content.addAll(map.values());是为了添加数据到表格(Vector) content.get(row)转成Vector是为了实现remove方法啊 @flagiris content.addAll(map.values());是为了添加数据到表格(Vector) content.get(row)转成Vector是为了实现remove方法啊 map.put(5, true);改为map.put(5, "true"); 报错:java.lang.String cannot be cast to java.util.Vector我觉得应该是我用map添加数据的问题,但不知道怎么改 content.get(row)结果就是string类型的,当然转 不了 逻辑有问题,你怎么把"启用",true这些String,boolean型的数据强制转成Vector型呢,肯定要报错的啊 但是如果不这样写,写成content.remove(row);的话,修改完数据之后就是直接修改一列的数据 逻辑有问题,你怎么把"启用",true这些String,boolean型的数据强制转成Vector型呢,肯定要报错的啊那重么才能改好额 逻辑有问题,你怎么把"启用",true这些String,boolean型的数据强制转成Vector型呢,肯定要报错的啊那重么才能改好额那得你自己理解清楚业务,先别着急写,理清思路就好写了。总之Vector里存什么你才成取什么,你存String怎么可能取出Vector呢。 hibernate连接oracle自动增长的问题 如何处理客户端的连接 请教:el表达式中数组下标变量 关于程序员英语四级的问题 struts2 中的<s:submit><s:reset>为何位置会变成2行?如何改啊 请教一下关于<hibernate-mapping>中的操作问题? struts2和OGNL 参数之间传递 100分,关于j2ee表格组件(工作过的同事进),快来抢分 weblogic8.1 +struts +eclipse开发的配置文档 有使用J2EE的大型项目成功案例或解决方案吗? 求大牛写几段代码 to_char 去0问题
Exception in thread "AWT-EventQueue-1" java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.util.Vector
求原因
content.addAll(map.values());
也就是里面是
map.put(1, 1);
map.put(2, "启用");
map.put(3, "连接");
map.put(4, "6h");
map.put(5, "启用");
的value值,
然后(Vector) content.get(row)
把"启用",true 什么的再转成Vector?什么逻辑啊???
content.addAll(map.values());
是为了添加数据到表格
(Vector) content.get(row)
转成Vector是为了实现remove方法啊
content.addAll(map.values());
是为了添加数据到表格
(Vector) content.get(row)
转成Vector是为了实现remove方法啊
map.put(5, "true");
我觉得应该是我用map添加数据的问题,但不知道怎么改
逻辑有问题,你怎么把"启用",true这些String,boolean型的数据强制转成Vector型呢,
肯定要报错的啊
逻辑有问题,你怎么把"启用",true这些String,boolean型的数据强制转成Vector型呢,
肯定要报错的啊那重么才能改好额
逻辑有问题,你怎么把"启用",true这些String,boolean型的数据强制转成Vector型呢,
肯定要报错的啊那重么才能改好额那得你自己理解清楚业务,
先别着急写,理清思路就好写了。
总之Vector里存什么你才成取什么,
你存String怎么可能取出Vector呢。