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