Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > Java GUI
Java GUI Discussions specific to programming Java GUI.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java GUI section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 9th, 2007, 09:04 AM
Authorized User
Join Date: Jul 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Table rendering with table & comboBox


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...


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems rendering to a table with sorted results jlmacdonald XSLT 6 March 27th, 2008 05:54 PM
Populate a List Box with Table Names & Table date hewstone999 Access VBA 1 February 27th, 2008 10:10 AM
Chapter2:problem in rendering weather table samouille666 JSP Basics 0 January 17th, 2007 10:50 AM
Safari not rendering div inside table irjaelisa CSS Cascading Style Sheets 1 July 10th, 2006 10:59 PM
ComboBox with Data from More than 1 Table rocknrisk Access 7 August 19th, 2005 02:34 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.