Home pageFind It!Contact PJAPJA documentation

PJA

 PJA Toolkit forum

This forum is dedicated to PJA Toolkit.
You may read freely the messages it contents. If you want to write a message or answer to a subject, subscribe to it first.

Subjects Recent messages Login Subscribe

Messages of subject PJA with Iplanet App Server 6.5

rinchador

Member since : Jun 13, 2003
Messages : 1
 Jun 13, 2003 at 12:45 PM
I am trying to use PJA with Iplanet App Server 6.5 over Solaris (SunOS 5.8)
X server is installed and running.
I have setted
" -Xbootclasspath/a:/JREntServer/l
ib2/PJA/lib/pja.jar -Dawt.toolkit=com.eteks.awt.PJAToolkit -Djava.awt.graphicse
nv=com.eteks.java2d.PJAGraphicsEnvironment -Djava2d.font.usePlatformFont=false
-Djava.awt.fonts=/space/iplanet/ias65/ias/usr/java/jre/lib/fonts -Duser.home=/J
REntServer/lib2/PJA" in the JAVA_ARGS of the iPlanet JVM

But when in my code:

java.awt.Frame frame = new java.awt.Frame();
frame.addNotify();
java.awt.Graphics2D g2d = (java.awt.Graphics2D) frame.getGraphics();
es.altia.util.Debug.println("en calculaAnchCMTexto,getGraphics()="+frame.getGraphics()+".");

frame.getGraphics() always return null !!!!!

Do you know which could be the problem???
Thanks in advance,
Xulio.

Manu

Location : Paris / France
Member since : Apr 29, 2003
Messages : 394
 Jun 13, 2003 at 3:29 PM
First, if you use a X Server, PJA Toolkit is useless.
Second, you have to create an offscreen image to be able to draw into it :

Frame frame = new Frame ();
frame.addNotify ();
Image image = frame.createImage (width, height);
java.awt.Graphics2D g2d = (java.awt.Graphics2D)image.getGraphics();

---
Manu (moderator/modérateur)


Home pageFind It!ContactTop

© Copyrights 1997-2023 eTeks - All rights reserved

PJAPJA documentation