Skip to main content

stretch: JTabbedPane title w/ button

6 replies [Last post]
Anonymous

Hey -

Appologies as this query quite likly stretches the intent of this list.
That said, here goes ... any ideas on how best to implement a swag little
JTabbedPane with tab titles that include a button? NB4b includes such a
widget ... and I'm trolling through the src at present.

Much appreciated,

- james

--
James Todd :: blogs.sun.com/gonzo

Java == platform independence
XML == application independence
JXTA == network independence

Secure End-to-End Computing

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Amy Fowler

James Todd wrote:

> A bit more clarification. I'm looking to implement what looks to be
> miniscule
> button (eg "x") on the tab of a JTabbedPane that upon selection fires
> some logic,
> eg tab removal.

We have talked about implementing just such a JXTabbedPane extension
in JDNC, but it hasn't been a high priority to date. Please file an
enhancement request and we'll look at in the grand scheme of things.
(I realize this doesn't help you in the immediate future)

Aim

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

James Todd

Will do. Knowing it is (potentially) in the queue is good enough at
present.

thx,

- jams

James Todd :: blogs.sun.com/gonzo

Java == platform independence
XML == application independence
JXTA == network independence

Secure End-to-End Computing

Amy Fowler wrote:
> James Todd wrote:
>
>> A bit more clarification. I'm looking to implement what looks to be
>> miniscule
>> button (eg "x") on the tab of a JTabbedPane that upon selection fires
>> some logic,
>> eg tab removal.
>
>
> We have talked about implementing just such a JXTabbedPane extension
> in JDNC, but it hasn't been a high priority to date. Please file an
> enhancement request and we'll look at in the grand scheme of things.
> (I realize this doesn't help you in the immediate future)
>
> Aim
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
> For additional commands, e-mail: jdnc-help@jdnc.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

gphilipp
Offline
Joined: 2003-06-10
Points: 0

Actually, the Netbeans team has made the "tab control" available. You can easily find it in the netbeans binary distribution. The API is here : http://www.netbeans.org/download/dev/javadoc/#def-api-Tab%20control

Gilles Philippart

James Todd

Thx all.

- james

James Todd :: blogs.sun.com/gonzo

Java == platform independence
XML == application independence
JXTA == network independence

Secure End-to-End Computing

jdnc-interest@javadesktop.org wrote:
> Actually, the Netbeans team has made the "tab control" available. You can easily find it in the netbeans binary distribution. The API is here : http://www.netbeans.org/download/dev/javadoc/#def-api-Tab%20control
>
> Gilles Philippart
> ---
> [Message sent by forum member 'gphilipp' (Gilles Philippart)]
>
> http://www.javadesktop.org/forums/thread.jspa?messageID=33795&#33795
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
> For additional commands, e-mail: jdnc-help@jdnc.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

James Todd

A bit more clarification. I'm looking to implement what looks to be miniscule
button (eg "x") on the tab of a JTabbedPane that upon selection fires some logic,
eg tab removal.

I'm not sure if an actual button is addeded to the title or if it is simply a
mouse listener.

Any/all ideas appreciated,

- james

James Todd :: blogs.sun.com/gonzo

Java == platform independence
XML == application independence
JXTA == network independence

Secure End-to-End Computing

James Todd wrote:
>
> Hey -
>
> Appologies as this query quite likly stretches the intent of this list.
> That said, here goes ... any ideas on how best to implement a swag
> little
> JTabbedPane with tab titles that include a button? NB4b includes such a
> widget ... and I'm trolling through the src at present.
>
> Much appreciated,
>
> - james
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

Scott Violet

James,

JTabbedPane currently does not use use individual components for the
tabs, making implementing something like you are after tricky (you'll
have to provide your own UI). If we have time, we are going to try
and add the ability to JTabbedPane for the tabs to be components.

-Scott

On Sat, Oct 16, 2004 at 03:06:47AM -0700, James Todd wrote:
> A bit more clarification. I'm looking to implement what looks to be
> miniscule
> button (eg "x") on the tab of a JTabbedPane that upon selection fires some
> logic,
> eg tab removal.
>
> I'm not sure if an actual button is addeded to the title or if it is simply
> a
> mouse listener.
>
> Any/all ideas appreciated,
>
> - james
>
> James Todd :: blogs.sun.com/gonzo
>
> Java == platform independence
> XML == application independence
> JXTA == network independence
>
> Secure End-to-End Computing
>
>
> James Todd wrote:
> >
> >Hey -
> >
> > Appologies as this query quite likly stretches the intent of this list.
> > That said, here goes ... any ideas on how best to implement a swag
> >little
> > JTabbedPane with tab titles that include a button? NB4b includes such a
> > widget ... and I'm trolling through the src at present.
> >
> > Much appreciated,
> >
> >- james
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
> For additional commands, e-mail: jdnc-help@jdnc.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net