title: Javafx textfield resize to text length?
body: <p>Hello guys I am building a chat server where I use a textfield on the screen to type in the chat message that the user writes, the idea is that it works like a bubble over a persons head when he types a message.</p>
  
  <p>my question is in order to not make a textbox that is too large or too small is there a way to make the textbox resize (trim if you will) so it adjust to the text written in the textfield?</p>
  
  <p>P.S. I'm using JavaFx scenebuilder to do all of this.</p>