swing tabbed pane & layout manager [message #102995] |
Sun, 21 August 2005 10:04  |
Eclipse User |
|
|
|
HI. Is there a way to add a layout manager to a tabbed pane in VE?
When i add components, each component takes the whole place, i can't add
several components.
Regards,
Gaetan.
|
|
|
|
Re: swing tabbed pane & layout manager [message #103027 is a reply to message #103015] |
Sun, 21 August 2005 11:27  |
Eclipse User |
|
|
|
Originally posted by: myersj.nospam.gmail.com
Gaetan,
A JTabbedPane only accepts one child component on each tab. So what
you'll have to do is drop a JPanel onto the tab, then set the layout on
the JPanel to whatever you want, then place the multiple components on
the JPanel.
- Jeff
QUENTIN Gaétan wrote:
>>HI. Is there a way to add a layout manager to a tabbed pane in VE?
>>
>>When i add components, each component takes the whole place, i can't add
>>several components.
>>
>>Regards,
>>
>>Gaetan.
>
>
|
|
|
Re: swing tabbed pane & layout manager [message #610347 is a reply to message #102995] |
Sun, 21 August 2005 10:28  |
Eclipse User |
|
|
|
QUENTIN Gaétan wrote:
Environment:
Eclipse 3.1, VE 1.1.0, jdk 1.5.0_04 , Linux 2.6.12rc4
> HI. Is there a way to add a layout manager to a tabbed pane in VE?
>
> When i add components, each component takes the whole place, i can't add
> several components.
>
> Regards,
>
> Gaetan.
|
|
|
Re: swing tabbed pane & layout manager [message #610348 is a reply to message #103015] |
Sun, 21 August 2005 11:27  |
Eclipse User |
|
|
|
Gaetan,
A JTabbedPane only accepts one child component on each tab. So what
you'll have to do is drop a JPanel onto the tab, then set the layout on
the JPanel to whatever you want, then place the multiple components on
the JPanel.
- Jeff
QUENTIN Gaétan wrote:
>>HI. Is there a way to add a layout manager to a tabbed pane in VE?
>>
>>When i add components, each component takes the whole place, i can't add
>>several components.
>>
>>Regards,
>>
>>Gaetan.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04394 seconds