JDialog gain focus and flash
SpiritNZ <[email protected]> Mon, 24 Sep 2007 19:21:55 -0700 (PDT)
| Newsgroups | gmane.comp.java.netbeans.user-interface |
|---|---|
| Message-ID | <[email protected]> |
Hi, I have a custom about dialog and want to code it so that the title bar
flashes when it has lost focus - just like normal windows about dialog
behaviour.
This is what I have which works ok although the title bar does not flash.
private void mnuHelpAboutActionPerformed(java.awt.event.ActionEvent evt) {
AboutDialog.pack();
AboutDialog.setLocationRelativeTo(this);
AboutDialog.setVisible(true);
}
private void AboutDialogWindowLostFocus(java.awt.event.WindowEvent evt)
{
AboutDialog.toFront();
}
the AboutDialog.alwaysOnTop property is set to true
Am I going about this the wrong way?
I am relatively new to netbeans and java and any help would be appreciated
Thanks
--
View this message in context: http://www.nabble.com/JDialog-gain-focus-and-flash-tf4512951.html#a12871992
Sent from the Netbeans - UI mailing list archive at Nabble.com.