Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

what control to use  RSS feed

 
Walsh graham
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Im about to put a GUI around some data we use. We're running jdk 1.4.

The data is a matrix of dates and doubles (its actually a volatility matrix). I need a control such that when clicked, the matrix is expacnded so the dates/values can be seen. By default the data is not visible ( a minus sign indicates that the data is not expanded). When clicked, the minus sign expands into the matrix (a little like directories when navigating windows).

could anybody tell me what control I should be using? Do I need to download some custom control or is it available in the swing toolbox? I had a look and can't see anything that stands out.

thanks for any info.

Graham
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Expand/collapse, show/hide would indicate a JTree. You can provide custom renderers to the tree to display the node data.
Also search for tree table. It is a combination of a JTree and a JTable.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!