Search the web
Sign In
New User? Sign Up
jurtle-users · Jurtle Users
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
GUIDisplay.java   Message List  
Reply | Forward Message #110 of 119 |
Re: [jurtle-users] GUIDisplay.java


On Sep 8, 2005, at 7:37 PM, John Kirkilis wrote:

> Bill,
>
> I was afraid you were going to say that, but since you've provided me
> with a working example, I'm glad. I've talked about multi-threading to
> my students and the event listener model, so we'll just get to dive
> into
> in a few weeks earlier.
>
> I'm still not quite sure why your PolySpiral example with the JSlider
> works just fine without needing to spawn a drawing thread. Is it
> because
> a complete spiral is drawn in response to a slider action with no
> intermediate updates being requested?

Yes, that's it exactly. If you don't need to see the intermediate
drawing there is no need for a separate thread. Once you return from
the slider's event the (complete) drawing can be processed the next
time through the event loop.

>
> Thanks again for all of your help.
>
> - John
>

--
Bill Tschumy
Otherwise -- Austin, TX
http://www.otherwise.com





Fri Sep 9, 2005 1:19 am

btschumy
Offline Offline
Send Email Send Email

Forward
Message #110 of 119 |
Expand Messages Author Sort by Date

Howdy Bill, For the past few classes, I've been going over GUI interface programming with my students. I started them off with the slider example (PolySpiral),...
John Kirkilis
johnkirkilis
Offline Send Email
Sep 8, 2005
4:39 am

John, This is normal when executing code on the Event Thread. Because the event thread is used for both events and drawing updates, it is somewhat tricky to...
Bill Tschumy
btschumy
Offline Send Email
Sep 8, 2005
1:19 pm

Bill, I was afraid you were going to say that, but since you've provided me with a working example, I'm glad. I've talked about multi-threading to my students...
John Kirkilis
johnkirkilis
Offline Send Email
Sep 9, 2005
12:34 am

... Yes, that's it exactly. If you don't need to see the intermediate drawing there is no need for a separate thread. Once you return from the slider's event...
Bill Tschumy
btschumy
Offline Send Email
Sep 9, 2005
1:19 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help