Or in your code Start.f gets called when the JPanel is painted. But is not initialized because of ReadDirectory().
Type: Posts; User: BlueSuicidal
Or in your code Start.f gets called when the JPanel is painted. But is not initialized because of ReadDirectory().
Hi again,
I have looked at the code.
The paint method is called:
In your program the m_string has not been initialized when you call your constructor ReadDirectory() { from...
It counts the directories in the listofFiles also. not only the files
check the output lke this:
System.out.println(listOfFiles[i].toString());
Hi
Looked again it just works like this:
package filenameresource2;
//class ReadDirectory
import java.awt.*;
import javax.swing.*;
Hi,
The code you entered makes 2 frames. This isn't working yet.
I have picked some code from the internet. You should be able to print directories in the console by using the link and the...
Sorry Brandon95 KeyDown is depricated. You should make a KeyListener.
How to Write a Key Listener (The Java™ Tutorials > Creating a GUI With JFC/Swing > Writing Event Listeners)
import...
Hi,
I think you should implement the Keydown method of the applet's component class.
I googled:
Small Game With KeyListener - Java | Dream.In.Code
public boolean keyDown (Event e, int...
import java.awt.event.WindowEvent;
import javax.swing.SwingUtilities;
/**
*
* @author Gebruiker
*/
public class JMenuPanel extends javax.swing.JPanel {
/** Creates new form...
I am trying to program a GUI for my own print preview dailog. The Frame just opens a dialog and passes a Image object to it.
public class JPrintPreviewDialog extends JDialog{
public...