• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Streams and Forms in Swing

John Bateman
Ranch Hand
Posts: 320
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to make an 'app' that uses a socket connection request pages off the internet. (It's a custom browser for a servlet based page I am writing). It all woorks fine except that if I put my hits (I.E. amount of times I want to access the page) too high, the app freezes temporarily and doesn't display the returned 'page' until the whole XXXX hits is completed. Once my 'counter of hits' is completed (in a for loop) it dumps ALL the text returned by the socket to my 'JTextArea'.
I would rather see the JtextArea being populated AS the inputStream is being read.
I am doing it like sooo. (CODE PASTED BELOW)

[This message has been edited by John Bateman (edited March 10, 2000).]
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic