8231231: The printing result is different from the case instruction

Reviewed-by: prr
This commit is contained in:
Prasanta Sadhukhan 2020-10-27 11:16:27 +00:00
parent f7c59c661c
commit 767965046e
2 changed files with 4 additions and 2 deletions

View File

@ -907,7 +907,6 @@ java/awt/TrayIcon/DblClickActionEventTest/DblClickActionEventTest.html 8203867 m
java/awt/Frame/FrameStateTest/FrameStateTest.html 8203920 macosx-all,linux-all
javax/swing/SwingUtilities/TestTextPosInPrint.java 8227025 windows-all
java/awt/print/PrinterJob/ScaledText/ScaledText.java 8231226 macosx-all
java/awt/print/bug8023392/bug8023392.html 8231231 generic-all
java/awt/font/TextLayout/TestJustification.html 8250791 macosx-all
javax/swing/JTabbedPane/4209065/bug4209065.java 8251177 macosx-all
java/awt/TrayIcon/DragEventSource/DragEventSource.java 8252242 macosx-all

View File

@ -46,6 +46,7 @@ import java.text.AttributedString;
public class bug8023392 extends Applet {
static final String[] instructions = {
"Please select the RadioButton for applet size labeled \"variable\" radiobutton in test harness window.",
"A Frame containing several pairs of labels ((a) and (b)) is displayed.",
"Labels of each pair look the same and are left-aligned (with spaces ",
"between chars).",
@ -169,7 +170,9 @@ public class bug8023392 extends Applet {
if (pageIndex >= 1) {
return Printable.NO_SUCH_PAGE;
}
double imgX = pageFormat.getImageableX();
double imgY = pageFormat.getImageableY();
((Graphics2D)graphics).translate(imgX, imgY);
this.paint(graphics);
return Printable.PAGE_EXISTS;
}