Re: awt canvas on a swing form okay?

From: Andrew Hobbs (andrewh1_NoSpam__at_iinet.net.au)
Date: 03/19/04


Date: Fri, 19 Mar 2004 19:48:33 +0800


"Antti S. Brax" <asb@iki.fi.NO.SPAM> wrote in message
news:slrnc5ld6b.pkj.asb@kruuna.Helsinki.FI...
> andrewh1_NoSpam_@iinet.net.au wrote in comp.lang.java.gui:
> > Is it actually accomplishing anything when looping infinitely. (Your
code
> > suggests not) If not why keep looping? It is also a great way of
locking
> > yourself out of your own program.
>
> Care to elaborate on the last statement? Locking out how?
>

Well, if as the OP indicates, he expects the program to respond to an event
when it is in an infinite loop he is likely to be left sitting at a
nonresponsive screen, keyboard and mouse. Unless that is he has taken care
to check for events each time around the loop or has a multithreaded
application which will break the loop etc. And the context of the original
post would suggest that s/he doesn't realize the requirements to prevent
this from happening.

Andrew

> --
> Antti S. Brax - asb(at)iki.fi Rullalautailu pitää lapset poissa ladulta
> http://www.iki.fi/asb/ http://www.cs.helsinki.fi/u/abrax/hlb/
> "Disconnect this cable to shorten, re-connect to lengthen."
> -- Instructions on Logitech's USB mouse extension cord.



Relevant Pages

  • Re: Does anyone else use this little idiom?
    ... localization / internationalization ... the direct translation of this is a for loop. ... An alternative way of indicating that you don't care about the loop ... for dummy in xrange: ...
    (comp.lang.python)
  • Re: Roads must roll was Re: Most Ridiculous SF Predictions
    ... The problem is that you don't understand the difference between confining a captured combatant and imprisoning a convict. ... You may have LEGAL POWER to do it, but you don't have the RIGHT to do it if you're not going to show evidence why you're locking them up, and that they did indeed do something to justify locking them up, and give them the chance to show that in fact they DIDN'T do what you think they did. ... I don't care about your wartime crap. ... In a REAL war, you might be able to plead necessity or expediency, and while that still wouldn't make it RIGHT, it might at least mitigate the crime you're committing. ...
    (rec.arts.sf.written)
  • Re: sched_lock && thread_lock()
    ... but userland doesn't really care. ... do this in some sys trees for the!SMP case. ... In the old sys trees, there is no locking for individual accesses, ... Atomicness with respect to interrupts is necessary and sufficient for ...
    (freebsd-arch)
  • Re: Appending a character to a field
    ... care of @df inside the while loop with % added back. ... syntax error at t.pl line 1, ... Sure, you have to disable warnings in that block, ...
    (comp.lang.perl.misc)
  • RE: [PHP] best technique to get the ID of the last inserted value
    ... The DB would take care of the locking on the inserts, ... [PHP] best technique to get the ID of the last inserted value ... Marcelo Wolfgang wrote: ...
    (php.general)