Hallo,
wie kann ich eine ScrollBar rechts an eine JTextArea binden. Ich habs so versucht:
funktioniert aber nicht ???:L
...
wie kann ich eine ScrollBar rechts an eine JTextArea binden. Ich habs so versucht:
Java:
JScrollPane scrollPane = new JScrollPane(getStatisticArea());
jContentPane.add(scrollPane, StatisticArea);
Java:
private JTextArea getStatisticArea() {
if (StatisticArea == null) {
StatisticArea = new JTextArea();
StatisticArea.setBounds(new Rectangle(16, 106, 361, 89));
StatisticArea.setEditable(false);
}
funktioniert aber nicht ???:L
...