Re: drawing tower of hanoi

Andrew Oliver <[email protected]> Sat, 18 Jun 2011 11:25:25 -0400
Newsgroups gmane.org.user-groups.trijug.juglist
Message-ID <[email protected]>
FYI it may be a bit quiet on this as most people have moved on to
other things when it comes to doing GUI stuff.  There certainly are
plenty of people doing Swing/AWT/java2d stuff out there, but people
more commonly due UI stuff in Flash or HTML5 or whatever.  These days
most Java stuff is server-side backend processing stuff.

-Andy

On Sat, Jun 18, 2011 at 10:46 AM, Joseph Mack NA3T <[email protected]> wrote:
> On Sat, 18 Jun 2011, Joseph Mack NA3T wrote:
>
>
> I've now got frame.repaint() in the move_disks() method so its called after
> a disk move.
>
> Next thing is to get the state of the Tower into DrawRectangles. I don't
> know how to do this. If I pass Tower myTower as a parameter to one of the
> DrawRectangle methods, the compiler complains that myTower is not known.
>
>> Is the mouse clicks events the model I should use?
>
> the code which detects mouseevents just redraws the button. It's not obvious
> how to use this in my case
>
> THanks Joe
>
> --
> Joseph Mack NA3T EME(B,D), FM05lw North Carolina
> jmack (at) wm7d (dot) net - azimuthal equidistant map
> generator at http://www.wm7d.net/azproj.shtml
> Homepage http://www.austintek.com/ It's GNU/Linux!
>
> _______________________________________________
> Juglist mailing list
> [email protected]
> http://trijug.org/mailman/listinfo/juglist_trijug.org
>