Re: Can't display Java gui
From: Conrad Eaglehill (airkart_at_hotmail.com)
Date: 11/09/04
- Next message: Marat: "How to encode Japanese string into UTF-32 ?"
- Previous message: Conrad Eaglehill: "Re: Can't display Java gui"
- In reply to: Rogan Dawes: "Re: Can't display Java gui"
- Next in thread: Rogan Dawes: "Re: Can't display Java gui"
- Reply: Rogan Dawes: "Re: Can't display Java gui"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 9 Nov 2004 12:50:29 -0800
Rogan Dawes <discard@dawes.za.net> wrote in message news:<4190853C.5040800@dawes.za.net>...
>
> Another alternative might be to use socket based comms in a
> client-server process. Have the GUI listen on a localhost socket for a
> connection, and pop up the GUI when it receives one. your C program
> passes the necessary info to the GUI, the operator makes his decision,
> and returns the decision to your C program via the socket.
>
> Your GUI effectively operates as a daemon, however it is running with
> the appropriate permissions for the desktop (if it is run as the user
> who owns the desktop), so it can interact with the operator/user.
>
> If nothing else, this is probably more efficient than starting a new JVM
> for every email that comes through. You incur the startup costs once
> only, at initial startup. Depending on your mail volume, this may or may
> not be important.
>
> It also means that you can properly queue the emails for the operator's
> attention, so that multiple emails arriving simultaneously do not all
> compete for attention/focus/whatever.
Hmm...I've had more practice in sockets with C than in Java, but this
might be the way to go. I'll give this a shot. Thanks, Rogan! I think
you may have helped me out quite a bit!
> Regards,
>
> Rogan
Conrad Eaglehill
- Next message: Marat: "How to encode Japanese string into UTF-32 ?"
- Previous message: Conrad Eaglehill: "Re: Can't display Java gui"
- In reply to: Rogan Dawes: "Re: Can't display Java gui"
- Next in thread: Rogan Dawes: "Re: Can't display Java gui"
- Reply: Rogan Dawes: "Re: Can't display Java gui"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|