aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JList in Swing App not Showing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JList in Swing App not Showing" Watch "JList in Swing App not Showing" New topic
Author

JList in Swing App not Showing

Dwayne Brown
Greenhorn

Joined: Jan 16, 2012
Posts: 13
Hello Community,

I have a swing app that I created and my JList is not showing when I run the application. I am using absolute layout so I can set the bounds. What am I missing?



My panel has been added to the JFrame and my application runs fine. This panel is also located in the JTabbed pane. Any help would be greatly appreciated.

-Thanks in Advance!
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
a height of -252?
Dwayne Brown
Greenhorn

Joined: Jan 16, 2012
Posts: 13
Resolved...Can't beleive I had that typo. Thanks!
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10248
    
    8

Unless you were experimenting or have some compelling reason for using null layout with explicit bounds, I would strongly recommend using a proper layout manager.
More on layouts here


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Dwayne Brown
Greenhorn

Joined: Jan 16, 2012
Posts: 13
The reason I am using setBounds is because I am having issues with the layout managers. The layout managers use predefined placements so customization of some components seems to not be possible. I know I will need more training on layouts and Java as a whole but the good thing is I can build useful working apps. Do you know of any quality Java training videos for free or of charge? I am looking for quality ones like the ones found for learnvisualstudio.net.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JList in Swing App not Showing