| | |
Java GUI problem - "BeanBox" swing component implementation
![]() |
•
•
Join Date: Jul 2007
Posts: 66
Reputation:
Solved Threads: 14
Hello
I'm creating a program where I want a "BeanBox" window for editing an object's properties.
I'm thinking something like: [http://img301.imageshack.us/img301/5308/javagridtg0.jpg]
It must retain alot of the functionality that JTable gives: Resizable columns, custom cellrenders & celleditors, min/max column width.
So far, so good. I could just use a JTable out of the box.
The problem is that a column doesn't contain objects of only one class, so using the basic TableModel#getColumnClass setup won't work. I want to be able to specify a cellrenderer and editor for each cell in a column.
It would also be great (but not vital) to have a tree-structure in there aswell (as seen on the illustration).
Does anyone have any good ideas to how I can do this? Can I modify existing components into what I want or do I have to create my own component from scratch? Or has anyone already written this kind of component for swing?
Best regards
-vidaj-
I'm creating a program where I want a "BeanBox" window for editing an object's properties.
I'm thinking something like: [http://img301.imageshack.us/img301/5308/javagridtg0.jpg]
It must retain alot of the functionality that JTable gives: Resizable columns, custom cellrenders & celleditors, min/max column width.
So far, so good. I could just use a JTable out of the box.
The problem is that a column doesn't contain objects of only one class, so using the basic TableModel#getColumnClass setup won't work. I want to be able to specify a cellrenderer and editor for each cell in a column.
It would also be great (but not vital) to have a tree-structure in there aswell (as seen on the illustration).
Does anyone have any good ideas to how I can do this? Can I modify existing components into what I want or do I have to create my own component from scratch? Or has anyone already written this kind of component for swing?
Best regards
-vidaj-
![]() |
Other Threads in the Java Forum
- Previous Thread: dont know how to delete string..help!
- Next Thread: Saddly Stuck Stupid Strings
| Thread Tools | Search this Thread |
actuate add android api applet application applications array arrays automation balls bank binary bluetooth business chat class clear client code codesnippet collections component database defaultmethod development dice digit dragging ebook eclipse equation error event formatingtextintooltipjava fractal functiontesting game givemetehcodez graphics gui health hql html hyper ide idea image infinite int integer invokingapacheantprogrammatically j2me java javame javaprojects jni jpanel julia linux list main map method methods mobile myregfun mysql netbeans nonstatic openjavafx parameter pearl php problem program project recursion repositories scanner scrollbar server set sms sort sorting spamblocker sql sqlserver state storm string sun superclass swing swt thread threads tree windows





