I want to use variables from one class in the static method of another class.
I'll try passing an object created from the Existing class in the WritetoChart method.
Thanks!
Type: Posts; User: almostlowfatmilk
I want to use variables from one class in the static method of another class.
I'll try passing an object created from the Existing class in the WritetoChart method.
Thanks!
Thanks for the reply!
If I pass the data array parameter into the generateBarChart() method, I still can't use the writeChartToPDF() method later on in the class because it has to accept the...
Any suggestions?
Sure thing.
Here's the Charts class:
package gradebook;
import javax.swing.*;
First and foremost, I know that the error "non-static variable 'whatever' cannot be referenced from a static context" has been brought up often, but I think my situation is a little weird.
I have...