#how to transfer information about variables from one class extends jpanel to another class extends j

1 messages · Page 1 of 1 (latest)

heady basalt
#

for example:

class main{
  one one = new one();
  two two = new two();
}

class one extends jpanel{
  int a = 1;
  public one(){
    
  }
}

class two extends jpanel{
  private int a;
  public two(){
    
  }

  public void setA(int a){
     this.a = a;
  }
}
spice gardenBOT
#

Hey, @heady basalt!
Please remember to /close this post once your question has been answered!

heady basalt
#

how to transfer information about variables from one class extends jpanel to another class extends jpanel?