File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
java/awt/print/bug8023392 Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -907,7 +907,6 @@ java/awt/TrayIcon/DblClickActionEventTest/DblClickActionEventTest.html 8203867 m
907
907
java/awt/Frame/FrameStateTest/FrameStateTest.html 8203920 macosx-all,linux-all
908
908
javax/swing/SwingUtilities/TestTextPosInPrint.java 8227025 windows-all
909
909
java/awt/print/PrinterJob/ScaledText/ScaledText.java 8231226 macosx-all
910
- java/awt/print/bug8023392/bug8023392.html 8231231 generic-all
911
910
java/awt/font/TextLayout/TestJustification.html 8250791 macosx-all
912
911
javax/swing/JTabbedPane/4209065/bug4209065.java 8251177 macosx-all
913
912
java/awt/TrayIcon/DragEventSource/DragEventSource.java 8252242 macosx-all
Original file line number Diff line number Diff line change 46
46
47
47
public class bug8023392 extends Applet {
48
48
static final String [] instructions = {
49
+ "Please select the RadioButton for applet size labeled \" variable\" radiobutton in test harness window." ,
49
50
"A Frame containing several pairs of labels ((a) and (b)) is displayed." ,
50
51
"Labels of each pair look the same and are left-aligned (with spaces " ,
51
52
"between chars)." ,
@@ -169,7 +170,9 @@ public int print(Graphics graphics,
169
170
if (pageIndex >= 1 ) {
170
171
return Printable .NO_SUCH_PAGE ;
171
172
}
172
-
173
+ double imgX = pageFormat .getImageableX ();
174
+ double imgY = pageFormat .getImageableY ();
175
+ ((Graphics2D )graphics ).translate (imgX , imgY );
173
176
this .paint (graphics );
174
177
return Printable .PAGE_EXISTS ;
175
178
}
You can’t perform that action at this time.
0 commit comments