my dog learned polymorphism
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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>
Don't get me started about those stupid light bulbs.
subject: GraphicsEnvironment problem
It's not a secret anymore!