如何在我的Java SWT应用程序中右键对齐复选框?这是我的代码片段:
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:");
Run Code Online (Sandbox Code Playgroud)
它看起来如下:
[ ] I need the complete ECR/ECN Process:
Run Code Online (Sandbox Code Playgroud)
我希望它看起来像:
I need the complete ECR/ECN Process: [ ]
Run Code Online (Sandbox Code Playgroud)