This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I want to place JTable in scrollPane to JPanel with BorderLayout.CENTER. What happens is, that the table in my panel component uses only some 50% of the space and is located on the center. What I would like, is that it would use 100% of the size. Another thing is, that I start my app in maximized window, when I minimize it, I would like that scrollPane would take over and make scrollers and not end up "out of frame bounds" of the frame.
I have tried several ways and read lot of "JTable JScrolPane" topics here, but I have not found the answer.
Here is the code to set up the panel:
And later the JPanel gets added to another JPanel into BorderLayout.CENTER.