• Post Reply Bookmark Topic Watch Topic
  • New Topic

Disposing JOptionPane dialog box  RSS feed

 
KNitin Kumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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 ]
 
klod lucas
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thanks Klod

Regards
Nitin
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!