0

Now I study about GUI (awt&swing) in java. But I don't know how can I make scroll bar. I try to find about that matter but still i don't get it. Could you give me simple explanation and example to create it.

Thank you . I am sorry for my bad English.

4

2 回答 2

3

JavaJScrollPane为这类事情提供了对象。是文档。

是 Oracle 提供的关于如何使用它们的教程。

例子

JTextArea t = new JTextArea("This is some text");
JScrollPane s = new JScrollPane(t);
this.add(s); // Adds the scollpane to the parent container.
于 2013-05-18T10:09:16.223 回答
0

这是摆动滚动条的示例

这是awt 滚动条的示例

于 2013-05-18T10:11:26.930 回答