[OpenJDK 2D-Dev] RFR: 8231231: The printing result is different from the case instruction

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Sun Oct 25 07:37:39 UTC 2020


On Sat, 24 Oct 2020 22:59:20 GMT, Phil Race <prr at openjdk.org> wrote:

>> Please review a manual printing test failure where the instructions is not matching the printing result 
>> as the labels which are present in the test instruction frame is cut off in printed result due to margin not being accounted for, 
>> as the labels in the test instruction is fully left aligned starting from 0.
>> Fixed by adding some spaces before labels and 
>> for other labels drawn through drawChars, modified to draw the labels from coordinate 20 instead of 0 to allow labels being printed in the paper and not get cutoff by margin.
>> Also, the Print instruction is brought to top and 1st label is brought to bottom (SOUTH position in BorderLayout) as 1st label is in JScrollPane so to account for top margin cutoff, brought it lower so that those labels does not get cut off.
>
> test/jdk/java/awt/print/bug8023392/bug8023392.java line 49:
> 
>> 47: public class bug8023392 extends Applet {
>> 48:     static final String[] instructions = {
>> 49:         "Please select variable radiobutton in applet.",
> 
> why?  And the text reads oddly,  I think you mean
> "Please select the Radio Button for applet size labeled "sariable"  in the test harness window"
> but still, why ??

Even now, in "fixed" mode the "Print" button is not visible and we need to select "Variable" to see the button. I just made it more official by changing the instruction.
BTW, I dont see the general comment about the label...I will work on the getting the inset than adding spaces in label.

-------------

PR: https://git.openjdk.java.net/jdk/pull/780


More information about the 2d-dev mailing list