Button display twice in VE [message #128812] |
Thu, 13 July 2006 15:35  |
Eclipse User |
|
|
|
I have this class as following. VE displays the button twice. One is
inside the
Composite, the other one is outside the Composite area. Does anyone have
any idea why that is? Thanks.
public class Test extends Composite {
private Button button = null;
public Test(Composite parent, int style) {
super(parent, style);
initialize();
}
private void initialize() {
setSize(new Point(300, 200));
}
public void render()
{
button = new Button(this, SWT.NONE);
}
}
|
|
|
Re: Button display twice in VE [message #128825 is a reply to message #128812] |
Thu, 13 July 2006 18:04  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
That is not a style VE understands. You will need to change to:
> public class Test extends Composite {
>
> private Button button = null;
>
> public Test(Composite parent, int style) {
> super(parent, style);
> initialize();
> }
>
> private void initialize() {
button = new Button(this, SWT.NONE);
> setSize(new Point(300, 200));
> }
>
>
> }
Hung Lam wrote:
--
Thanks,
Rich Kulp
|
|
|
Re: Button display twice in VE [message #613547 is a reply to message #128812] |
Thu, 13 July 2006 18:04  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
That is not a style VE understands. You will need to change to:
> public class Test extends Composite {
>
> private Button button = null;
>
> public Test(Composite parent, int style) {
> super(parent, style);
> initialize();
> }
>
> private void initialize() {
button = new Button(this, SWT.NONE);
> setSize(new Point(300, 200));
> }
>
>
> }
Hung Lam wrote:
--
Thanks,
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.09423 seconds