• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Creating a custom Dialog

 
Greenhorn
Posts: 28
1
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Rancher
Posts: 387
30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic