Skip to main content

need help JoptionPane.shoeMessageDialog

1 reply [Last post]
progprob
Offline
Joined: 2006-02-17
Points: 0

the following child programme when compiled gives
many pqlr characters and at the end the message 100Errors .I can't find the reason . The code is:

import javax.swing.JOptionPane;
public class Testing{
public static void main(String[] args){
JOptionPane.shoeMessageDialog(null,
"testing");
System.exit(0);
}
}
Help me.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ngpamela
Offline
Joined: 2006-02-17
Points: 0

Perhaps you spelt showMessageDialog wrongly...

The correct coding should be

import javax.swing.JOptionPane;
public class Testing{
public static void main(String[] args){
JOptionPane.[b]showMessageDialog[/b](null,
"testing");
System.exit(0);
}
}

Take note that it is JOptionPane.showMessageDialog() and not JOptionPane.shoeMessageDialog().

Try to see if it works.