50 likes | 257 Views
“Alice Java” workshop. Dr. Jeyakesavan Veerasamy Email: jeyv@utdallas.edu Website (for all course materials): www.utdallas.edu/~jeyv/Alice_Java www.utdallas.edu/~ jeyv/AdvJava. Contents. C++ features Introduction to Java Classes & Objects Inheritance GUI applications Alice
E N D
“Alice Java” workshop Dr. Jeyakesavan Veerasamy Email: jeyv@utdallas.edu Website (for all course materials): www.utdallas.edu/~jeyv/Alice_Java www.utdallas.edu/~jeyv/AdvJava
Contents • C++ features • Introduction to Java • Classes & Objects • Inheritance • GUI applications • Alice • Alice Java
Plan for today (June 19th) • Add Clear button & additional panels • Review Complex GUI app • Memory game • Back to Course example in C++ and Java : Quick review • Play with Bouncing ball (Timer) and Draw boxes (mouse events) • “Snakes” game?
Memory game : Logic for action listener IF first click Record first click image # (variable firstClick) ELSE Record second click image # (variable secondClick) For second click, check whether there is a match. If there is no match, do myTimer.start();
Alice Software • My files were created using a new version of Alice. It can be downloaded from http://www.alice.org/sigcse2012/ • Netbeans plug-in can be downloaded from there too.