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
Type: Posts; User: hexwind
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...