Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #591

Re: client server applica

From "Nigel Wade" <nigel.wade@THRWHITE.remove-dii-this>
Subject Re: client server applica
Message-ID <ent59h$p8l$1@south.jnrs.ja.net> (permalink)
Newsgroups comp.lang.java.gui
References <1168121268.789918.188840@v33g2000cwv.googlegroups.com>
Date 2011-04-27 15:28 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
mehall126 wrote:

> I have created a Java client server application using a socket
> connection with buffered reader and print writer objects to receive and
> send the data on the client and the server. The data goes to the server
> and is processed but the returned string, each line of which is
> tokenized on the client, should add elements to a JList.  The logic of
> the code loops is working OK, as the output to the screen shows the
> correct elements when the event button on the client is clicked.
> However, the client window freezes and there is no display of the data
> in the JList on the client. When I close the server GUI, the correct
> information is then displayed. I am running the application on the one
> machine using local host.  Any suggestions as to the potential problem
> would be appreciated. I must stress that I am not an experienced java
> programmer.

From the scraps of information in the above it looks like you have a client GUI
and a server GUI which are trying to communicate using sockets. I also see that
you are not an experienced Java programmer. This is not a good combination.

To succeed with what you are trying to do requires a detailed knowledge of how
to program networked applications with their related issues, along with
multi-threaded programming in a GUI environment.

Talk about jumping in at the deep end...

-- 
Nigel Wade, System Administrator, Space Plasma Physics Group,
            University of Leicester, Leicester, LE1 7RH, UK 
E-mail :    nmw@ion.le.ac.uk 
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Find similar


Thread

client server application "mehall126" <mehall126@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
  Re: client server applica "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
    Re: client server applica "mehall126" <mehall126@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
  Re: client server applica "Nigel Wade" <nigel.wade@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000

csiph-web