Iam really new to Swing programming and I have to do some thing like what Iam
describing below in my project.
Would like to have a GUI,which is as follows:
Its a table having 2 columns.
The 1st row(0 index) is a fixed row.
The 1st column(index-0) is a tree & in the second column(index-1),all cells should display a combobox.
Also,when collapsing & expanding the tree in the first column,the 2nd column combocells should collapse or expand with it.
The selection should spread across both the columns.
The image looks as follows:
I have gone through the java tutorials & came to the idea that for realising this GUI,I have to use a JTable & render it,set corresponding "editor" to it, to get the required results.
Looked at the Java tutorial at
But its a bit confusing for a beginner.
would be nice if u could show how I can do this with a code snippet.It needs only to be a minimal one.
Also in the java tutorial code(at the above link), in JTreeTable class there is this
//class ListToTreeSelectionModelWrapper extends DefaultTreeSelectionModel
Do I need it in my case.
Would be nice if someone could give me a breakthrough on this one...