draw outline border on Text component

后端 未结 1 1664
青春惊慌失措
青春惊慌失措 2021-01-14 09:39

I\'m trying to draw a border over a Text in SWT...
This is what I got for now:

public class BorderedText extends Text {

public Borde         


        
1条回答
  •  隐瞒了意图╮
    2021-01-14 10:35

    You have two possibilities:

    1. You can create a new Text widget with SWT.BORDER as a style argument. This would give you a nice looking border.

    2. You can use the StyledText widget. The StyledText widget enables you to define margins.

    0 讨论(0)
提交回复
热议问题