Websocket and Java Swing front end

Is it possible to make Websocket interface with Java Swing? If so, how?

+1
swing websocket
Dec 30 '09 at 21:13
source share
2 answers

Try:

http://github.com/TooTallNate/Java-WebSocket

Contains the implementation of the client and server. The example folder has a simple JFrame subclass called ChatClient . Look at the source for Swing help.

Essentially, you just need to subclass net.tootallnate.websocket.WebSocketClient and implement the onOpen , onClose and onMessage . The class has an interface very similar to the WebSockets API for HTML5.

+3
Aug 01 '10 at 19:45
source share

Kaazing WebSocket Gateway comes with support for JavaScript, Flex, Silverlight, but also its own Java clients (both stand-alone and applets). For more information, check out http://tech.kaazing.com/documentation/index.html

+1
Dec 31 '09 at 20:33
source share



All Articles