@Test public void testActionPerformed() { System.out.println("actionPerformed"); ActionEvent e = null; BrowseAction instance = new BrowseActionEmul(new JTextField()); }
@Override public void actionPerformed(ActionEvent e) { JFileChooser chooser = getFileChooser(); if (chooser != null) { if(GuiPackage.getInstance() != null) { int returnVal = chooser.showOpenDialog(GuiPackage.getInstance().getMainFrame()); if(returnVal == JFileChooser.APPROVE_OPTION) { control.setText(chooser.getSelectedFile().getPath()); } lastPath = chooser.getCurrentDirectory().getPath(); } } }
BrowseAction implements ActionListener { @Override public void actionPerformed(ActionEvent e) { JFileChooser chooser = getFileChooser(); if (chooser != null) { if(GuiPackage.getInstance() != null) { int returnVal = chooser.showOpenDialog(GuiPackage.getInstance().getMainFrame()); if(returnVal == JFileChooser.APPROVE_OPTION) { control.setText(chooser.getSelectedFile().getPath()); } lastPath = chooser.getCurrentDirectory().getPath(); } } } }
BrowseAction implements ActionListener { @Override public void actionPerformed(ActionEvent e) { JFileChooser chooser = getFileChooser(); if (chooser != null) { if(GuiPackage.getInstance() != null) { int returnVal = chooser.showOpenDialog(GuiPackage.getInstance().getMainFrame()); if(returnVal == JFileChooser.APPROVE_OPTION) { control.setText(chooser.getSelectedFile().getPath()); } lastPath = chooser.getCurrentDirectory().getPath(); } } } BrowseAction(JTextField filename);  BrowseAction(JTextField filename, boolean isDirectoryBrowse); }
BrowseAction implements ActionListener { @Override public void actionPerformed(ActionEvent e) { JFileChooser chooser = getFileChooser(); if (chooser != null) { if(GuiPackage.getInstance() != null) { int returnVal = chooser.showOpenDialog(GuiPackage.getInstance().getMainFrame()); if(returnVal == JFileChooser.APPROVE_OPTION) { control.setText(chooser.getSelectedFile().getPath()); } lastPath = chooser.getCurrentDirectory().getPath(); } } } BrowseAction(JTextField filename);  BrowseAction(JTextField filename, boolean isDirectoryBrowse); @Override void actionPerformed(ActionEvent e); }
BrowseAction implements ActionListener { @Override public void actionPerformed(ActionEvent e) { JFileChooser chooser = getFileChooser(); if (chooser != null) { if(GuiPackage.getInstance() != null) { int returnVal = chooser.showOpenDialog(GuiPackage.getInstance().getMainFrame()); if(returnVal == JFileChooser.APPROVE_OPTION) { control.setText(chooser.getSelectedFile().getPath()); } lastPath = chooser.getCurrentDirectory().getPath(); } } } BrowseAction(JTextField filename);  BrowseAction(JTextField filename, boolean isDirectoryBrowse); @Override void actionPerformed(ActionEvent e);  }