viewMenu.addSeparator();
add(viewMenu, new ZoomInAction());
add(viewMenu, new ZoomOutAction());
viewMenu.addSeparator();
for (String mode : AutoScaleAction.MODES) {
AutoScaleAction autoScaleAction = new AutoScaleAction(mode);
autoScaleActions.put(mode, autoScaleAction);
add(viewMenu, autoScaleAction);
}
// -- viewport follow toggle action