Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Render,set editor to JTable Cells

Status
Not open for further replies.

kohinoor2007

Programmer
Mar 21, 2007
69
DE
Hi Guys,

Iam new to swing & had to make 2 Gui controls as follows:

[1]1st GUI Control
*******************

Its like a table having 4 columns.
The 1st column is a fixed column,the 2nd ,3rd & 4th column contains comboboxes(All cells in the columns).

The image looks as follows:



[2]The 2nd GUI control
***********************

Its also a table having 2 columns.

The 1st row is a fixed row.The 1st column is a tree & in the second column,all cells is a combo box.

Also,when collapsing & expanding the tree in the first column,the 2nd column cells should not collapse or expand with it.

The image looks as follows:




I have gone through the java tutorials & came to the idea that for realising these 2 Gui Controls,I have to use a JTable & render it,set corresponding "editor" to it, to get the required results.


Could any one give a hand on, how I can achieve these 2 GUi Controls.

Any sample examples would be great....

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top