This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes filling the entire area Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "filling the entire area" Watch "filling the entire area" New topic
Author

filling the entire area

Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

Hi Ranchers!

I will describe my problem now.
I have JTable and JPanel which is set in the JFrame. I want JTable fills the entire area of the JFrame and it should expand and shrink with JFrame/JPanel. When I use BorderLayout of JFrame and FlowLayout of JPanel it does not work and the JTable is in the centre.

Could You suggest what kind of LayoutManager I should use?


SCJP6, SCWCD5, OCE:EJBD6.
BLOG: http://leakfromjavaheap.blogspot.com
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

Take your pick

And a JTable would normally be displayed in a JScrollPane, which you haven't mentioned, so you may want to go through the tutorial linked from the JTable API.


luck, db
There are no new questions, but there may be new answers.
 
wood burning stoves
 
subject: filling the entire area
 
Similar Threads
JTable
jtable
JTable
JTable
jtable not refreshing