aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Images do not display correctly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Images do not display correctly" Watch "Images do not display correctly" New topic
Author

Images do not display correctly

celine mcgowan
Ranch Hand

Joined: Nov 22, 2003
Posts: 36
Hi Everyone,
I'm a bit of a newbie & i'm trying to implement an LED display. I have 4 .gif's to represent the 'bars' of an LED - vertical & horizontal, lit & unlit. I've started by trying to organise the 7 'bars' in a GridLayout , but when i run this code, i just get two of the bars displaying in the window - one Horizontal & one Vertical....

Can anyone tell me where i'm going wrong? I'd really appreciate any help at all.
Thanks a million,
Celine


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
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8902
    
    8

Originally posted by celine mcgowan:



For starters, your GridLayout has one row and two columns. That gives you two slots to display components in.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
celine mcgowan
Ranch Hand

Joined: Nov 22, 2003
Posts: 36
Hi Joe,
Thanks a million for your help. I actually got this by creating two panels with border layouts & making two 'squares' from them. I then made another panel and added the two squares to it, so i have a nice 'figure of eight' pattern on the screen.
Thanks again!
Celine
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Images do not display correctly