JOptionPane easy input output with dialog boxes How to get Input and Output in JOptionPane java Example Code Program JOptionPane Class for Easy IO Input,Output with Dialog Boxes Example
Get Input
userInput = JOptionPane.showInputDialog(component, text);
userInput = JOptionPane.showInputDialog(this, "Enter a Number");
For Message Display
JOptionPane.showMessageDialog(component, text);
JOptionPane.showMessageDialog(this, “Hello,world!”);
0 comments:
Post a Comment