The background of the text box in the window is exchanged every second by Java programming

CSDN Q & A 2022-02-13 06:00:52 阅读数:589

background text box window exchanged

111 Fat Dudu Duoduo Duoduo Duoduo 1 Look, look, look, look, look




Take the answer :

The background of the text box is swapped every second , You can simply change one first swing Interface , Then use the thread to change the text box background



Other answers 2:

Use Timer object , Once a second , Then define a variable to make parity judgment, which can realize background exchange .

copyright:author[CSDN Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130600501690.html