Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Panel display  RSS feed

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi All,

Sorry to post again, but this problem is driving me nuts. I can't figure it out. I have 2 classes (code below); one extends JPanel & creates a panel which arranges gif's into an LED 'figure of 8' configuration. This class has a method updateLED( int ) which allows the user to specify which bars of the LED are on/off etc so they can output characters in LED format. The second class is supposed to create a panel of 8 LED's so that words can be formed on the LED display. But, the LEDPanel code only outputs one of the 8 LED's. Incidentally, it is the last LED that gets displayed. And it displays on the far right of the LEDPanel window suggesting that room is made for the previous 7, but they got lost along the way somewhere. Can anyone tell me what i'm doing wrong? Or is there an easier way to change gifs in a panel based on user input?

Thanks again guys,
Celine



 
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Closing this since Dirk moved a duplicate with some responses here.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!