File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes GraphicsEnvironment problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "GraphicsEnvironment problem" Watch "GraphicsEnvironment problem" New topic

GraphicsEnvironment problem

Patrik Westlund

Joined: Oct 28, 2001
Posts: 3
I'm having a problem with a server application running on linux. The server creates Font objects and therefore calls GraphicsEnvironment.getLocalGraphicsEnvironment(). When starting the program on the linux machine under X11 it runs fine. But if I try to start it remotely via telnet I get a null pointer from the GraphicsContext.
The server program doesn't display any graphics, it just creates the objects and passes them to the client programs. Does anyone know a way to start the program without having to run X11 on the server? Or running a X-Term emulation on the remote machine?
/Patrik Westlund

/Patrik Westlund<BR> <A HREF="" TARGET=_blank rel="nofollow"></A>
I agree. Here's the link:
subject: GraphicsEnvironment problem
It's not a secret anymore!