• Post Reply Bookmark Topic Watch Topic
  • New Topic

AWT : converting String to Image

 
pritam mungse
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,
I'm a very new to AWT and need some help....
I've a String value, which will be passed to my class and an existing image. I need to write the value of the string to the image in some specified position.
Well looks to simple ??? My prolem is I want to avoid the x-server running on the client m/c. Is it possible to do without runni8ng the x-server ? as i don't want to show this to anyone, just finish the processing in background ???
kindly provide ur inputs...
rgds,
-pm.
 
raj madhuram
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I think xvfb is the best bet. If you are running JDK 1.4>, there is support for headless environments (I have not tried it yet). But I have used xvfb on Solaris machines to run headless.
http://java.sun.com/j2se/1.4.1/docs/guide/awt/AWTChanges.html#headless
http://forum.java.sun.com/thread.jsp?thread=51571&forum=31&message=402422
regards,
Raj
 
pritam mungse
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
thx. this was useful.
We hv decided to use the PJA libraries avialable at
http://www.eteks.com/pja
this helps to simulate headless AWT environment.
rgds,
-pm.
 
SJ Adnams
Ranch Hand
Posts: 925
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we run xvfb here, but there have been a few 'incidents' because it wasn't running.
I've just found out about http://www.eteks.com/pja/en/ but does anyone know if there are any other implementations that I could evaluate first?
Simon
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!