< prev index next >
src/java.desktop/share/classes/sun/print/ServiceDialog.java
Print this page
@@ -1246,11 +1246,19 @@
}
private void updateCollateCB() {
int num = snModel.getNumber().intValue();
if (isAWT) {
+ // sync with IPPPrintService#getSupportedAttributeCategories
+ // where for linux, SheetCollate is not added to supported category
+ String osname = java.security.AccessController.doPrivileged(
+ new sun.security.action.GetPropertyAction("os.name"));
+ if (osname.equals("Linux")) {
+ cbCollate.setEnabled((num > 1) && scSupported);
+ } else {
cbCollate.setEnabled(true);
+ }
} else {
cbCollate.setEnabled((num > 1) && scSupported);
}
}
< prev index next >