• Post Reply Bookmark Topic Watch Topic
  • New Topic

Dialog Box Problem

 
Ian Cockcroft
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am generating a dialog box with the folloiwing code:

As soon as I try put an OK Cancel button on like this, it gives an error?
Anyideas why?

THE ERROR:
CANNOT RESOLVE SYMBOL!
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ian,
I think this is a case of using older documentation with newer classes. The API has changed from 1.2 to 1.3/1.4 for the JOptionPane.
The newer documentation can be found
here .
You must use the method called showInternalConfirmDialog in order to give the parameters you are trying to use. Also you will be required to give a non-null parent to the new method.
Regards,
Manfred.
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are not using the method correctly.

This represents whatever you are using JFrame etc.
The method signature is

[ April 26, 2002: Message edited by: Paul Stevens ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!