• Post Reply 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Images do not display correctly

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by celine mcgowan:



For starters, your GridLayout has one row and two columns. That gives you two slots to display components in.
 
celine mcgowan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic