I put my Gantt Chart (ChartPanel) in a JScrollPane,and create a button named [zoom in].
The function for the button [zoom in] is:
When I click [zoom in] button, the widt
Absent a complete example, this appears to be an artifact of adding a ChartPanel directly to a JscrollPane. Instead, use a SlidingGanttCategoryDataset which permits the use of setFirstCategoryIndex() in response to a scrollbar state change. SlidingGanttDatasetDemo1 is a complete example.