*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.imageio.*;
public NewClass() {
super("Membaca Sandi pesan Steganogrphi dalam Gambar ");
assembleInterface();
this.setSize(500, 500);
this.setLocationRelativeTo(null);
this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
// this.setBounds(GraphicsEnvironment.getLocalGraphicsEnvironment().
// getMaximumWindowBounds());
this.setVisible(true);
}
imagePane.setBorder(BorderFactory.createTitledBorder("Gambar SteganoGraphi"));
this.getContentPane().add(imagePane, BorderLayout.CENTER);
}
public void actionPerformed(ActionEvent ae) {
Object o = ae.getSource();
if(o == open)
openImage();
else if(o == decode)
decodeMessage();
else if(o == reset)
resetInterface();
}
java.io.File f = null;
if(open && fc.showOpenDialog(this) == fc.APPROVE_OPTION)
f = fc.getSelectedFile();
else if(!open && fc.showSaveDialog(this) == fc.APPROVE_OPTION)
f = fc.getSelectedFile();
return f;
}