TeamJava Forum
[ Read Responses | Post a New Response | Return to the Index ]
[ Previous | Next ]
BasicDirectoryModel problems (sorry its posted 2x)
Posted by Nick on Thursday, 12 June 2003, at 5:30 p.m.
I have been looking around for the usage or this. I have read about as much as i can of Sun's near useless info on this particular method. I am getting compile time errors of all sorts of the type:
Opendirectories.java [25:1] cannot resolve symbol
symbol : variable opendir
location: class viewer.Opendirectories
listing = BasicDirectoryModel(opendir2);
^
1 error
Errors compiling Opendirectories.
the source code (truncated because its long and the other parts do function correctly with out the problematic line) is:
public Sting[] OpenAndParse() {
JFileChooser opendir = new JFileChooser();
fileFilter picturefilter = new fileFilter();
opendir.setFileFilter(picturefilter);
Vector listing = new Vector(40,5);
//Problematic line:
listing = BasicDirectoryModel(opendir);
opendir.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
int choicemade = opendir.showOpenDialog(null);
...
//code here parses array stuff, but this is working fine.
...
return parsedir[]
This is about usage of BasicDirectoryModel() method. I know that the usage here is no where close to what it should be used as, but I am at my wits end, and i have been trying all sorts of things. Nill have worked as of yet. Please help me out (E-mail me if possible npotts@ufl.edu)
Responses
Post a New Response
The TeamJava Forum is maintained with WebBBS 2.24.