printSpreadSheet=new JCheckBox(Messages.getString("PageSetupDialog.ShowSpreadSheet"),document.isShowSpreadsheet());
printSpreadSheet.addItemListener(new ItemListener(){
public void itemStateChanged(ItemEvent e) {
if (isUpdaping()) return;
boolean selected=printSpreadSheet.isSelected();
GraphParams params=document.getRenderer().getParams();
params.setLeftPartVisible(selected);
if (!selected&&!printGantt.isSelected()){
params.setRightPartVisible(true);
beginUpdate();
printGantt.setSelected(true);
endUpdate();
}
refresh();
}
});
initFont(printSpreadSheet);
printGantt=new JCheckBox(Messages.getString("PageSetupDialog.ShowGantt"),document.isShowGantt());
printGantt.addItemListener(new ItemListener(){
public void itemStateChanged(ItemEvent e) {
if (isUpdaping()) return;
boolean selected=printGantt.isSelected();
GraphParams params=document.getRenderer().getParams();
params.setRightPartVisible(selected);
if (!selected&&!printGantt.isSelected()){
params.setLeftPartVisible(true);
beginUpdate();
printSpreadSheet.setSelected(true);
endUpdate();
}