Hi!
I have a JTextArea in a JScrollPane:
If the text gets longer than the defined number of colums and/or rows the scrollpane displays the scrollbars correctly. But I want the scrollbars to be there the whole time, even if they are not needed. Is that possible? How? I can't find anything in the API that sounds like what I am looking for...
Cheers
frag
patrick.metz@epost.de
I have a JTextArea in a JScrollPane:
Code:
private JTextArea taStatus = new JTextArea(20, 100);
private JScrollPane scrollPane = new JScrollPane(taStatus);
.
.
.
this.getContentPane().add(scrollPane, new GridBagConstraints(0,8,9,1,1.0,0.0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(0,20,30,0),1,1));
scrollPane.setVisible(true);
If the text gets longer than the defined number of colums and/or rows the scrollpane displays the scrollbars correctly. But I want the scrollbars to be there the whole time, even if they are not needed. Is that possible? How? I can't find anything in the API that sounds like what I am looking for...
Cheers
frag
patrick.metz@epost.de