i have one choicebox in javafx contains 3 items let A B and C so on change of selection of this item i want to perform certain task so how can i handle this events?

 final ChoiceBox cmbx=new ChoiceBox();
    try {
        while(rs.next())
         {
            cmbx.getItems().add(rs.getString(2));

          }
         } 
        catch (SQLException e) 
           {
        // TODO Auto-generated catch block
        e.printStackTrace();
        }

im adding items to choicebox from database... now i want to know how to handle the events of choicebox in javafx

Edit
Report