Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Open a new Window?  RSS feed

 
Max Power
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

lets say the user pushes a button and a new window should pop up.
how can i do that and how can I get the userinout from this window?

This sounds like an easy task, but somehow I am stuck....

Thanks in advance
 
Stefan Krompass
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

you could try JOptionPane. Just call one of the static show...-methods.

If you want the user to type a longer input, you could try a JWindow/JFrame with an embedded JTextField/JTextArea...

Stefan
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!