[Nice-commit] swing/examples/events EventTest.nice,1.2,1.3
Brought to you by:
bonniot
From: <ar...@pr...> - 2004-01-29 03:04:18
|
Update of /cvsroot/nice/swing/examples/events In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13363/D:/nice/examples/events Modified Files: EventTest.nice Log Message: Make a nice-swing example compile again: moved global vars to local. Index: EventTest.nice =================================================================== RCS file: /cvsroot/nice/swing/examples/events/EventTest.nice,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** EventTest.nice 2 Oct 2002 03:23:48 -0000 1.2 --- EventTest.nice 29 Jan 2004 01:01:27 -0000 1.3 *************** *** 7,16 **** import nice.ui.common; - - var ActionEvent -> void blueColor; - var ActionEvent -> void grayColor; - var ActionEvent -> void offBlueColor; - var ActionEvent -> void offGrayColor; - void changeColor(JPanel p, Color c) = p.setBackground(c); --- 7,10 ---- *************** *** 21,26 **** JPanel makePanel() { ! // create the panel ! JPanel panel = new JPanel(); // switches background to blue --- 15,27 ---- JPanel makePanel() { ! // variables that will contain the event actions ! var ActionEvent->void blueColor; ! var ActionEvent->void grayColor; ! var ActionEvent->void offBlueColor; ! var ActionEvent->void offGrayColor; ! ! ! // create the panel ! JPanel panel = new JPanel(); // switches background to blue |