• 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

Cannot Make second card panel to show

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ive been looking at this for the alst hour and i cant seem to find out what is wrong, it all looks right to me.

there is a levpanel that is suppose to show up second, but it doesnt, any ideas?

 
Ranch Hand
Posts: 1923
Scala Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes.
It's generally bad style, to post 434 lines of code.
If it's absolut necessary, you should at least mark the interesting lines.

// ---------------- here something goes wrong ----------------

And you should compile it, to avoid:


which should be:


When asking, you should strip off every code, which might be omitted, to produce the error, and only post that.
Often you will find the error yourself by reducing the code like that.

I don't know where the problem is, because I don't have the time to read 434 lines of code, but often panels aren't shown, because no LayoutManager is specified, and therefore only one Panel is added successfully.

- mhm. Found your Layoutmanager and levpanel.

Last advice: Search for the most appropriate section to post to: Swing/ AWT/ ... in this case.
 
reply
    Bookmark Topic Watch Topic
  • New Topic