Re: tag suggestion
masukomi <[email protected]>
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Message-ID | <[email protected]> |
No... because I doubt that would work (a label in a component won't become a tab title) but it made me realize that if the contents would be added to the JTabbedPane by calling add(Component) (which I they would right?) then you could probably use <panel name="this will be the tab title"> because JTabbedPane.add(Component) calls Component.getName() and uses that for the title. So hooray for an engine that's too simple to screw things up. I'll try that out as soon as I get a chance. -Kate (masukomi) http://www.masukomi.org http://weblog.masukomi.org On Mar 11, 2004, at 10:47 PM, Wolf Paulus wrote: > Have you tried something like this: > > <tabbedpane id="tp_toolbarpane" TabPlacement="TOP" > Titles="Common,Text,Windows" > TabLayoutPolicy="JTabbedPane.SCROLL_TAB_LAYOUT" Focusable="false" > Font="PLAIN-10"> > <panel> > <label>1</label> > </panel> > <panel> > <label>2</label> > </panel> > <panel> > <label>3</label> > </panel> > </tabbedpane> > > > Wolf Paulus > > C a r l s b a d C u b e s > mailto:[email protected] > > CONFIDENTIALITY NOTICE: > This message is intended only for the use of the individual or entity > to which it is addressed, and may contain information that is > privileged, confidential and exempt from disclosure under applicable > law. > If you are not the intended recipient, please contact the sender by > reply email and destroy all copies of the original message. > On Mar 11, 2004, at 6:59 PM, Kate Rhodes wrote: > >> We need a <tab> tag. Why? because right now there's no way to >> actually make a >> tabbed pane with anything in it unless you render seperate xml files >> and shove >> them in the one that holds the tabbed pane, or add them >> manually...but we >> won't speak of such things. >> >> >> >> <tabbedpane> >> <tab title="foo"> >> <some component here /> >> </tab> >> <tab title="not foo"> >> <some component here /> >> </tab> >> </tabbedpane> >> >> >> -Kate >> >> _______________________________________________ >> Forum mailing list >> [email protected] >> http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com > > > _______________________________________________ > Forum mailing list > [email protected] > http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com > >