Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Streams and Forms in Swing  RSS feed

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).]
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!