title: How do I create an on screen keyboard in java?
body: <p>I'm working on a school project where we have to create a virtual smartphone, to run on a computer.</p>
  
  <p>My problem is that I need to create a keyboard on the screen (like on an smartphone), which you can then use by clicking with your mouse. I could just create every single <code>JButton</code>, but that will take a really long time. So I was hopping that someone knew some sort of algorithm that creates all the buttons and places them correctly on the screen.</p>
  
  <p>Thank you in advance :)</p>