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?
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL