Label text = new Label(shell, SWT.NONE);
text.setText("注:请先对比配置项,再进行更新操作!");
GridData nullLabel5Gridate = new GridData();
nullLabel5Gridate.horizontalAlignment = GridData.FILL;
nullLabel5Gridate.horizontalSpan = 4;
nullLabel5Gridate.grabExcessHorizontalSpace = true;
text.setLayoutData(nullLabel5Gridate);
text.setForeground(text.getDisplay().getSystemColor(SWT.COLOR_RED));
swt 自己设置颜色
最新推荐文章于 2024-05-06 18:26:10 发布