You did not include the code to your Entity class, but I think it may be because you redefine these int variables in the DialogBTN class and you set them instead of setting the x,y,w,and h in the Entity superclass. So you have to remove these variables in DialogBTN and make the ones in the superclass public or protected or set the Entity fields with "super.x = ..."
public class DialogBTN extends Entity
public int x, y, w, h;
I just found out what was wrong. I wasn't meant to redefine those x,y,w,h variables lol. Just a silly simple mistake.