How to use the Swing check box control on a form.
You can run this technique code from:
NOTE First make sure that database is running on your localhost SilverStream Server | |
See the chapter on the Form Designer in the Tools Guide |
The following code uses the getState() method to determine the boolean state of the check box control chkUSCitizen. It then uses setText() to place a value in a text label lblCheckBoxState accordingly.
private void handle_chkUSCitizen_valueChanged(AgoPropertyChangeEvent evt) { if (chkUSCitizen.getState()) lblCheckBoxState.setText("State = True"); else lblCheckBoxState.setText("State = False"); }