Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Regarding layout of customwidget
Regarding layout of customwidget [message #132068] Mon, 09 October 2006 07:59 Go to next message
Varun Balakrishnan is currently offline Varun BalakrishnanFriend
Messages: 17
Registered: July 2009
Junior Member
Hi,

I have a custom widget extending JPanel. I have created a new layout named
ColumnLayout, and I want to use this layout
with my custom widget. But the components added to my customwidget(extending
JPanel) are not arranging properly.

But when I tried the same thing with a JPanel everything works fine.
Do I need to do something extra in the case of customwidget?

I have an EditPart and ContainmentHandler associated with my customwidget.

Regards,
Varun
Re: Regarding layout of customwidget [message #132094 is a reply to message #132068] Mon, 09 October 2006 11:44 Go to previous message
Varun Balakrishnan is currently offline Varun BalakrishnanFriend
Messages: 17
Registered: July 2009
Junior Member
Hi,
The way I set layout for the customwidget was not correct. I should have
included the code inside the default contructor or initialize() method of my
customwidget. I am facing anohter problem now. I am not able to resize or
move components added to the customwidget(extending JPanel). If the layout
of my customwidget is NULL then I can resize, move the added components.
Please help me.
Regards,
Varun
"Varun" <varun.balakrishnan@nokia.com> wrote in message
news:egcvgo$t6e$1@utils.eclipse.org...
> Hi,
>
> I have a custom widget extending JPanel. I have created a new layout named
> ColumnLayout, and I want to use this layout
> with my custom widget. But the components added to my
> customwidget(extending JPanel) are not arranging properly.
>
> But when I tried the same thing with a JPanel everything works fine.
> Do I need to do something extra in the case of customwidget?
>
> I have an EditPart and ContainmentHandler associated with my customwidget.
>
> Regards,
> Varun
>
>
>
Re: Regarding layout of customwidget [message #614702 is a reply to message #132068] Mon, 09 October 2006 11:44 Go to previous message
Varun Balakrishnan is currently offline Varun BalakrishnanFriend
Messages: 17
Registered: July 2009
Junior Member
Hi,
The way I set layout for the customwidget was not correct. I should have
included the code inside the default contructor or initialize() method of my
customwidget. I am facing anohter problem now. I am not able to resize or
move components added to the customwidget(extending JPanel). If the layout
of my customwidget is NULL then I can resize, move the added components.
Please help me.
Regards,
Varun
"Varun" <varun.balakrishnan@nokia.com> wrote in message
news:egcvgo$t6e$1@utils.eclipse.org...
> Hi,
>
> I have a custom widget extending JPanel. I have created a new layout named
> ColumnLayout, and I want to use this layout
> with my custom widget. But the components added to my
> customwidget(extending JPanel) are not arranging properly.
>
> But when I tried the same thing with a JPanel everything works fine.
> Do I need to do something extra in the case of customwidget?
>
> I have an EditPart and ContainmentHandler associated with my customwidget.
>
> Regards,
> Varun
>
>
>
Previous Topic:Distributing VE-developed standalone SWT application
Next Topic:Distributing VE-developed standalone SWT application
Goto Forum:
  


Current Time: Tue Sep 24 23:55:36 GMT 2024

Powered by FUDForum. Page generated in 0.03156 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top