【发布时间】:2015-11-06 20:59:29
【问题描述】:
如何在Java SWT 应用程序中右对齐复选框?这是我的代码 sn-p:
Button checkFullECR = new Button(scrolledForm.getBody(), SWT.CHECK);
checkFullECR.setAlignment(SWT.RIGHT);
checkFullECR.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
checkFullECR.setText("I need the complete ECR/ECN Process:");
如下所示:
[ ] I need the complete ECR/ECN Process:
我希望它看起来像:
I need the complete ECR/ECN Process: [ ]
【问题讨论】:
标签: java checkbox alignment swt