Problem with SWT - "Bring to front"



Hello

I have question, I generate buttons, using the code bolow

Button but = null;
but = new Button (this,SWT.PUSH);
but.setText("Test="+a);
but.setBounds(new Rectangle(0, 0, 16, 16));
but.setLocation(10, 10);
but.setSize(100, 20);

but when I move this element over another example label, this button
is under the label, how to "bring to front" this button.

Lukasz

.


Quantcast