Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Create A Pop-Up Window for Input

 
Brian Pembroke
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm currently modifying an existing Applet. I have a requirement where I need to prompt the user for input. I would like to prompt the user with a pop-up for the input. How do you go about this in an Applet? Does the pop-up need to be in another browser window? Any guidance or example would be greatly appreciated.
 
Paul Clapham
Sheriff
Posts: 21318
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You do it exactly the same way as in any other Swing program. A JDialog of some kind is the best way. Here's the tutorial: How to Make Dialogs.
 
Brian Pembroke
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can Dialog windows be used to input data?

Thanks for the reply.
 
Maneesh Godbole
Saloon Keeper
Posts: 11092
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Brian Pembroke wrote:Can Dialog windows be used to input data?

Did you check out the link which Paul suggested?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic