View Single Post
Old 06-08-2012, 05:30 PM   PM User | #16
jfreak53
Regular Coder

 
jfreak53's Avatar
 
Join Date: May 2004
Location: Guatemala
Posts: 477
Thanks: 19
Thanked 10 Times in 10 Posts
jfreak53 is an unknown quantity at this point
Ok, I got the MySQL error gone, it was still trying localhost woops. But now it still won't get past executing file chooser. I change the function for the excelchoose to add some prompts so I know where it's at:

Code:
private File chooseExcelFile () {
        JOptionPane.showMessageDialog(null, "Part top");
        JFileChooser chooser = new JFileChooser();
        JOptionPane.showMessageDialog(null, "Part 1");
        chooser.setFileFilter(new XLSFilter());
        JOptionPane.showMessageDialog(null, "Part 2");

        int returnVal = chooser.showOpenDialog(this);
        JOptionPane.showMessageDialog(null, "Part 3");
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            JOptionPane.showMessageDialog(null, "Part 4");
            return chooser.getSelectedFile();
        }
        // cancel was clicked
        JOptionPane.showMessageDialog(null, "Part 5");
        return null;
    }
On my local machine, perfect, even with the domain MySQL connection details, works like a charm.

But on the web link I sent you, it won't even print part 1. So what did I break now ha ha
__________________
"FORTRAN is not a language. It's a way of turning a multi-million dollar mainframe, into a $50 programmable scientific calculator."
http://www.microfastcat.com -- FastCat Software, the fastest software on the NET!
http://www.microthosting.com -- Free reseller web hosting, Hosting, VPS, FREE SMALL HOSTING!!!
http://www.microtronix-tech.com -- Web design and programming
jfreak53 is offline   Reply With Quote