Paul Clapham wrote:Is that GridBagLayout applied to a JPanel which is inside the JFrame, and you want that space outside the JPanel? In that case a custom border for the panel might be the way to go. Or perhaps modify the Insets for the panel?
GridBagLayout is applied to a JPanel which is inside the JFrame, yes. I want the space that is not outside the JPanel (this would be between the JPanel and the JFrame, which I have using a border like you mentioned), but the space that is just inside the JPanel on the outside. Does that make sense?
If you know HTML/CSS, the best way to phrase it is by using the box model as an example. I am using a mock "margin" by using a border on the JPanel, but how do I create a "padding" for the Panel itself?
Also Rob, the SSCCE link is great, thank you. I didn't know the protocol on all of that. When I meant a picture, though, it is simply meant to show the space I am looking to expand, but I understand when code is necessary.
Also, I've looked at the border examples and they help, and I have used the borders as mentioned above.
Thanks for the help so far guys!