Updating Windows/Buttons (LIVE)
I'm looking for some code examples that show how I can update a bunch of icons and turn them green/red based on some outside variables (that will keep changing)
Let's say that we have 3 boxes or 3 green icons.
I have another program that will be monitoring file1.txt, file2.txt and file3.txt. When file2.txt changes to non-zero I would like to change box2/icon2 to red.
Seems simple enough to do but I can't seem to find any examples out there.
Well if it's a button, then use JButton.setIcon()
Do you have an example for a newbie?
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center