I'm supposed to put String[] values on a content pane, how do i do it?
Printable View
I'm supposed to put String[] values on a content pane, how do i do it?
What exactly do you mean with "text directly on a content pane" ? :(think):
I am required to create a swing program which displays string values on a content pane..... please help.... I've been stuck for several hours now
As labels?
As a drop down list?
As something else?
In other words, your requirements are incredibly vague.
I think it's better if I write down the whole question, it goes like this:
write a swing program that declares an empty array of grades with a maximum length of 50.
Implement a JOptionPane input box within a while loop to allow the user to enter grades using a -1 as a sentinel.
after the grades are entered, a content pane should display the grades sorted from lowest to highest.
I have underlined the part that confuses me, please give suggestions
Thanks for the help.... he said I'm supposed to write those values in a textPane. And said we should use a Document class to do so