Question: Hi !! I need help with the Java code of this problem.. Please strictly follow the instructions.. TIA Create a window with 8 buttons (this
Hi !! I need help with the Java code of this problem.. Please strictly follow the instructions.. TIA
Create a window with 8 buttons (this may change, in the future, to 100 buttons so make sure to be able to do that easily) organized in a 4x2 grid. Have the background color (see java class Color) of each button start at some random value (See java class Random). When a button is pressed, it should cause every OTHER button to change background color. The button pressed should not change background color at all. Submit .java file only! Note: If you're buttons don't work on a mac try: Try this... Homework3.Button1.setOpaque(true); Homework3.Button1.setContentAreaFilled(false); Homework3.Button1.setBorderPainted(false)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
