Hi
I am after some advice. I have a class that extends JFrame and also implements runnable.
Basically it is a frame which has a JLabel used for progress message and an OK JButton.
It also performs some command line tasks using the Runtime.exec() command which is why it implements runnable.
This is a module which is set up and called from another Java program using:
Thread t1 = new Thread(new ClassName()); t1.start();
Now, for the JFrame e.g. setSize() and setLayout() etc, do these go in the Run() method or in the Constructer?
Should everything to do with the JFrame e.g. adding JLabel and JButton go in the constructer and the Runtime.exec() go in the Run() method?
Just a bit confused where I could be putting what code?