Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Problem with Graphics2D setFont Method in java 1.6

854607Apr 25 2011 — edited May 1 2011
Hi,

We are migrating one of our multithreaded J2SE application from java 1.4 to 1.6.

The application work is following :
1. Get the input data
2. from the input data create a ps file
3. create pcl file from the above created ps file
4. send the pcl to printer to printing.

I am encountering an error in step 2(creating a ps file). The ps file is created by implementing a Printable interface and then we are using Graphics2D setFont method to set the font of the printable.

The application fails due to the setFont method and produces NaN and Infinity values in the ps file. But if I comment all the setFont methods then the application works fine in java 1.6.

Could you please let me know what is the issue and what could be the work around for this?

[I have put one more post. The link is : http://forums.oracle.com/forums/thread.jspa?threadID=2206264&stqc=true]

Edited by: 851604 on Apr 25, 2011 2:17 AM

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 29 2011
Added on Apr 25 2011
3 comments
2,019 views