CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2010
    Posts
    6

    Implement gradual visibility to JPanel

    Hi

    I have a JPanel which I want to gradually set visible i.e create a sliding open effect. Currently the setVisible(true) opens it too quickly and I would like it to be more smooth and gradual.
    Thinking of putting an component listener on the jpanel and then somehow using a swing timer to open it gradually. Any ideas/suggestions would be appreciated.

    Thanks

  2. #2
    Join Date
    Apr 2007
    Posts
    442

    Re: Implement gradual visibility to JPanel

    Theres a bundle of open source projects for various kinds of animating effects to boost up your swing. Google for instance the transitions API and AnimatingCardLayout. You may also like to check the "Swing Hacks" -book. Though bought a copy, I believe it is available in pdf online.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured