Home | History | Annotate | Download | only in ui

Lines Matching full:file

5  * you may not use this file except in compliance with the License.
33 import java.io.File;
54 File file = new File(path);
55 BufferedImage img = GraphicsUtilities.loadCompatibleImage(file.toURI().toURL());
56 showImageEditor(img, file.getAbsolutePath());
74 JMenu fileMenu = new JMenu("File");
102 public SwingWorker<?, ?> open(File file) {
103 if (file == null) {
113 return new OpenTask(file);
131 File file = imageEditor.chooseSaveFile();
132 return file != null ? new SaveTask(file) : null;
136 private final File file;
138 SaveTask(File file) {
139 this.file = file;
144 ImageIO.write(imageEditor.getImage(), "PNG", file);
153 private final File file;
155 OpenTask(File file) {
156 this.file = file;
160 return GraphicsUtilities.loadCompatibleImage(file.toURI().toURL());
166 showImageEditor(get(), file.getAbsolutePath());