See: Description
Package | Description |
---|---|
org.netbeans.api.print | |
org.netbeans.spi.print |
PrintAPI Provides print functionality.
Initial version of the Print API
The typical client of Print module can be any tool to print custom data.
The simple way to enable printing for a custom data is:
If the data is a Swing component which extends javax.swing.JComponent
and shown in a org.openide.windows.TopComponent
, the key "print.printable"
(PrintManager.PRINT_PRINTABLE) with value "Boolean.TRUE"
in the component must be set as a client property. See example:
public class MyComponent extends javax.swing.JComponent { public MyComponent() { ... putClientProperty("print.printable", Boolean.TRUE); // NOI18N } ... }
|
The sources for the module are in the NetBeans Mercurial repositories.
Nothing.
Read more about the implementation in the answers to architecture questions.
Built on June 4 2024. | Copyright © 2017-2024 Apache Software Foundation. All Rights Reserved.