|
Re: Cound not find support for TabPane [message #10116 is a reply to message #10093] |
Thu, 11 December 2003 12:13  |
Eclipse User |
|
|
|
There is plenty of support for JTabbedPane. You can drop it into a container
just like other containers. Then drop JPanel's (or other Containers) onto it
and it will create a page for each one. Once you drop something onto the
JTabbedPane you can set some special properties in the Properties viewer.
Properties such as the tab title, icon, and tooltiptext that are used in the
parameters for the code generation for the JTabbedPane.addTab method:
addTab(String title, Icon icon, Component component, String tip)
You can also use the Beans viewer to drop components and select them to
switch to each page... or you can use the context menu on the JTabbedPane to
show a "Switch To..." popup. This will show a list of the pages to select
in order to switch to each. You cannot select the actual tab since Swing
does not give an actual selection point for selecting the tabs in design
time.
Currently the VE doesn't model it if you use the standard add(Component)
method... only the above method is supported for now
Regards...
Peter Walker
"Alex" <nospam@nospam.org> wrote in message news:bra5m0$mhp$1@eclipse.org...
> Did I miss anything?
>
>
|
|
|
Re: Cound not find support for TabPane [message #573924 is a reply to message #10093] |
Thu, 11 December 2003 12:13  |
Eclipse User |
|
|
|
There is plenty of support for JTabbedPane. You can drop it into a container
just like other containers. Then drop JPanel's (or other Containers) onto it
and it will create a page for each one. Once you drop something onto the
JTabbedPane you can set some special properties in the Properties viewer.
Properties such as the tab title, icon, and tooltiptext that are used in the
parameters for the code generation for the JTabbedPane.addTab method:
addTab(String title, Icon icon, Component component, String tip)
You can also use the Beans viewer to drop components and select them to
switch to each page... or you can use the context menu on the JTabbedPane to
show a "Switch To..." popup. This will show a list of the pages to select
in order to switch to each. You cannot select the actual tab since Swing
does not give an actual selection point for selecting the tabs in design
time.
Currently the VE doesn't model it if you use the standard add(Component)
method... only the above method is supported for now
Regards...
Peter Walker
"Alex" <nospam@nospam.org> wrote in message news:bra5m0$mhp$1@eclipse.org...
> Did I miss anything?
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.07339 seconds