Focused animation on custom JDialog
Posted
by n002213f
on Stack Overflow
See other posts from Stack Overflow
or by n002213f
Published on 2010-01-26T13:08:00Z
Indexed on
2010/03/12
18:27 UTC
Read the original article
Hit count: 384
If a JFrame has a JDialog modal open, the JDialog is animated
(the borders and title bar have a lighter colour) if any other part of the application is clicked other than the JDialog with focus. The user is made aware of the window in focus to attend to first.
I have a Swing application with custom dialogs, setUndecorated(true) and custom title bars.
Is it possible to implement the behaviour described above for these custome dialogs?
© Stack Overflow or respective owner