I am using NET Beans IDE for developing my application in LINUX. I have used synthetica package to generate new look and feel. All is well till now.
Now my next stage is to add colors to buttons when some database status changes.
For example:
In a restaurant i have 2 tables and when 8 people came in to dine and i will create 2 table in my software since the people are unattended i want the buttons to those 2 tables to be green. When the order is processed for any of those tables the button color of the processed table should be changed to orange. When it is under processing it should be flashing color. How to do this in java ? I will take care of database update i just want to know how to change the colors of the buttons and adding flashing technique.
Here is a question and several answers related to flashing a component.
Addendum: You can learn more in the article How to Use Buttons. In particular, you can use
setForeground()to change the color of a button’s text, but the correspondingsetBackground()doesn’t read well on some platforms. Using aBorderis one alternative; a colored panel, shown below, is another.