protected void updateComponentLocation() { super.updateComponentLocation(); manaBar.setLocation(healthBar.getLocation()); manaBar.setWidth(getWidth() * getRatio("mana")); healthBar.changeLocation(0, -healthBar.getHeight()); }