Using JTree to render JComboBox popup

Discussion in 'Java' started by softwarepearls_com, Nov 18, 2008.

  1. I'm sure I've seen this done before in Swing, but can't seem to find
    some ready-cooked code examples.. how do you have JComboBox use JTree
    to render a tree whose leaves the user can select?
    softwarepearls_com, Nov 18, 2008
    #1
    1. Advertising

  2. softwarepearls_com

    Sigfried Guest

    http://www.jroller.com/santhosh/entry/tree_inside_jcombobox

    the first answer in google jtree jcombobox

    softwarepearls_com a écrit :
    > I'm sure I've seen this done before in Swing, but can't seem to find
    > some ready-cooked code examples.. how do you have JComboBox use JTree
    > to render a tree whose leaves the user can select?
    Sigfried, Nov 19, 2008
    #2
    1. Advertising

  3. On Nov 19, 8:14 am, Sigfried <> wrote:
    > http://www.jroller.com/santhosh/entry/tree_inside_jcombobox
    >
    > the first answer in google jtree jcombobox
    >
    > softwarepearls_com a écrit :
    >
    > > I'm sure I've seen this done before in Swing, but can't seem to find
    > > some ready-cooked code examples.. how do you have JComboBox use JTree
    > > to render a tree whose leaves the user can select?

    >
    >


    That example doesn't preserve JTree's essential feature of letting the
    user collapse/expand branches. Thx for the link anyway.. it's
    interesting
    softwarepearls_com, Nov 19, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lau Lei Cheong

    Page.Render do not render complete page

    Lau Lei Cheong, May 15, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,065
    Lau Lei Cheong
    May 15, 2004
  2. nuria
    Replies:
    0
    Views:
    646
    nuria
    Nov 25, 2003
  3. jumpz
    Replies:
    3
    Views:
    623
    Jean-Baptiste Nizet
    Nov 12, 2007
  4. Glenn Gillen
    Replies:
    0
    Views:
    275
    Glenn Gillen
    Nov 17, 2006
  5. Jens Peter Hansen
    Replies:
    7
    Views:
    523
    Randy Webb
    Jun 19, 2004
Loading...

Share This Page