< prev index next >
src/java.desktop/share/classes/sun/print/ServiceDialog.java
Print this page
@@ -959,11 +959,13 @@
}
Attribute info = psCurrent.getAttribute(PrinterInfo.class);
if (info != null) {
lblInfo.setText(info.toString());
}
- btnProperties.setEnabled(uiFactory != null);
+ btnProperties.setEnabled(uiFactory != null &&
+ (uiFactory.getUI(ServiceUIFactory.MAIN_UIROLE,
+ ServiceUIFactory.JDIALOG_UI) != null));
}
}
@SuppressWarnings("serial") // Superclass is not serializable across versions
private class PrintRangePanel extends JPanel
< prev index next >