Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ActionListener toggle = new ActionListener(){
- public void actionPerformed(ActionEvent e){
- if(button.isSelected()){
- final clearTextInput.setEnabled(false);
- final IOText.setEnabled(true);
- }
- else{
- final clearTextInput.setEnabled(true);
- final IOText.setEnabled(false);
- }
- }
- };
- JToggleButton button = new JToggleButton("Decrypt");
- button.addActionListener(toggle);
- content.add(button);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement