Results 1 to 3 of 3
- 06-24-2011, 12:21 PM #1
Member
- Join Date
- Apr 2011
- Posts
- 12
- Rep Power
- 0
Question about resizing / packing JTable in JDialog.
Dear,
I programmed a JDialog with the BorderLayout.
In the CENTER, I placed a JTable, and in the SOUTH, I placed a panel with buttons. When the JDialog is being made, the JTable is being filled by files of a specific directory.
So, when the JDialog is showing up, you can see a list of files, but the problem is that the JDialog is not repacking / resizing itself to the size of the number of rows in the JTable and the width of the JTable. The JDialog is too big.
Now, I would like to know I can see repack / resize this JDialog to the JTable with contents.
What is the Java source code for doing that?
Thank you for your answer in advance.
- 06-24-2011, 12:53 PM #2
To get better help sooner, post a SSCCE that clearly demonstrates your problem.
Don't forget to surround your code with the code tags so it retains its formatting.
db
- 06-24-2011, 07:07 PM #3
Member
- Join Date
- May 2011
- Posts
- 56
- Rep Power
- 0
Similar Threads
-
JFrame resizing question
By mellowcandle in forum AWT / SwingReplies: 2Last Post: 04-13-2011, 01:48 PM -
Packing an Application
By Lingerz in forum New To JavaReplies: 5Last Post: 08-26-2010, 02:08 AM -
packing java project
By silversurfer2in in forum New To JavaReplies: 12Last Post: 06-09-2010, 08:58 AM -
Problem in resizing JTable in netbeans
By shahid0627 in forum NetBeansReplies: 1Last Post: 09-07-2009, 06:33 PM -
Packing vars
By Supamagier in forum Advanced JavaReplies: 6Last Post: 09-20-2008, 12:26 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks