![]() |
![]() ![]() |
Test the Interface ![]() |
This displays the file in the Source panel of the main window.
This is where Cosmo Code writes the code generated by the visual builder. Any edits you make must be made outside of these code blocks. Every time you save the interface through the visual builder, Cosmo Code overwrites the code between these begin and end blocks.
This is where Cosmo Code writes the placeholders for the methods you specify to handle events. The current extra_code block is similar to:
//{{ extra_code public void removeName (java.awt.event.ActionEvent event) {//{{ event_handler // Add your code here } //}} event_handler //}} extra_code
public void removeName (java.awt.event.ActionEvent event) {//{{ event_handler // get the currently selected item int index = nameList.getSelectedIndex(); // if there is a selection, remove it if (index != -1) { nameList.delItem (index); } } //}} event_handler
Do not alter the argument list or the comments //{{
event_handler
. Cosmo Code requires these when working with
your program.
![]() |
![]() ![]() |
Test the Interface ![]() |
Guide to the Cosmo Code Development Environment
12-96*114