MCPcopy Create free account
hub / github.com/OSGeo/gdal / actionPerformed

Method actionPerformed

swig/java/apps/GDALtest.java:319–328  ·  view source on GitHub ↗
(ActionEvent arg0)

Source from the content-addressed store, hash-verified

317 }
318
319 public void actionPerformed(ActionEvent arg0) {
320 System.out.println("Loading file chooser...");
321 JFileChooser chooser = new JFileChooser();
322 int result = chooser.showOpenDialog(this);
323 if(result == JFileChooser.APPROVE_OPTION) {
324 /* open the image! */
325 BufferedImage tmpImage = openFile(chooser.getSelectedFile());
326 setImage(tmpImage);
327 }
328 }
329
330 /**
331 * @param args

Callers

nothing calls this directly

Calls 2

openFileMethod · 0.95
setImageMethod · 0.95

Tested by

no test coverage detected