soz bout all this posting :S
i know this is a really n00b question but how do i add a black background to this prog?
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class CMP extends JFrame {
public void myframe() {
JFrame frm = new JFrame();
frm.setBounds(0,0,800,400);
frm.setVisible(true);
frm.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
}
public static void main(String[] args) {
CMP pt = new CMP();
pt.myframe();
}
}