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

Please select: Discussion Question Answer
Pulse Check - enter num: 1062710721

Your Name:

E-Mail Address:

Subject:

Message:


If you'd like to include a link to another page with your message,
please provide both the URL address and the title of the page:

Optional Link URL:

Optional Link Title:


If you'd like to have the option of deleting your post later,
please provide a password (CASE SENSITIVE!):

Password:



Password:

The TeamJava Forum is maintained with WebBBS 2.24.


TeamJavaHome | Ind. Registry | Co. Registry | Java Links
Jobs Listings Forum | TeamJava Books | Java FAQ Archives

AWN

Copyright © 1995-2003 Active Web Networks, all rights reserved.
(Note: We share no direct association with Sun Microsystems, Inc.)