@Override
 public void mouseClicked(int mouseX, int mouseY, int button) {
   if (!visible | !enabled | haveOpenDialog()) {
     return;
   }
   textboxUsername.mouseClicked(mouseX, mouseY, button);
   textboxPassword.mouseClicked(mouseX, mouseY, button);
   super.mouseClicked(mouseX, mouseY, button);
 }
  @Override
  public void initGui() {
    super.initGui();
    buttonList.clear();

    textboxUsername = new GuiTextField(fontRenderer, this.x + 5, this.y + 15, 120, 16);
    textboxPassword = new GuiTextField(fontRenderer, this.x + 5, this.y + 45, 120, 16);
    buttonLogin = new GuiButtonExt(0, this.x + 5, this.y + 65, 80, 16, "Login");
    buttonList.add(buttonLogin);
  }
 @Override
 public void draw(int mouseX, int mouseY, float partialTickTime) {
   if (!visible) {
     return;
   }
   drawGradientRect(this.x, this.y, this.x + this.width, this.y + height, 0xC0101010, 0xD0101010);
   super.draw(mouseX, mouseY, partialTickTime);
   fontRenderer.drawString("Username:"******"Password:", this.x + 5, this.y + 35, 0xEEEEEE);
   textboxUsername.drawTextBox();
   textboxPassword.drawTextBox();
 }