• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

rich calendar flickers if it is kept inside toggle panel

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have kept rich calendar component inside toggle panel. And it is flickering if you click on the controls. It is fine in normal page.

Can anyone help me please.
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Maitri!

I can't tell 100%, but it does sound like you are causing the toggle panel to be re-rendered, and when you do that the entire contents of the components within the panel will be redrawn, which can cause flickering if the redrawing is a complex operation such as a calendar control with many sub-components.

To minimize flicker, you'll need to determine what triggers the redrawing (re-rendering) of the toggle panel and reduce the amount of redrawing. Also if you can be more selective about what you choose to update within the panel it will help.
 
Maitri Pujara
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for replying..!!!

I have btw managed disabling next and prev, month and year controls. But I couldn't agree with you. when first time I come to my page, all the fields are blank and I try first thing to select a date. Still it flickers.

It happens for any first click only, the rest of the clicks are fine.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic