Ah, I wasn't thinking that. I'll try that. Thanks.
And thank you javapenguin.
Type: Posts; User: scooty199
Ah, I wasn't thinking that. I'll try that. Thanks.
And thank you javapenguin.
I've also tested the first if statement, if it's true it'll come up with a box saying created. So it does create it.
Because it order for my program requirements to be met, it had to be instantiated at some point, but the program requirements wouldn't have been met if I just had it set as
StudentGrades sg = null;
Well, I do have it defined.
Here's the full code
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.Random;
No, I mean area[0]. I specifically have an array of 8 JTextAreas, used in a JLayeredPane.
Here's the fields in StudentGUI
private int[] scores;
private int[] sorted;
static JButton[]...
Ok, so I'm working with returning an array in my program, StudentGrades
In this block, once my button construct is hit... it creates the array
if(e.getActionCommand().equals("Construct"))...