Wednesday, April 8, 2009

NetBeans CellRenderer JTable

I am trying to assign a setDefaultCellRenderer(..., ...) to my NetBeans projects and all of the answers keep steering me back to "Table Contents --> Columns --> Renderer" and then I am stuck.

I was working from this guide and quickly noticed it had no effect on my NetBeans JTable!!! I've been using this guide in non-NetBeans projects with success, but now using the NetBeans IDE it fails. Am I doing something wrong?

First of all, there's quite a few people asking this same question:

http://forums.netbeans.org/post-871.html
http://www.netbeansforum.com/viewtopic.php?f=4&t=26
http://www.nabble.com/JTable-With-ComboBox-(list)-td15324201.html
http://www.nabble.com/Cell-renderer-editor-in-Netbeans--td18043645.html
http://www.nabble.com/TableCellRenderer-in-netbeans.-td8238826.html#a8240804
http://www.coderanch.com/t/345011/Swing-AWT-SWT-JFace/java/Customize-JTable-NetBeans-GUI-Builder


This quick article shed some light on the class types, but chaning my setDefaultRenderer(..., ...) to "String.class" didn't fix it.
http://www.devx.com/tips/Tip/15851

So I've updated the nabble post with some of my attempts. No answers yet. Any help appreciated:
http://www.nabble.com/Cell-renderer-editor-in-Netbeans--td18043645.html

-Tres

No comments: