• 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: 21975
36
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
Bartender
Posts: 11445
18
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?
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!