Can anyone give me hints to create drop shadow for JPanel? I browsed around and could get examples to make drop shadow for images and not for JPanel?
Any help is appreciated.
Likely you'll need to do a custom paint for the JPanel. Get the bounds of the component, create a shadow of the same size, offset and clip the shadow in the paint.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.