Search:

Type: Posts; User: altisw5

Search: Search took 0.09 seconds.

  1. Replies
    15
    Views
    5,004

    Re: Show files name in JFrame

    Thanks guys.
    I got it right at the end.
    My ReadDirectory Class

    import java.awt.*;
    import javax.swing.*;

    public class ReadDirectory extends JPanel{
    String s;
    public...
  2. Replies
    15
    Views
    5,004

    Re: Show files name in JFrame

    Why do you create an empty ReadDirectory in the ReadDirectory(String) constructor? You should be painting that supplied String.
    I have this "idea" that paint() is been called from constructor with...
  3. Replies
    15
    Views
    5,004

    Re: Show files name in JFrame

    Thanks for pointing to the right direction.
    Actually I now got an:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: String is null
    at...
  4. Replies
    15
    Views
    5,004

    Re: Show files name in JFrame

    Looks like I forgotten to change the String f on the Start class; instead of private String f; is static String f;.
    Also I WANT to create multiple JFrames...maybe haven't explain clearly what I...
  5. Replies
    15
    Views
    5,004

    Show files name in JFrame

    Hi, and happy new year.
    I have this problem with my java learning.
    I want to create a GUI application which will read files on a directory and display they're names in the JFrame title and in a...
Results 1 to 5 of 5