Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How does ComboBox extend beyond the window borders?

1056224Feb 3 2014 — edited Feb 3 2014

I noticed that the ComboBox can extend beyond the window borders. I'd like to implement something like that for a custom control of mine, but can't figure out how to do it. I know that it happens by simply setting a large enough value via setVisibleRowCount, but what I am interested in is how the combobox manages to be larger than the pane it is in so that I can copy that behaviour for my own control.

Here is a screenshot to clarify what I am talking about.

Thanks in advance

This post has been answered by James_D on Feb 3 2014
Jump to Answer

Comments

James_D
Answer

The popup portion of the ComboBox is represented by a PopupControl. This is a subclass of Window, so it's not constrained by the bounds of the window in which the ComboBox is placed.

Marked as Answer by 1056224 · Sep 27 2020
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 3 2014
Added on Feb 3 2014
1 comment
1,126 views