Search:

Type: Posts; User: ICEPower

Search: Search took 0.09 seconds.

  1. Replies
    13
    Views
    2,217

    Re: Using variable in different class

    This line doesn't work when I do 'startsnelheid = 0;' in BeginsnelheidPaneel. Whatever I type 'startsnelheid' equals to 0 in SimulatiePaneel...
  2. Replies
    13
    Views
    2,217

    Re: Using variable in different class

    If you look at the code of SimulatiePaneel, you'll see what the idea is.

    I have a car and 'startsnelheid' is it's startvelocity. So when startsnelheid has a value for example 5. the car should be...
  3. Replies
    13
    Views
    2,217

    Re: Using variable in different class

    public BeginsnelheidPaneel(FlashedFrame fframe, double startsnelheid)
    {
    this.ff = fframe;
    this.setLayout(null);
    .
    .
    .}

    this also doesn't work because that only listens to what's in the...
  4. Replies
    13
    Views
    2,217

    Re: Using variable in different class

    So what you are saying is:



    That's something that I had already done and it didn't work. That's why I suggested to make a new variable.
  5. Replies
    13
    Views
    2,217

    Re: Using variable in different class

    Please can someone help me out with this? I really don't see why it doesn't work. I tried everything I know of doing
  6. Replies
    13
    Views
    2,217

    Re: Using variable in different class

    What I understand from what you just said is:

    I should make a new variable x in BeginsnelheidPaneel, and in the constructor of BeginsnelheidPaneel I should equal x to startsnelheid. And in...
  7. Replies
    13
    Views
    2,217

    Re: Using variable in different class

    Thnx guys. As i already said i'm new to java. I read the link you uploaded but I still can't figure out why my code is not working.

    I do t get any errors but I know that the value of...
  8. Replies
    13
    Views
    2,217

    Using variable in different class

    Hi everyone,

    I'm new on this forum and also with Java. I was wondering if someone could help me out with this problem i'm having.

    I have 2 classes and I need to use a variable from one class in...
Results 1 to 8 of 8