jeudi 13 août 2015

How do I right align the check box in my Java SWT application

How do I right align the check box in my Java SWT application ? Here is my code snippet:

    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:");

It looks like the following:

[ ] I need the complete ECR/ECN Process:

I want it to look like:

I need the complete ECR/ECN Process:       [ ]




Aucun commentaire:

Enregistrer un commentaire