I have a JPanel with a BoxLayout that has a series of non-editable JTextPanes in it arranged verically.
I add text programatically to each of the JTextPanes.
I need each of these text panes to show all of the text in them when the window is displayed. Currently only a portion of the text is viewable.
I don't want a scrollPane to solve this.
I could set the preferredSize if I could find out what that size would be without displaying the window to the user???
Any ideas on how to force the containing column JPanel to be bigger and force the textpanes to show all of the text??