This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 142487

Summary: default print preview includes 4 pages for a small single-page uml diagrams
Product: uml Reporter: Peter Lam <petersl>
Component: GeneralAssignee: issues@uml <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: default print preview layout

Description Peter Lam 2008-07-31 22:38:43 UTC
Even though the UML diagram is very small, selecting File->Print brings up the print preview window that shows 4 pages
by default. See attached screenshot.
Comment 1 Peter Lam 2008-07-31 22:40:07 UTC
Created attachment 66228 [details]
default print preview layout
Comment 2 Vladimir Yaroslavskiy 2008-08-01 12:26:49 UTC
The problem is not in print/preview. The printable component
has too big dimension while real image is less. It leads to the extra pages.

To fix this issue, the component should indicates real size via "print.size" property.
See example:

        putClientProperty("print.printable", Boolean.TRUE); // NOI18N
        putClientProperty("print.size", new java.awt.Dimension(width, height)); // NOI18N

where width x height is real size.

Reassign to the UML team...