How do I write an event listener that displays an image when I click the upload button?
so far i have
jButton1 = new javax.swing.JButton();
jButton1.setText("Upload");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
and then
//the LOAD button for loading the file
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
}
but I do not know what to write in the LOAD button section?