Skip to main content

Add a handler to a form when using the resource edtor

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
vrecon
Offline
Joined: 2008-12-29

Hi, I am building an application that uses the new resource editor. I need to implement a handler to a form. How can i do this. Do i need to write a custom form and add it to the resource editor?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vprise
Offline
Joined: 2003-11-07

What's a handler to a form?

If you want the GUI from the resource editor to navigate to a custom form just override the appropriate action event or command and use the forms show() method. For more on handling events in the GUI builder please look at the videos in the blog e.g.: http://lwuit.blogspot.com/2011/04/generating-netbeans-project-from.html