private String[] getFilenames(String dirPath) {
        if (Globals.initDebug()) {
            showMe.showMe("\nin getFilenames");
        }
        File pathDir = new File(dirPath);
        if (Globals.initDebug()) {
            showMe.showMe("\n\tpathDir=" + pathDir);
        }

        ArrayList<String> list = new ArrayList<String>();
        for (File nextF : pathDir.listFiles()) {
            String fixWindowS = nextF.toString();
            fixWindowS = fixWindowS.substring(fixWindowS.lastIndexOf(File.separatorChar) + 1);
            boolean windowsGlitch = fixWindowS.charAt(0) == '.';
            if (!nextF.isHidden() && !windowsGlitch) {
                if (Globals.initDebug()) {
                    showMe.showMe("\n\tnextFile=" + nextF);
                }

                //System.out.println("nextF = " + nextF);
                String s = nextF.toString();

                int last = s.lastIndexOf(File.separatorChar);
                list.add(s.substring(last + 1));
            } else {
                if (Globals.initDebug()) {
                    showMe.showMe("\n\nfound a hidden file: " + nextF);
                }
            }
        }
        if (Globals.initDebug()) {
            showMe.showMe("\n\ndone making the list");
        }
        String[] returnMe = new String[list.size()];
        int i = 0;
        for (String nextS : list) {
            returnMe[i] = nextS;
            i++;
        }

        return returnMe;
    }