• Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing Windows Service  RSS feed

 
Dilwan Sujan Cuttilan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hv written a small swing application. I installed the swing application as a windows service. When i start the service in starts without errors.

But i the JFrame is not Visible to me. I installed this swing application as a windows service using JavaService.

Can anybody please help me?
 
Rob Spoor
Sheriff
Posts: 20892
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
UseRealWords. hv is not one of them.

I'm thinking of moving this to Other APIs, but let's wait a few more days. If there are still no helpful replies by then I'll move it anyway.

That does NOT mean you should create another thread for this problem.
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Windows services rarely have an API that is visible to a user who happens to sign on. I don't know much about services (note: that isn't the topic of any of the forums here) but I vaguely recall that there is something you have to do to a service to make it have a visible user interface.

Personally I wouldn't do that as I wouldn't expect it to work. I would write the service as a server with no GUI and provide a client with a GUI that could send requests to the server.

Edit: I looked at the dialog for configuring a Windows service. I see that it has a checkbox "Allow service to interact with desktop".
[ June 23, 2008: Message edited by: Paul Clapham ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!