| | |
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 |
2dgraphics @param account affinetransform android api apple applet application arc arguments array automation banking binary binarytree bluetooth chatprogramusingobjects class client code color compare component count database derby design detection eclipse eclipsedevelopment encryption error fractal game givemetehcodez graphics gridlayout gui guitesting helpwithhomework html ide if_statement image inheritance integer j2me java java.xls javadesktopapplications javaprojects jlabel jni jpanel julia keytool keyword linux list macintosh map method methods midlethttpconnection mobile monitoring netbeans nullpointerexception object open-source pong problem producer program project projectideas property reference replaysolutions ria rim scanner server set size sms sourcelabs splash sql swing terminal threads transforms tree ui unicode validation web windows





