Perforce JViews Gantt Sample: Additional Data Table
Description
This sample shows how to coordinate an additional table of data with a Gantt Chart.
How to Use the Sample
-
This sample has the following keyboard accelerators:
- Ctrl+Z : zoom
- Ctrl+U : unzoom
- Ctrl+F : fit to view
- Ctrl+Enter : toggle selected row expand/collapse
- Ctrl+2 : increase row height
- Ctrl+Shift+2 : decrease row height
- Arrow Keys : scroll
-
For information about other actions available in this sample, refer to
the
Gantt Chart
sample.
How to Run the Sample as an Application
This sample can
be run as an application.
The installation directory contains
an executable JAR file,
dual-table.jar
,
that allows you to execute the sample with a double click from a
file browser. Note that if you are using Internet Explorer, you can
open the installation directory
and execute the JAR file from the browser. This
technique may not work in other Web browsers.
Alternatively, you
can run the sample application from the command line.
First check that the Ant utility is properly configured. If not, see the
instructions on how to configure Ant for Perforce JViews.
Then, go to the installation directory
of the sample and type:
ant run
Topics Covered
-
Creating an additional
IlvJTable
that displays data columns from anIlvGanttChart
- Coordinating the look-and-feel of the table with that of the chart
- Coordinating the vertical scrolling of the table with that of the chart
- Coordinating the row selection behavior of the table with that of the chart
Detailed Description
The user interface for this sample is the same as that used for the Gantt Chart sample, on which it is based.
Installation Directory
The Additional Data Table sample is installed here.
Classes Involved
- ilog.views.gantt.IlvGanttChart
- ilog.views.gantt.IlvGanttComponentManager
- ilog.views.gantt.IlvJScrollPane
- ilog.views.gantt.swing.IlvJTable
Source Files
-
dualTable.DualTableExample
The main sample application.