ustify">}
});. addActionListener (new ActionListener () {
@ Overridevoid actionPerformed (ActionEvent e) {{. writeToImage (imageFileChooser.getSelectedFile (), writeTextArea.getText (), key); (imageFileChooser.getSelectedFile ()); (true, readTextPane, readMessageButton, saveReadedDataButton);
} catch (IOException e1) {. out.println ("message was not write");
}
}
});. addActionListener (new ActionListener () {
@ Overridevoid actionPerformed (ActionEvent e) {(checkToRead (imageFileChooser.getSelectedFile ())) {. setText (""); {= StegoMessenger.readFromImage (imageFileChooser.getSelectedFile (), key) ;. setText (new String (data)); (true, readTextPane, saveReadedDataButton);
} catch (IOException e1) {(false, readTextPane, saveReadedDataButton);. setText ("File does not contain message");
}
} else {(false, readTextPane, saveReadedDataButton);. setText ("File does not contain message");
}
}
});. addActionListener (new ActionListener () {
@ Overridevoid actionPerformed (ActionEvent e) {. setIcon (null); (false, closeBmpButton, readTextPane, readMessageButton, writeMessageButton, writeTextArea, saveReadedDataButton);
}
});. addActionListener (new ActionListener () {
@ Overridevoid actionPerformed (ActionEvent e) {status = keyFileChooser.showOpenDialog (null); (status == JFileChooser.APPROVE_OPTION) {keyFile = keyFileChooser.getSelectedFile (); (keyFile! = null) {= new String (readDataFrom (keyFile));. setText (key);
}
}
}
});. addActionListener (new ActionListener () {
@ Overridevoid actionPerformed (ActionEvent e) {status = keyFileChooser.showOpenDialog (null); (status == JFileChooser.APPROVE_OPTION) {msgFile = keyFileChooser.getSelectedFile (); (msgFile! = null) {= readDataFrom (msgFile), (msgFile.getName (). endsWith ("txt")) {. setText (new String (data));
} {. writeToImage (imageFileChooser.getSelectedFile (), new String (data), key); (imageFileChooser.getSelectedFile ()); (true, readTextPane, readMessageButton, saveReadedDataButton);
} catch (IOException e1) {. out.println ("message was not write");
}
}
}
}
});. addActionListener (new ActionListener () {
@ Overridevoid actionPerformed (ActionEvent e) {status = keyFileChooser.showSaveDialog (null), (status == JFileChooser.APPROVE_OPTION) {msgFile = keyFileChooser.getSelectedFile (), (msgF...