Example usage for javax.print.attribute HashPrintRequestAttributeSet add

List of usage examples for javax.print.attribute HashPrintRequestAttributeSet add

Introduction

In this page you can find the example usage for javax.print.attribute HashPrintRequestAttributeSet add.

Prototype

public boolean add(Attribute attribute) 

Source Link

Document

Adds the specified attribute to this attribute set if it is not already present, first removing any existing in the same attribute category as the specified attribute value.

Usage

From source file:org.martus.client.swingui.actions.ActionMenuCharts.java

private void removeJavaLogoFromTitle(HashPrintRequestAttributeSet attributes) {
    attributes.add(javax.print.attribute.standard.DialogTypeSelection.NATIVE);
    Frame f = new Frame();
    attributes.add(new sun.print.DialogOwner(f));
}