hey
is anyone know how to change background color when you click a button.... please tell me. im creating a applet.. need sup
hey
is anyone know how to change background color when you click a button.... please tell me. im creating a applet.. need sup
Within applet context...
//assuming Applet context
// assuming button has the listener registered with this overridden method--
public void actionPerformed(ActionEvent e){
getContentPane().setBackground(new Color(200, 100, 50));
}
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.