The function for the button [zoom in] is:
When I click [zoom in] button, the width of chart panel will be doubled.
newSize = originalChartWidth * 2
Code: Select all
chartPanel.setPreferredSize(new java.awt.Dimension(newSize, 1000));
But there is a problem, When I double the chart panel width, The Task Label Font will be enlarged too.
Before zoom in
[img][IMG]http://i15.photobucket.com/albums/a365/ ... gantt1.jpg[/img][/img]
After zoom in (The font will be deformed and hard to read)
[img][IMG]http://i15.photobucket.com/albums/a365/ ... gantt2.jpg[/img][/img]
Is there any way to keep the original font after I double the chart panel width?