public class FrameDemoTest {
public static void main(String args []){
FramDemo fd= new FramDemo("we");
fd.setVisible(true);
}
}
*******
package framdemo;
import java.awt.*;
import javax.swing.*;
public class FramDemo extends JFrame {
public FramDemo (String title){
setTitle(title);
setSize(350,350);
}
}***********
How i can make FramDemo & the FrameDemoTest run from the same class?
I tried to create a Panel in the same class with the color Blue,
I am using the Netbeans which use A default gray color, but i couldn't change it