aspose file tools*
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
Author

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
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

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.
 
 
subject: Things arn't showing up...