Swing, Java and multithreading, and coloring buttons

后端 未结 1 1106
情书的邮戳
情书的邮戳 2021-01-22 11:56

Yes, this is homework. Yes, I am completely stuck.

Here is the gist. I have created a JFrame. There are 3 panels (top, middle, bottom). In the bottom panel are 3 buttons

相关标签:
1条回答
  • 2021-01-22 12:53

    Without giving away too much, this example illustrates a way to deal with color and buttons that ignore setBackground(). Examples here and here demonstrate how to fade the color. As both rely on a javax.swing.Timer thread, neither is a solution, but the techniques may prove useful.

    0 讨论(0)
提交回复
热议问题