Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Create checkbox
- JCheckBox featuredCB = new JCheckBox();
- topPanel.add(featuredCB);
- //Take the value of it and put it in featuredCheck value
- boolean featuredCheck = featuredCB.isSelected();
- System.out.println(featuredCheck);
- submitBT.addActionListener(new ActionListener()
- {
- public void actionPerformed(ActionEvent event)
- {
- if(event.getSource() == submitBT)
- {
- idContent.setUser(userTF.getText());
- idContent.setMovie(titleTF.getText());
- idContent.setFeatured(featuredCheck);
- idContent.setRating(Integer.parseInt(ratingTF.getText()));
- if(owner.updateReview(isUpdate, idContent))
- {
- // success
- try {
- MovieReviewDSC.add(idContent);
- } catch (Exception e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- else
- {
- // fail
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement