Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JOptionPane (New to Java) 1

Status
Not open for further replies.

peter11

Instructor
Mar 16, 2001
334
0
0
US
Error:
cannot find symbol class JOption
cannot find symbol variable JOptionPane

Code:
import javax.swing.JOption;

public class DialogTester
{
	public static void main(String[] Args)
	{
		JOptionPane.showMessageDialog(null, "Hello World");
		System.exit(0);
	}
}
 
add : import javax.swing.JOptionPane;

remove : import javax.swing.JOption;

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top