Search:

Type: Posts; User: hexwind

Search: Search took 0.10 seconds.

  1. Replies
    33
    Views
    3,708

    Re: From Console to GUI : problem !!

    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
  2. Replies
    33
    Views
    3,708

    Re: From Console to GUI : problem !!

    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 =...
  3. Replies
    33
    Views
    3,708

    Re: From Console to GUI : problem !!

    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...
  4. Replies
    33
    Views
    3,708

    Re: From Console to GUI : problem !!

    Okay, I will take a rest now, I feel saturated haha. Thanks for all your help ! I'll try it ;)
  5. Replies
    33
    Views
    3,708

    Re: From Console to GUI : problem !!

    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...
  6. Replies
    33
    Views
    3,708

    Re: From Console to GUI : problem !!

    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 ){

    //...
  7. Replies
    33
    Views
    3,708

    Re: From Console to GUI : problem !!

    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...
  8. Replies
    33
    Views
    3,708

    Re: From Console to GUI : problem !!

    Here is my FileSearch code :




    import java.util.*;
    import java.io.*;
    import javax.swing.*;

    public class FileSearch extends Thread{
  9. Replies
    33
    Views
    3,708

    Re: From Console to GUI : problem !!

    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;
  10. Replies
    33
    Views
    3,708

    Re: From Console to GUI : problem !!

    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{
  11. Replies
    33
    Views
    3,708

    Re: From Console to GUI : problem !!

    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[]...
  12. Replies
    33
    Views
    3,708

    Re: From Console to GUI : problem !!

    I think I must learn more about threads, cause I couldn't understand the code or the idea properly !
    Thanks for your help though :)
  13. Replies
    33
    Views
    3,708

    Re: From Console to GUI : problem !!

    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.
  14. Replies
    33
    Views
    3,708

    Re: From Console to GUI : problem !!

    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...
  15. Replies
    33
    Views
    3,708

    Re: From Console to GUI : problem !!

    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...
  16. Replies
    33
    Views
    3,708

    From Console to GUI : problem !!

    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...
Results 1 to 16 of 16