int row = 0;
int column = 0;
int[] rowOptions = {1,2,3,4,5,6,7,8,9,10};
JFrame frame = new JFrame("Row Choice");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
row = JOptionPane.showInputDialog
(frame,"Please enter the row of the seat you wish to view:\n",
"Row Choice",
JOptionPane.QUESTION_MESSAGE,null,
rowOptions, "1")
the error I get is cannot find symbol - method showInputDialog(javax.swing.JFrame,java.lang.String,java.lang.String,int,<nulltype>,int[].java.lang.String)
I would really appreciate any points in the right direction we are just learning about GUIs in class and I am going a little ahead of the pack in trying to use a dialog box to keep my main frame from being so cluttered.


Sign In
Create Account


Back to top









