Help me creating GUI with event | SoloLearn: Learn to code for FREE!


Help me creating GUI with event

background color panel as black when the mouse is pressed and white as when the mouse is released

5/18/2020 2:45:33 PM

Alke Mist

2 Answers

New Answer


Hello Alke Mist Which framework are you using? Swing or JavaFX? And which object should get this mouse event?


create a class that implements MouserListener, there Override all abatracts methods.