public TextBox(String text) { this.text = text; sprite = SpriteManager.getSprite("textbox"); font = Main.font; lines = new ArrayList<String>(); handleString(text); }