home *** CD-ROM | disk | FTP | other *** search
- import com.sun.java.swing.JOptionPane;
- import com.sun.java.swing.preview.JFileChooser;
- import com.sun.java.swing.preview.TypedFile;
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
-
- final class SwingSet$10 implements ActionListener {
- // $FF: synthetic field
- private final SwingSet this$0;
-
- public void actionPerformed(ActionEvent var1) {
- JFileChooser var2 = new JFileChooser();
- int var3 = var2.showDialog(this.this$0);
- if (var3 == 0) {
- TypedFile var4 = var2.getSelectedFile();
- if (var4 != null) {
- JOptionPane.showMessageDialog(this.this$0, "You chose this file: " + var2.getSelectedFile().getName());
- return;
- }
- }
-
- JOptionPane.showMessageDialog(this.this$0, "No file chosen");
- }
-
- // $FF: synthetic method
- SwingSet$10(SwingSet var1) {
- this.this$0 = var1;
- }
- }
-