286N/A * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved. 286N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 286N/A * This code is free software; you can redistribute it and/or modify it 286N/A * under the terms of the GNU General Public License version 2 only, as 286N/A * published by the Free Software Foundation. Oracle designates this 286N/A * particular file as subject to the "Classpath" exception as provided 286N/A * by Oracle in the LICENSE file that accompanied this code. 286N/A * This code is distributed in the hope that it will be useful, but WITHOUT 286N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 286N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 286N/A * version 2 for more details (a copy is included in the LICENSE file that 286N/A * accompanied this code). 286N/A * You should have received a copy of the GNU General Public License version 286N/A * 2 along with this work; if not, write to the Free Software Foundation, 286N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 286N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 286N/A * or visit www.oracle.com if you need additional information or have any 286N/A * @bug 4485755 6361370 6448717 5080051 6939417 286N/A * @summary dialog doesn't have way to specify margins 286N/A * for 6361370, verify exception for offline printer in Windows 286N/A * for 6448717, faster display of print dialog 286N/A * for 6500903, verify status of printer if accepting jobs or not 286N/A super(
"Dialog Margins Test");
//aset.add(MediaSizeName.ISO_A4); //aset.add(new MediaPrintableArea(0f,0f,210f,297f,MediaPrintableArea.MM)); //myPrinterJob.setPrintable(this); //PrintRequestAttributeSet newaset = //new HashPrintRequestAttributeSet(); "You must have a printer available to perform this test",
"Specify various pageformats and compare the printed results with the",
println(
"Any messages for the tester will display here." );
println(
"Any messages for the tester will display here." );
This is part of the standard test machinery. It provides a place for the test instructions to be displayed, and a place for interactive messages to the user to be displayed. To have the test instructions displayed, see Sysout. To have a message to the user be displayed, see Sysout. Do not call anything in this dialog directly. //DO NOT call this directly, go through Sysout //DO NOT call this directly, go through Sysout //Clear out any current instructions //Go down array of instruction strings //chop up each into pieces maxSringLength long //if longer than max then chop off first max chars to print //Try to chop on a word boundary //DO NOT call this directly, go through Sysout