It's not a secret anymore!*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JList in Swing App not Showing" Watch "JList in Swing App not Showing" New topic

JList in Swing App not Showing

Dwayne Brown

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

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

Joined: Jul 26, 2007
Posts: 10167

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

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
I agree. Here's the link:
subject: JList in Swing App not Showing
Similar Threads
I want to increase the Jpanel size so that i can fit a bigger Jlist
problem selecting JList item
Object serialisation & GUI
Problem with ListCellRenderer
Update JList inside JPanel