Hi Greg, Thanks for the response, I hope you don't mind a more detailed response. How would changing the "look and feel" of a JComboBox help place a JTree in the pulldown? I would LOVE to reuse, but it seems to me that a new component is the only way to go. I am extending JComboBox, but only because I want ((JComboTree isinstance JComboBox) == true). I have not figured out any way to replace the list of the JComboBox with a JTree. So I'm creating a new component. You say "create a new component with a L&F based on that of a combo box". Do you mean that I should not extend JComboBox, but instead extend ComboBoxUI? Interesting, That may make more since.... So now I'm looking at ComboBoxUI, BasicComboBoxUI, and MetalComboBoxUI. But this leads me back to the same implementation questions, namely how to duplicate the observed behavior of Swing combo boxes and menus, where the list has the ability to descend beyond the JFrame's border. I'm interpreting your last two comments to mean that a JWindow is implemented as a native peer, and will give the appearance of a pulldown extending beyond the "parent" windows borders. Is this what you meant? Thanks!
|
Title: How to make "pulldowns" and "popups" overlap a containers border?