To add the Mail Panel
component to the palette:
When assigning an icon, use an absolute path in the form of a fully
qualified URL (for example:
file:/C:\home\images\icon.gif
).
Use the Up Arrow and Down Arrow buttons to position the component in the actual palette folder.
To put the mail panel in
a dialog box:
To call the Mail dialog
box from the card file:
You need to be in the card file project; click on the card file project in the project manager.
The default Filter type, Event Filter, is used. There is no need to set the Filter.
public boolean handleMessage(Message msg);
Add code that closes the dialog box:
public boolean handleMessage(Message msg) { if (msg.name.equals("Send") || msg.name.equals("Cancel")) { gui.mailDialog.set("visible", Boolean.FALSE); return true; } else return super.handleMessage(msg); }
See also: