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


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

Re: recreating timesharin

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!transit3.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "Stefan Rybacki" <stefan.rybacki@THRWHITE.remove-dii-this>
Subject Re: recreating timesharin
Message-ID <48b2c47e$1@news.uni-rostock.de> (permalink)
X-Comment-To comp.lang.java.gui
Newsgroups comp.lang.java.gui
In-Reply-To <7df04a4a-bf7a-4615-9fb8-6a1664f231c5@d45g2000hsc.googlegroups.com>
References <7df04a4a-bf7a-4615-9fb8-6a1664f231c5@d45g2000hsc.googlegroups.com>
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 25
Date Wed, 27 Apr 2011 15:48:36 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303919316 96.60.20.240 (Wed, 27 Apr 2011 10:48:36 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:48:36 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:4083

Show key headers only | View raw


  To: comp.lang.java.gui
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.

---
 * 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 | Next in thread | Find similar | Unroll thread


Thread

recreating timesharing IO "Tom A." <tom.a.@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
  Re: recreating timesharin "Stefan Rybacki" <stefan.rybacki@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
  Re: recreating timesharin "Daniele Futtorovic" <daniele.futtorovic@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
    Re: recreating timesharin "Tom A." <tom.a.@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
      Re: recreating timesharin "Daniele Futtorovic" <daniele.futtorovic@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
  Re: recreating timesharin "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
    Re: recreating timesharin "Tom A." <tom.a.@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000

csiph-web