| | |
how to cheange the color in the background.
![]() |
•
•
•
•
hey
is anyone know how to change background color when you click a button.... please tell me. im creating a applet.. need sup
java Syntax (Toggle Plain Text)
//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)); }
![]() |
Other Threads in the Java Forum
- Previous Thread: sorting with hashmap
- Next Thread: getResourceAsStream vs getResource
| Thread Tools | Search this Thread |
911 actionlistener addressbook android api append applet application array arrays automation binary blackberry block bluetooth character chat class client code component consumer csv database desktop developmenthelp eclipse error fractal ftp game givemetehcodez graphics gui html ide image integer j2me j2seprojects japplet java javaarraylist javac javaee javaprojects jni jpanel julia lego linked linux list loops mac map method methods mobile netbeans newbie number objects online oriented panel printf problem program programming project projects properties recursion replaydirector reporting researchinmotion rotatetext rsa scanner se server set singleton sms sort sql string swing test textfields threads time title tree tutorial-sample ubuntu update windows working





