/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* @test
* @bug 800535
* @summary JDK7 Printing: CJK and Latin Text in string overlap
*/
"You need a printer for this test. If you have none, let "+
"the test pass. If there is a printer, press Print, send "+
"the output to the printer, and examine it. It should have "+
"text looking like this : \u4e00\u4e01\u4e02\u4e03\u4e04English.";
public static void showFrame() {
jta.setLineWrap(true);
jta.setWrapStyleWord(true);
f.add("South", b);
f.pack();
f.setVisible(true);
}
throws PrinterException {
if (pageIndex > 0) {
return Printable.NO_SUCH_PAGE;
}
return Printable.PAGE_EXISTS;
}
try {
if (job.printDialog()) {
}
} catch (PrinterException ex) {
}
}
public void run() {
showFrame();
}
});
}
}