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 Things arn't showing up... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Things arn Watch "Things arn New topic

Things arn't showing up...

Atrus Greyor
Ranch Hand

Joined: Mar 07, 2004
Posts: 110
My Menu and my Tabs are not showing up when I run the following code...

What is wrong?

Thanks for any help!
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

The addMenu() class (ugh -- terrible name for a class -- why isn't it a method instead?) carefully constructs a JMenuBar, but doesn't do anything to install it in a JFrame, so it's nowhere to be seen. An addMenu object itself is just a blank JPanel. Likewise, the tabbedPanel class is a blank JPanel; the constructor for tabbedPanel creates a number of JPanels and other Components, but these are never added to the JFrame or to the tabbedPanel object.

[Jess in Action][AskingGoodQuestions]
Atrus Greyor
Ranch Hand

Joined: Mar 07, 2004
Posts: 110
Thanks! That really helped.
I agree. Here's the link:
subject: Things arn't showing up...
It's not a secret anymore!