문제

I have added checkboxes inside combo box in Java. But when I open drop down menu and check one check box, the drop down menu closes. So to select each check box I have to open it every time. Is there any way so that I can keep the drop down list opened till the time I dont click outside so that I can select any number of check boxes at one time only. Please help!!

도움이 되었습니까?

해결책 2

I recommend that you to use the Japura API to deal with this, check this link:

http://www.japura.org/checkcombobox

Best Regards :)

다른 팁

I have added checkboxes inside combo box in Java. But when I open drop down menu and check one check box, the drop down menu closes. So to select each check box I have to open it every time. Is there any way so that I can keep the drop down list opened till the time I dont click outside so that I can select any number of check boxes at one time only.

  • no there isn't, this is default property of (BasicXxx)Popup implemented in Swing API, workaround for series of Bugs in Java1.4_xxx

  • no_way, only by using dirty hacks, usage of can be Java Version sensitive, or required left mouse button as accelerator

  • don't do that, another way (and proper of possible ways) is usage of JWindow/undecorated JDialog but required to override ESC Key and Focus lost in Windows three (as you can see in good Java JCalandars/JDatePickers),

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top