aspose file tools*
The moose likes Applets and the fly likes How to Create A Pop-Up Window for Input Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "How to Create A Pop-Up Window for Input" Watch "How to Create A Pop-Up Window for Input" New topic
Author

How to Create A Pop-Up Window for Input

Brian Pembroke
Greenhorn

Joined: Jan 21, 2003
Posts: 6
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
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

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

Joined: Jan 21, 2003
Posts: 6
Can Dialog windows be used to input data?

Thanks for the reply.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10378
    
    8

Brian Pembroke wrote:Can Dialog windows be used to input data?

Did you check out the link which Paul suggested?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Create A Pop-Up Window for Input