Search:

Type: Posts; User: Norm

Search: Search took 0.08 seconds.

  1. Replies
    33
    Views
    3,713

    Re: From Console to GUI : problem !!

    Ok, you have the logic to do the search.
    Now You need to rewrite the code so it is called on a thread from the action listener

    Your old method name of search is better than run.
  2. Replies
    33
    Views
    3,713

    Re: From Console to GUI : problem !!

    The version you posted extended Thread. That is the one that needs testing and debugging.

    Or you need to change the code that creates the FileSearch object to do it in a new Thread instead of...
  3. Replies
    33
    Views
    3,713

    Re: From Console to GUI : problem !!

    Try debugging your FileSearch class as a standalone program to be sure it does what you want. Try adding this main() method to your code and adding printlns for all the places where you add Strings...
  4. Replies
    33
    Views
    3,713

    Re: From Console to GUI : problem !!

    Can you explain what it does do?
    Does the run method get executed?

    Can you post ALL of your current code?
  5. Replies
    33
    Views
    3,713

    Re: From Console to GUI : problem !!

    Learned something new today. Never thought about when a static block is called relative to the calling of the constructor or the main method.
    A note in your code could help a newbie understand what...
  6. Replies
    33
    Views
    3,713

    Re: From Console to GUI : problem !!

    There are classes that will "layout" the components in a container called layout managers.
    Read the tutorial about the different choices and how to use them.
    Go to this site and Find Layout
    The...
Results 1 to 6 of 6