Cheers ! :)
Type: Posts; User: hexwind
Cheers ! :)
It worked perfectly !
I just wasted my time messing around with "\\" in the path, I thought it wouldn't be accepted while it was. anyways. Thanks a bunch for your help sir ;)
I tried this on a standalone program.
here is my code
import java.io.*;
public class TestRun {
public static void main(String[] args) throws IOException {
Runtime r =...
Great, but how to start it once I double click on an item from my JList? and not only open it, but open it with a particular location
Exactly (sorry English ain't my native language lol)
This.
I want to open a file browser. just like going on Start>My Documents for example. know what I mean?
Hey everyone
I have a JList that contain items (file paths). I want each item in the list to take me to that particular path in my computer.
For example, if i have an item that has "C:\Program...
IT WORKED FINALLY !!!!!!
In the action performed I used
new Thread(mythreadname(args)).start();
Thanks a LOT guys ! a HELL OF A LOT ! :D :D :D
After a walk and talk and fresh air. I came here again, tried it as you suggested and it worked like a charm :
import java.util.*;
import java.io.*;
class Search extends Thread{
File file =...
ok, here is what I tried to do.
-Create an array File[] list in which i put the abstract pathnames (mysearchpath.listFile())
-Loop through the array and see :
* if it's a file and meets our...
Okay, I will take a rest now, I feel saturated haha. Thanks for all your help ! I'll try it ;)
Please try to compile my code.
Problem is, when I call the run() method recursively it didn't work.
I'm seriously getting lost now and feel I became annoying lol!
What should I do? step by step...
tested and it works well :)
import java.util.*;
import java.io.*;
import javax.swing.*;
public class FileSearch extends Thread{
static void run(File[] list, String letype ){
//...
Actually, I wrote the code of FileSearch and run it on console. and then I wanted to create a GUI for it.
So the FileSearch class works perfectly on a console but not with a GUI.
I tried this code...
Here is my FileSearch code :
import java.util.*;
import java.io.*;
import javax.swing.*;
public class FileSearch extends Thread{
Here is my code. Now it doesn't perform the search at all !
import java.util.*;
import java.io.*;
import javax.swing.*;
public class FileSearch extends Thread{
File[] list;
ok, I tried to do as you suggested and as I understood :
import java.util.*;
import java.io.*;
import javax.swing.*;
public class FileSearch extends Thread{
okay mister, I changed my FileSearch class like this
import java.util.*;
import java.io.*;
import javax.swing.*;
public class FileSearch extends Thread{
public FileSearch(File[]...
I think I must learn more about threads, cause I couldn't understand the code or the idea properly !
Thanks for your help though :)
I don't have any idea how to do this. Could you help me please? or suggest any other way to tell the user that the program is not frozen but it's just taking time.
The program finally worked ! It just had to take sometime to search through my hard drive for the files and all and I thought it was frozen :D !
EDIT : I wanted to tell the user that the program...
Sorry if i didn't express myself properly lol.
My problem is, when I run this program, the elements of the GUI are not well arranged. I don't know what is wrong with my code, but I want the elements...
Hello guys, I'm a complete GUI noob, I wrote a piece of code that searches for a given file type in a given location and displays all those files on console. I want to make a GUI for this program...
You could use Window Builder Pro on Eclipse as well.
I personally used to write code on Netbeans and then i switched to Eclipse for no reason.I just wanted to be familiar with another IDE. Now i...
I can get a quick view on generics without reading this chapter whihc is very detailed and continue to other chapters. Thanks a bunch guys :)