How do I dynamically resize components according to framesize in a GUI?
Posted on 2007-10-03
I am trying to develop an application that has to create JTables from database queries on the fly. Creating the table is not a problem, but it has been requested that the form be resizable. I have the table set into a JScrollPane. How do I
1). resize the table without resizing the scrollpane?
2). resize the scrollpane to fit the resized frame?
This table shares the form with a lot of other components and I am looking at using either a null layout or a gridbag layout