• 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

Disposing JOptionPane dialog box

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have created a JOptionPane dialog for one of my GUI related application. This dialog box comes with an OK button, clicking on which, the dialog box gets disposed.

Here goes the code

public void messageDialog(String aMsg) {
javax.swing.JOptionPane jOptionPane = new javax.swing.JOptionPane();
jOptionPane.setFont(new java.awt.Font("Times New Roman", 0, 6));
Font font = jOptionPane.getFont();
jOptionPane.showMessageDialog(null, aMsg,"Message Dialog", javax.swing.JOptionPane.INFORMATION_MESSAGE);
return;
}

It is working fine, but the problem is that 'OK' button is NOT enabled in some of the other terminals and to dispose the dialog I have to click on the 'cross' on top right corner of the dialog. This happens only when there is another dialog box open in back ground(In some terminals).

I am trying out this in browser (IE 6.0 ) using JDK 1.3 and I have confirmed same IE settings in both the terminals.

Can you help me soting out this problem?
[ May 18, 2005: Message edited by: KNitin Kumar ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5024756
Regards,
Klod
 
KNitin Kumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Klod

Regards
Nitin
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic