Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #4097
| From | "Tom A." <tom.a.@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: recreating timesharin |
| Message-ID | <c4bde30a-9e59-4aaf-a79d-efb928bba473@n38g2000prl.googlegroups.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <0127b41tv6toplpeep5t82pkqvl5l6q4lm@4ax.com> |
| Date | 2011-04-27 15:48 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui On Aug 25, 11:36=A0pm, Roedy Green <see_webs...@mindprod.com.invalid> wrote: > On Mon, 25 Aug 2008 07:29:07 -0700 (PDT), "Tom A." > <meteoricshipya...@yahoo.com> wrote, quoted or indirectly quoted > someone who said : > > >I created a class called BasicIO that had a synchronized readln() > >method that did a wait(), and an event listener that would do a > >notify() when the event was from the input field, but it kept giving > >me an > >IllegalMonitorStateException. > > Events are nice discrete short things. You don't need wait etc to deal > with them. See http://mindprod.com/jgloss/event11.html > to understand how they work. > -- > > Roedy Green Canadian Mind Products > The Java Glossaryhttp://mindprod.com Thank you for the link. That document explained what was going on (I think ....) The event handling was being invoked in the EventDispatchedThread, so it didn't have the monitor for the main program when it issued the notify(). This seems a bit complicated to this Object Oriented programmer who was trained when Ada was the coming thing :-) Tom A. Who hasn't programmed anything substantial in probably 20 years. Damn, I feel old. --- * 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 | Next — Previous in thread | Find similar | Unroll 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