JTable Problem

JTable table1 = new JTable(v,v1)

//v1.addElement((Object)(new String("SNo")));

v1.addElement((Object)(new String("Commodity")));

//v.addElement((Object)(new String(JTableArrays[11])));

v.addElement((Object)(new String(JTableArrays[20])));

When i do this i get Class cast exception

How can i solve this

Pls help me

very urgent

[397 byte] By [muthu2007a] at [2007-11-27 8:23:24]
# 1

If things are so very urgent, take the time and write a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program[/url]

I suppose JTableArrays is of type String (code convention proposes variables to start with lower case characters). If this is the case, I see nothing wrong in your code.

Joerg22a at 2007-7-12 20:12:14 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thanks for ur reply i will fix itRegardsMarimuthu
muthu2007a at 2007-7-12 20:12:14 > top of Java-index,Desktop,Core GUI APIs...