Creating a JButton in Octave

Hello. I´m Trying to Create a Java interface Using Octave. So far i’ve created a JFrame, a JButton and a JCheckBox but I can’t add an event to it. I mean, when i press the button or click the JCheckBox it doesn’t do anything. Could someone please tell me what i have to do?

Objetos.m (645 Bytes)

I’m afraid you’re pretty much out of luck here. Events on Java objects need to be defined in Java code, and there’s no interface in Octave for having them hook back to events defined in Octave M-code. If you want to use a nontrivial Java GUI inside an Octave program, you need to fire up a Java IDE and write it all in Java, and then have your Octave code treat that as a library.