• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Disposing JOptionPane dialog box

 
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 ]
 
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic