Hi Ruth,
  I have missed the link between the myPopup and the functionality we need.
Use the myPopup in myComboPopup for all the methods implemented.
so, the process steps are as follows:

1) Write a Popup class say myPopup that extends JPopupMenu and add the JTree
as component to the popup menu.
2) Similarly, write myComboPopup that implements ComboPopup and use the
myPopup while implementing the methods.
3) write myComboBox class that extends JComboBox

In your mycomboBox class you have to use the myComboPopup in
getComboPopup();

Hope this helps.

regards
kamal-----Original Message-----
From: Kamal [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 03, 2002 3:43 PM
To: [EMAIL PROTECTED]
Subject: RE: Swing digest, Vol 1 #329 - 1 msg


Hi Ruth,

1) Write a Popup class say myPopup that extends JPopupMenu and add the JTree
as component to the popup menu.
2) Similarly, write myComboPopup that implements ComboPopup.
3) write myComboBox class that extends JComboBox

In your mycomboBox class you have to use the myComboPopup in
getComboPopup();

Hope this helps.

regards
kamal


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: None
To: [EMAIL PROTECTED]
Subject: Swing digest, Vol 1 #329 - 1 msg


Send Swing mailing list submissions to
        [EMAIL PROTECTED]

To subscribe or unsubscribe via the World Wide Web, visit
        http://eos.dk/mailman/listinfo/swing
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Swing digest..."


Today's Topics:

   1. a tree in a combobox? (Ruth Aguilar)

--__--__--

Message: 1
From: Ruth Aguilar <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: a tree in a combobox?
Date: Tue, 2 Jul 2002 14:29:09 +0200

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C221C4.10CE5720
Content-Type: text/plain;
        charset="iso-8859-1"


Hi,

Does anyone knows how to implement a tree inside a ComboBox?
I want to choose a node of a tree instead to choose an item from the list of
items.

thanks,

Ruth


------_=_NextPart_001_01C221C4.10CE5720
Content-Type: text/html;
        charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>a tree in a combobox?</TITLE>
</HEAD>
<BODY>
<BR>

<P><FONT SIZE=2 FACE="Arial Narrow">Hi,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial Narrow">Does anyone knows how to implement a
tree inside a ComboBox?</FONT>
<BR><FONT SIZE=2 FACE="Arial Narrow">I want to choose a node of a tree
instead to choose an item from the list of items.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial Narrow">thanks,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial Narrow">Ruth</FONT>
<BR><FONT SIZE=2 FACE="Arial Narrow">&nbsp;</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C221C4.10CE5720--


--__--__--

_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing


End of Swing Digest


_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to