On Wed, Feb 20, 2002 at 01:54:0p -0700, Ramani Pichumani wrote:
 > When printing Java2D windows under UNIX using JDK 1.3.x, it's well known
 > that the print dialog box is not very useable.  However, by making several
 > of the private variables in the PSPrinterJob class public, it's possible
 > to use a custom dialog box to replace the sun.awt.motif.PSPrinterJob
 > object.  It particular, making mDestType, mDestination, mOptions all public
 > allows these parameters to be set through other means without invoking
 > the printDialog method.
 >
 > However, simply creating a new jar file with the modified sun.awt.motif.
 > PSPrinter class doesn't seem to work.  The PrinterJob class doesn't
 > seem to be able to find the modified classes even if they are pre-pended
 > to the classpath and use the same package hierarchy.
 >
 > I'm wondering if there's any other way to import these new classes
 > without having to update the rt.jar file?  Simply loading them the classes
 > doesn't seem to work.  The PrinterJob class still looks inside the rt.jar
 > for the PSPrinterJob class.
 >
 > If anyone knows of a simple way to do this, I would be very grateful.
 > Unfortunately, upgrading to 1.4 is not an option for us due to customer
 > support issues.

  You need the -Xbootclasspath option:
  java -X
   ...
    -Xbootclasspath:<directories and zip/jar files separated by :>
                      set search path for bootstrap classes and resources
    -Xbootclasspath/a:<directories and zip/jar files separated by :>
                      append to end of bootstrap class path
    -Xbootclasspath/p:<directories and zip/jar files separated by :>
                      prepend in front of bootstrap class path
   ...

  Thank you,
    Dmitri

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to