Overlay on DateComboBox

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Overlay on DateComboBox

Postby kapitarg » Wed Jun 18, 2008 6:23 am

Hi,
I would like to use overlays for showing validation errors on components. For usual components like TextFields, ComboBoxes everything is fine. However the DateComboBox does not seem to support that since its editor usually overlaps the overlay when the cursor is in the same area.
Image
And this look very ugly ;)

Does anyone know a simple way to solve this issue?
I thought of replacing the editor of the DateComboBox and override the editor component's paint method, but that does not seem to be a trivial solution considering that all that code is not open source... :(

Best regards
Gabor
kapitarg
 
Posts: 2
Joined: Mon Apr 21, 2008 7:17 am

Postby JIDE Support » Wed Jun 18, 2008 7:51 am

You can override createTextField method on DateComboBox, return a subclass of ComboBoxTextField and where you override paint method.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Postby kapitarg » Wed Jun 18, 2008 9:58 am

Thats it! :)
Thanks for your help!
kapitarg
 
Posts: 2
Joined: Mon Apr 21, 2008 7:17 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: Google [Bot] and 62 guests