• Post Reply Bookmark Topic Watch Topic
  • New Topic

regarding JOptionPane -very urgent  RSS feed

 
srinivas srini
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have a problem with my message box. The problem is like this. I have a window which takes the order if every field is properly entered the message box is displayed with message "order accepted" . Now before i click the OK button of the message box and open another window which is related to the same application then this message box is getting disappeared again i should navigate with alt-tab and go to that message box and click OK .what i need is when ever i open any window related to my application i should be able to display the message box(provided that is not clicked on 'OK'). This message box actually extends JOptionPane
Thanks in advance
 
Manoj kumar A
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hii
before invoking the message window please write this
JOptionPane.setRootFrame(this);//"this" represents your parent window from which this meaasge dialog is invoked .
manoj kumar A
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!