Java SWT makes label scrollable possible
•
Java
I have a label in a group in SWT. If it contains many lines of text, I want it to scroll vertically Use SWT V_ It doesn't seem that scroll sets the style parameters How can I do this?
Solution
Labels do not support scrolling
You can use a read-only text control that scrolls:
Text text = new Text(parent,SWT.READ_ONLY | SWT.V_SCROLL);
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码