Didn't mean you to struggle with it, but it's good you did some research. What it would look like is:
// . . . excerpted from class CDs
private JLabel labelTval;
// this declares CD...
Type: Posts; User: GregBrannon
Didn't mean you to struggle with it, but it's good you did some research. What it would look like is:
// . . . excerpted from class CDs
private JLabel labelTval;
// this declares CD...
You're welcome.
Even though you say you're writing your GUI code by hand and I don't doubt you, it looks like you've studied code generated by a graphical programming tool like Netbeans' GUI...
I dunno. I was going to ask you the same thing. What is the get() method supposed to do?
I'm guessing that the updateGUI() method fills the GUI with the details of the CD[] element at the index...
Just as it says, the source of the error is this line in method CDs.main():
new CDs( CD ).setVisible( true ); // this should call the GUI
And the error is caused by the parameter CD which is of...