@Test public void testGetFileChooser() { System.out.println("getFileChooser"); BrowseAction instance = new BrowseActionEmul(new JTextField()); JFileChooser result = instance.getFileChooser(); assertNotNull(result); }
protected JFileChooser getFileChooser() { JFileChooser ret = new JFileChooser(lastPath); if(isDirectoryBrowse) { ret.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); } return ret; }
BrowseAction implements ActionListener { protected JFileChooser getFileChooser() { JFileChooser ret = new JFileChooser(lastPath); if(isDirectoryBrowse) { ret.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); } return ret; } }
BrowseAction implements ActionListener { protected JFileChooser getFileChooser() { JFileChooser ret = new JFileChooser(lastPath); if(isDirectoryBrowse) { ret.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); } return ret; } BrowseAction(JTextField filename);  BrowseAction(JTextField filename, boolean isDirectoryBrowse); }
BrowseAction implements ActionListener { protected JFileChooser getFileChooser() { JFileChooser ret = new JFileChooser(lastPath); if(isDirectoryBrowse) { ret.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); } return ret; } BrowseAction(JTextField filename);  BrowseAction(JTextField filename, boolean isDirectoryBrowse); @Override void actionPerformed(ActionEvent e); }
BrowseAction implements ActionListener { protected JFileChooser getFileChooser() { JFileChooser ret = new JFileChooser(lastPath); if(isDirectoryBrowse) { ret.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); } return ret; } BrowseAction(JTextField filename);  BrowseAction(JTextField filename, boolean isDirectoryBrowse); @Override void actionPerformed(ActionEvent e);  }