开发者

SWT Text Box,SWT Text Box Border color

开发者 https://www.devze.com 2023-02-20 15:31 出处:网络
How to set the Border color of Text Boxusing 开发者_StackOverflow社区SWT API?You can\'t do that, as far as I know.You can, however, set no border on the text field, create a new Composite where your t

How to set the Border color of Text Box using 开发者_StackOverflow社区SWT API?


You can't do that, as far as I know. You can, however, set no border on the text field, create a new Composite where your text field is now, give it a background color and a fill layout with a 1 px margin, and then put your text field inside it. This gives the effect of a border of whatever color you like.

0

精彩评论

暂无评论...
验证码 换一张
取 消