| | |
function / methods
![]() |
uh, JFileChooser
My site, random PM's from people I haven't hear from before will be DELETED
"If people are good only because they fear punishment, and hope for reward, then we are a sorry lot indeed.",
"If we knew what it was we were doing, it would not be called research, would it? "-Albert Einstein
"If people are good only because they fear punishment, and hope for reward, then we are a sorry lot indeed.",
"If we knew what it was we were doing, it would not be called research, would it? "-Albert Einstein
does that mean that your problem is solved? 
when a button is presses, i assume you do already know how actionListener works.

when a button is presses, i assume you do already know how actionListener works.
My site, random PM's from people I haven't hear from before will be DELETED
"If people are good only because they fear punishment, and hope for reward, then we are a sorry lot indeed.",
"If we knew what it was we were doing, it would not be called research, would it? "-Albert Einstein
"If people are good only because they fear punishment, and hope for reward, then we are a sorry lot indeed.",
"If we knew what it was we were doing, it would not be called research, would it? "-Albert Einstein
did you read the sun tutorial (my first post, the JFileChooser was a link (as is this one)? it explains the usage quite thoroughly...
a quote almost but not quite 1/4 down the page
a quote almost but not quite 1/4 down the page
•
•
•
•
Originally Posted by Sun Tutorail
java Syntax (Toggle Plain Text)
int returnVal = fc.showOpenDialog(FileChooserDemo.this); if (returnVal == JFileChooser.APPROVE_OPTION) { File file = fc.getSelectedFile(); //This is where a real application would open the file. log.append("Opening: " + file.getName() + "." + newline); } else { log.append("Open command cancelled by user." + newline); }
My site, random PM's from people I haven't hear from before will be DELETED
"If people are good only because they fear punishment, and hope for reward, then we are a sorry lot indeed.",
"If we knew what it was we were doing, it would not be called research, would it? "-Albert Einstein
"If people are good only because they fear punishment, and hope for reward, then we are a sorry lot indeed.",
"If we knew what it was we were doing, it would not be called research, would it? "-Albert Einstein
![]() |
Similar Threads
- Declaring and identifying methods (Java)
- Change form's cursor in a static member function (C)
- Calculating theta of a function (Computer Science)
- Passing a Function, function pointer (C++)
- in need of a function (Java)
- HELP: class static function - compile errors (C++)
- help with significant figure function (C)
- Sorting arrays of pointers with function? (C)
- using(STL)function object (bind2nd) with a user defined function object (C++)
- Is ifs is a member function of ifstream class (C++)
Other Threads in the Java Forum
- Previous Thread: objects in heap why?
- Next Thread: java loop help?!
| Thread Tools | Search this Thread |
-xlint add android api applet application applications array arrays automation bank bi binary blackberry bluetooth chat class client code compile compiler component database development digit eclipse equation error event fractal freeze functiontesting game gameprogramming givemetehcodez graphics gui health html hyper ide idea image infinite input int integer j2me java javame javaprojects jetbrains jni jpanel jtable julia learningresources linux list login loop main map method methods mobile myregfun netbeans newbie nonstatic notdisplaying pearl problem program programming project qt recursion scanner screen scrollbar server set sms sort sorting spamblocker sql sqlserver string superclass swing system text-file thread threads tree variablebinding windows xor





