Re: recreating timesharing IO



Tom A. schrieb:
I was looking through some old pascal line printer listings from
<mumble mumble> decades ago, and thought I'd try to recreate an old
game I wrote in Java. Java, of course, doesn't do WRITELN and READLN
from the terminal, so I created a jframe with a jscrollpane

Of course java can. Try System.in and System.out.

containing a jtextarea for output, and below that a jtextfield to be
the input area. The question is, how to make the program stop and
wait for input when it needs it.

Don't stop, just don't change the state you're in. Just fire an event after
the input ocurred and let the main program react on that event.

>...
Thanks.

Tom A.
.



Relevant Pages

  • Re: OT: Pretty cool search toolbar
    ... > Better get used to it, Tom. ... > Bill Gates' genius has been in marketing trailing-edge tech- ... Their squishing of Java was hilarious. ... >> and founder of Oracle, ...
    (rec.arts.poems)
  • Re: [SLE] How do I get java working with Firebird????
    ... On Thursday 19 February 2004 05:45 pm, Tom Nielsen wrote: ... I tried downloading and installing it when I get the warning ... Firebird/Firefox plugins directory to the java? ... and copy that over to your firebird plugins. ...
    (SuSE)
  • Re: Do I need to know Visual Basic inorder to learn VB.Net ?
    ... On 2004-03-24, Cor wrote: ... VB.NET is no more OOP then Java. ... I'd take .NET everytime (and this has been recently made clear to me ... Tom Shelton ...
    (microsoft.public.dotnet.languages.vb)
  • Re: recreating timesharing IO
    ... Java, of course, doesn't do WRITELN and READLN ... and an event listener that would do a ...
    (comp.lang.java.gui)
  • Re: SP2/Java problems - IT DOES NOT WORK, period!!!!!!
    ... some additional details - machines you are running, specs of those machines, ... It will with anything but SUN JAVA situations. ... So, Tom Pepper Willet, tell us why YOUR Sun Java works and no one else's ...
    (microsoft.public.windowsupdate)