Updating Windows/Buttons (LIVE)


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Updating Windows/Buttons (LIVE)

  1. #1
    Join Date
    Oct 2004
    Posts
    2

    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.

    TIA!



  2. #2
    Join Date
    Mar 2004
    Posts
    635
    Well if it's a button, then use JButton.setIcon()

    Or ImageIcon.setImage()

  3. #3
    Join Date
    Oct 2004
    Posts
    2
    Do you have an example for a newbie?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center