File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Cannot Make second card panel to show Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Cannot Make second card panel to show" Watch "Cannot Make second card panel to show" New topic

Cannot Make second card panel to show

Jeffrey Chu

Joined: May 01, 2005
Posts: 10
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?

I'm sorry if i break any rules, im new, please bear with me while I learn the rules.
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

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.
I agree. Here's the link:
subject: Cannot Make second card panel to show
It's not a secret anymore!