« Return to Thread: swingbuilder - linking actions to events

Re: swingbuilder - linking actions to events

by Glen Pepicelli :: Rate this Message:

Reply to Author | View in Thread


 I see something that was confusing me... there is both an "action" and "actionperformed".. you can; tpass a closure directly to "action" but you can with "actionperformed":

                    menuBar() {
                        menu (text: "Debug") {
                        menuItem(text: "Open Debug Window")
                                        menuItem(text: "hello", actionPerformed: {println "hi!!"})
                        }
                    }

Glen

 « Return to Thread: swingbuilder - linking actions to events