• 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

Random Number Generator Program with GUI

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 15510
363
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/
 
Marshal
Posts: 79179
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Arthur, where are your pants? Check under this tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic