Identifier not found
I get following error:
Exception in thread"main" java.lang.IllegalArgumentException: Identifier not found
at javax.swing.table.DefaultTableColumnModel.getColumnIndex(DefaultTableColumnModel.java:264)
at javax.swing.JTable.getColumn(JTable.java:1787)
at JButtonTableExample.<init>(JButtonTableExample.java:35)
at JButtonTableExample.main(JButtonTableExample.java:102)
DefaultTableModel dm =new DefaultTableModel();
dm.setDataVector(dataVector,columnIdentifiers);
JTable table =new JTable(dm);
table.getColumn("Primary Node").setCellRenderer(new ButtonRenderer());//line 35
table.getColumn("Primary Node").setCellEditor(new ButtonEditor(new JCheckBox()));
In above code, columnIdentifiers vector already have string Primary Node. But i still get this error. Please tell me what might be the problem
[1150 byte] By [
ysrpa] at [2007-11-27 7:37:38]

# 2
> In above code, columnIdentifiers vector already have string Primary Node
Well, if you read the API you will find that the getColumn() method throws the exception you are getting so obviously your data is not what you expected. Since you don't show a working demo of how you actually build the table we can't help you.
If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program[/url] (SSCCE) that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
Don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags[/url] so the posted code retains its original formatting.