Win a copy of Learn Spring Security (video course) this week in the Spring forum!
    Bookmark Topic Watch Topic
  • New Topic

Panel display

 
celine mcgowan
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



 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
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.
 
    Bookmark Topic Watch Topic
  • New Topic