Search:

Type: Posts; User: almostlowfatmilk

Search: Search took 0.19 seconds.

  1. Replies
    7
    Views
    1,286

    Re: Issues with Static environment

    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!
  2. Replies
    7
    Views
    1,286

    Re: Issues with Static environment

    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...
  3. Replies
    7
    Views
    1,286

    Re: Issues with Static environment

    Any suggestions?
  4. Replies
    7
    Views
    1,286

    Re: Issues with Static environment

    Sure thing.

    Here's the Charts class:



    package gradebook;


    import javax.swing.*;
  5. Replies
    7
    Views
    1,286

    Issues with Static environment

    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...
Results 1 to 5 of 5