Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating a custom Dialog

 
Dustin Ward
Greenhorn
Posts: 24
1
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys. I am trying to let someone change their password in my GUI and I would like a pop up to have them give me their old password and then another to allow them to enter a new password (twice to confirm)... I originally thought I could use TextInputDialog and then "hide" the input with asterisks or something along that nature, but I couldn't find anything. SO, I googled my brains out and found a few 'create a custom dialog' posts. Well, I googled all of that and none seemed to make a lot of sense. In fact, when I tried to copy paste their code into Eclipse to try and fiddle with their code, I couldn't even get Dialog to build correctly.

Does anyone have any ideas? What my GUI consists of so far, is a primaryStage with a bunch of different scenes that interchange with button clicks. I could switch the scene again- easy enough- and give three text fields, but I was hoping to solve this for my sanity and for consistency. Thanks!
 
John Damien Smith
Ranch Hand
Posts: 298
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is some sample code. It would take me quite a bit of time to explain it, so I won't do that at this time. Hopefully you can understand it :-) Sorry it is quite long. You might be able to simplify a bit, but password operations are generally more complicated than people give them credit for, in my experience.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic