• Post Reply Bookmark Topic Watch Topic
  • New Topic

Weird phenomenon: buzzing when mouse points to a JLabel with image

 
Sol Mayer-Orn
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's probably going to win me "weirdest post of the month", but I swear it's not some April's Fools joke...
I'd really appreciate it if anyone could offer any hint to what's going on:

I have a JFrame that shows some crude image animation:
There are some JLables. Each JLabel is assigned a thread that continuously changes the label's image (Using IconImage).
The result is like showing several "animated gifs".

Now, believe it or not...: my computer hardware is *buzzing* every time I point the mouse cursor at any of those ("animated") JLabels.
It's a quiet electrical buzz, coming from somewhere inside my computer case.
Buzzing stops when mouse cursor is taken away from the JLabel.

Could anyone please explain what's going on ?
Could it be that my primitive animation is overloading the screen card or the CPU ?
It's a Pentium 4 with windows XP, and it's never given me any trouble with other graphical applications (including games such as "Baldur's Gate").
And the ImageIcons I show in java are not even that large (black & white JPEG images, each one is about 50x50 pixels).

Thanks.
 
Don Blodgett
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure it is not one of your case fans? Many times one of my case fans will start buzzing for some of the simplest graphical changes, such as moving the mouse over a link on a web page but then not do anything when running a game such as Half-Life 2.
 
Brendan Fosberry
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think its your CPU laughing because it likes animations.
 
Sol Mayer-Orn
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for all replies
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!