File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Panel display Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply locked New topic

Panel display

celine mcgowan
Ranch Hand

Joined: Nov 22, 2003
Posts: 36
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,

We've heard that a million monkeys at a million keyboards would eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true.<br />- Robert Wilensky
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Closing this since Dirk moved a duplicate with some responses here.

GenRocket - Experts at Building Test Data
I agree. Here's the link:
subject: Panel display
jQuery in Action, 3rd edition