I have the following line of code:
JSplitPane VPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT,(new class1()),new JScrollPane(new class2()));
I'd like class2 to ONLY have vertical scrolling please? Since my layout falls to bits otherwise. I am using GridBagLayout and it's too late to change the layout now. Is there a method to fix this?
+1 to trashgods comment.
To illustrate this:
UPDATE
I would recommend creating references to your variables/components especially because you might want to modify them dynamically later.