• Post Reply Bookmark Topic Watch Topic
  • New Topic

Random Number Generator Program with GUI  RSS feed

 
Arnold Smith
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am currently in the process of learning java and wanted to attempt to create a random password generator. I don't have a problem with creating one in a command prompt setting. However, I want to build an executable and when it runs, pop up a GUI where I can generate a number, and copy it to clipboard.


Things I don't know how to do:
- Design/Implement a GUI
- Take code from IntelliJ and put it into an executable file
 
Stephan van Hulst
Saloon Keeper
Posts: 7993
143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to CodeRanch Arnold!

You may want to check out Oracle's JavaFX tutorials for how to build a graphical user interface: http://docs.oracle.com/javase/8/javase-clienttechnologies.htm

To create executable files, check the tutorial on JARs: https://docs.oracle.com/javase/tutorial/deployment/jar/
 
Campbell Ritchie
Marshal
Posts: 56578
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome again

If you can write a command‑line random generator, you can easily write an interface round it and use it behind a GUI. That is, I think, the correct way to develop your code.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!