views:

97

answers:

1

I am working on a project and part of ask for:

  • add a CheckBox menu item Decrypt which can be checked for decrypt or unchecked for Encrypt. This item should be tied to the toggle button in the GUI. Both should reflect the current status of encrypting/decrypting in the application

which is I not sure how to begin with

+2  A: 

well to start with, have you created a gui with a JCheckbox and a JToggleButton? If so start by getting your gui created, i'm assuming you are using swing??

Then add an action listener to the checkbox and the togglebutton. You can find a tutorial on action listeners here. Then in the action listener you can check the state of the checkbox and togglebutton and adjust as necessary.

Give this a shot, and post here if you run into problems.

broschb