I see how to set the size of a panel like so:
panel.setPreferredSize(new TerminalSize(100,10));
then tell the window to grow with the panel:
window.setHints(Arrays.asList(Window.Hint.FIT_TERMINAL_WINDOW));
The problem comes when I set a terminal size larger than the swingterminal window. The window doesn't grow, but I can manually drag it to the correct size.
I think I must be missing something really basic.
Any ideas?