Discussion:
Swtiching between tabbed panes...
Redefined Horizons
2007-04-09 21:54:59 UTC
Permalink
Is it possible to add tabbed panes in Netbeans GUI in such a way that
you can toggle between the tabs in the design view and preview?

I could add one tabbed pane successfully but had trouble adding
multiple tabbed panes. When I tried to add the second tabbed pane to
an existing tabbed pane the GUI Builder seemed to treat it
independently. I might be missing something obvious.

Thanks for the help.

Scott Huey

P.S. - I'm using the Netbeans 5.5 on Windows XP.
PCM Reddy
2007-04-09 22:01:18 UTC
Permalink
Drag a drop a component on top of tabbed pane
to it creates a new tab for it, for example for a button a single
tabbed pane, for a jCheckBox another tabbed pane etc.
Post by Redefined Horizons
Is it possible to add tabbed panes in Netbeans GUI in such a way that
you can toggle between the tabs in the design view and preview?
I could add one tabbed pane successfully but had trouble adding
multiple tabbed panes. When I tried to add the second tabbed pane to
an existing tabbed pane the GUI Builder seemed to treat it
independently. I might be missing something obvious.
Thanks for the help.
Scott Huey
P.S. - I'm using the Netbeans 5.5 on Windows XP.
Ricardo Palomares
2007-04-10 08:20:05 UTC
Permalink
Post by Redefined Horizons
Is it possible to add tabbed panes in Netbeans GUI in such a way that
you can toggle between the tabs in the design view and preview?
I could add one tabbed pane successfully but had trouble adding
multiple tabbed panes. When I tried to add the second tabbed pane to
an existing tabbed pane the GUI Builder seemed to treat it
independently. I might be missing something obvious.
Drag a drop a component on top of tabbed pane to it creates a new tab
for it, for example for a button a single
tabbed pane, for a jCheckBox another tabbed pane etc.
If you have problems getting this to work, just drop the pane into the
form and the, in the Inspector window, drag it under the TabbedPane
component, putting it next to the other tabs (JPanels) to add a new one.

HTH
Percival Wong
2007-04-10 12:18:43 UTC
Permalink
I was trying to use the tabbed panes today. Was a bit confusing at
first but finally figured it out.
Drag the jTabbedPane onto your jPanel/jFrame/jDialog/etc. Resize it
until satisfactory.
Drag a jPanel over the jTabbedPane. Let go when you notice that the
whole jTabbedPane area is highlighted. When you do that, a tab will
appear on the top. If you want to add another tab, you drag another
jPanel and only let go when the jTabbedPane area is highlighted again.
Repeat until you get all the tabs you want. Hope it was clear.
Post by Ricardo Palomares
Post by Redefined Horizons
Is it possible to add tabbed panes in Netbeans GUI in such a way that
you can toggle between the tabs in the design view and preview?
I could add one tabbed pane successfully but had trouble adding
multiple tabbed panes. When I tried to add the second tabbed pane to
an existing tabbed pane the GUI Builder seemed to treat it
independently. I might be missing something obvious.
Drag a drop a component on top of tabbed pane to it creates a new tab
for it, for example for a button a single
tabbed pane, for a jCheckBox another tabbed pane etc.
If you have problems getting this to work, just drop the pane into the
form and the, in the Inspector window, drag it under the TabbedPane
component, putting it next to the other tabs (JPanels) to add a new one.
HTH
Sean Arney
2007-04-09 22:14:44 UTC
Permalink
I have a tabbed panel with a few tabs and it works great, then I have a few
components on a Jpanel (text, picture, labels) I want to instantiate one or
more of those Jpanels as needed which I can do just fine, but they don't
redraw when they need to...Im sure this is something trivial but I cant seem
to find the place to do it.

Can anyone point me in the right direction?

Thx,

-sean
Loading...