• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

AWT : converting String to Image

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 925
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic