Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8340308

PassFailJFrame: Make rows default to number of lines in instructions

XMLWordPrintable

    • b17

        It has become quite common to use the following code

        .rows((int) INSTRUCTIONS.lines().count() + 1)

        to set the number of rows for PassFailJFrame.

        This can be made the default.

        Examples of the files where the above is used:
        test/jdk/java/awt/print/PageFormat/Orient.java
        test/jdk/java/awt/print/PageFormat/SetOrient.java
        test/jdk/java/awt/print/PrinterJob/Cancel/PrinterJobCancel.java

              aivanov Alexey Ivanov
              aivanov Alexey Ivanov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: