Hello, I am enrolled in a entry level Java class and I have been doing a HW assignment and I was wondering if it was possible to make my Jpanel display multiple entries, for instance,
Code:
JOptionPane.showMessageDialog(null, "Class Grades Counted" +gradeCounter,
"Class Average Totals",
JOptionPane.INFORMATION_MESSAGE );
This is the current segment of code that I have created within my program, when I run the program it displays the total number of grades inputted from a previous user prompt. However in my professors parameters for the assignment he wants us to also display the average as well as a possible switch/if statement for letter grades.
What I tried to do was
Code:
JOptionPane.showMessageDialog(null, "Class Grades Counted" +gradeCounter,
"Class Average" +total/gradeCounter,
"Class Average Totals",
JOptionPane.INFORMATION_MESSAGE );
Obviously this didn't work out so well, as I got compile errors.
So what im asking is how do I get the one JOptionPane to display multiple things?