-
Bug
-
Resolution: Fixed
-
P2
-
1.2.0
-
1.2beta4
-
sparc
-
solaris_2.6
-
Not verified
The test program
test/java/awt/PrintJob/PrintComponentTest/PrintComponentTest.java
no longer produces correct output.
Because of changes to the java.util package, you will first need to apply this
patch to get the .java file to compile correctly:
------- PrintComponentTest.java -------
*** /tmp/dma_R1_ Tue Jun 23 15:30:32 1998
--- PrintComponentTest.java Tue Jun 23 14:31:03 1998
***************
*** 1,13 ****
/**
* PrintComponentTest.java %I% %E%
* @bug 4111262 4035285 4038900 4046147 4049680 4084038 4100004 4105875
! * @bug 4117502 4037486 4068433
* @summary Test printing of lightweight (and heavyweight) components
*/
import java.awt.*;
import java.awt.event.*;
! import java.util.*;
import java.applet.*;
public class PrintComponentTest extends Applet {
--- 1,16 ----
/**
* PrintComponentTest.java %I% %E%
* @bug 4111262 4035285 4038900 4046147 4049680 4084038 4100004 4105875
! * @bug 4117502 4037486 4068433 4128031 4151161
* @summary Test printing of lightweight (and heavyweight) components
+ * @author dpm
+ * @author robi
*/
import java.awt.*;
import java.awt.event.*;
! import java.util.Properties;
! import java.util.Enumeration;
import java.applet.*;
public class PrintComponentTest extends Applet {
Now, run the test program as an application (the .html file is incorrect and
will be removed). Select "Print to Printer..." from the "Print" menu. The output
should be three pages which closely resemble the Frame and all its components.
Instead, I see the following problems:
* The output consists of four pages instead of three.
* On the first three pages, only the LWButton (a lightweight Component) appears.
None of the peered Components appear.
* The text drawn in the LWButton has lines radiating from the upper-left corner
of the parent rectangle to points on the text itself.
We were unable to determine at what point the extra lines appeared. Native
components stopped printing sometime between 23Apr and 25Apr. Also, don't
bother using beta3 as an example of this test case working correctly. Additional
printing bugs were fixed since beta3 that have changed the output substantially.
Use the current 1.1.7 promotion instead.
test/java/awt/PrintJob/PrintComponentTest/PrintComponentTest.java
no longer produces correct output.
Because of changes to the java.util package, you will first need to apply this
patch to get the .java file to compile correctly:
------- PrintComponentTest.java -------
*** /tmp/dma_R1_ Tue Jun 23 15:30:32 1998
--- PrintComponentTest.java Tue Jun 23 14:31:03 1998
***************
*** 1,13 ****
/**
* PrintComponentTest.java %I% %E%
* @bug 4111262 4035285 4038900 4046147 4049680 4084038 4100004 4105875
! * @bug 4117502 4037486 4068433
* @summary Test printing of lightweight (and heavyweight) components
*/
import java.awt.*;
import java.awt.event.*;
! import java.util.*;
import java.applet.*;
public class PrintComponentTest extends Applet {
--- 1,16 ----
/**
* PrintComponentTest.java %I% %E%
* @bug 4111262 4035285 4038900 4046147 4049680 4084038 4100004 4105875
! * @bug 4117502 4037486 4068433 4128031 4151161
* @summary Test printing of lightweight (and heavyweight) components
+ * @author dpm
+ * @author robi
*/
import java.awt.*;
import java.awt.event.*;
! import java.util.Properties;
! import java.util.Enumeration;
import java.applet.*;
public class PrintComponentTest extends Applet {
Now, run the test program as an application (the .html file is incorrect and
will be removed). Select "Print to Printer..." from the "Print" menu. The output
should be three pages which closely resemble the Frame and all its components.
Instead, I see the following problems:
* The output consists of four pages instead of three.
* On the first three pages, only the LWButton (a lightweight Component) appears.
None of the peered Components appear.
* The text drawn in the LWButton has lines radiating from the upper-left corner
of the parent rectangle to points on the text itself.
We were unable to determine at what point the extra lines appeared. Native
components stopped printing sometime between 23Apr and 25Apr. Also, don't
bother using beta3 as an example of this test case working correctly. Additional
printing bugs were fixed since beta3 that have changed the output substantially.
Use the current 1.1.7 promotion instead.
- relates to
-
JDK-4173275 Win32: need printing capability to write-only printer device.
-
- Closed
-