当前位置: 代码迷 >> Eclipse >> swt开发遇到有关问题
  详细解决方案

swt开发遇到有关问题

热度:32   发布时间:2016-04-23 12:26:09.0
swt开发遇到问题
开发中遇到swt中的button按钮背景色改变不了的问题,怎样才可以改变button按钮的背景色呢,望开发过的朋友给点代码,非常感谢。

------解决方案--------------------
Java code
Button bt = new Button(shell, SWT.PUSH | SWT.LEFT);        bt.setText("swt button");        Color cyanColor = new Color(display, 55, 55, 55);        bt.setBackground(cyanColor);
  相关解决方案