Search:

Type: Posts; User: hexwind

Page 1 of 2 1 2

Search: Search took 0.31 seconds.

  1. Replies
    13
    Views
    1,109

    Re: Open location from JList

    Cheers ! :)
  2. Replies
    13
    Views
    1,109

    Re: Open location from JList

    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 ;)
  3. Replies
    13
    Views
    1,109

    Re: Open location from JList

    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 =...
  4. Replies
    13
    Views
    1,109

    Re: Open location from JList

    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
  5. Replies
    13
    Views
    1,109

    Re: Open location from JList

    Exactly (sorry English ain't my native language lol)
  6. Replies
    13
    Views
    1,109

    Re: Open location from JList

    This.
    I want to open a file browser. just like going on Start>My Documents for example. know what I mean?
  7. Replies
    13
    Views
    1,109

    Open location from JList

    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...
  8. Replies
    33
    Views
    1,091

    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
  9. Replies
    33
    Views
    1,091

    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 =...
  10. Replies
    33
    Views
    1,091

    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...
  11. Replies
    33
    Views
    1,091

    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 ;)
  12. Replies
    33
    Views
    1,091

    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...
  13. Replies
    33
    Views
    1,091

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

    //...
  14. Replies
    33
    Views
    1,091

    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...
  15. Replies
    33
    Views
    1,091

    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{
  16. Replies
    33
    Views
    1,091

    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;
  17. Replies
    33
    Views
    1,091

    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{
  18. Replies
    33
    Views
    1,091

    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[]...
  19. Replies
    33
    Views
    1,091

    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 :)
  20. Replies
    33
    Views
    1,091

    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.
  21. Replies
    33
    Views
    1,091

    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...
  22. Replies
    33
    Views
    1,091

    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...
  23. Replies
    33
    Views
    1,091

    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...
  24. Replies
    6
    Views
    1,866

    Re: Net Beans OR Eclipse

    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...
  25. Replies
    3
    Views
    652

    Re: Do I HAVE to learn Generics?

    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 :)
Results 1 to 25 of 48
Page 1 of 2 1 2