• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Applet Popup and other Methods

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey guys,

I'm not really sure where exactly I can look for this. But, I've got payment posting page that I've written in HTML. I've added some Javascript to validate that the required fields aren't blank.

After the Javascript runs, I would like to call an applet.

I have a skeleton of a Java Application that I've been writing (with the help of the guys in the beginner forum) in Eclipse. This application accesses an MS SQL database and will validate a couple of fields from the web page that I pass to it (currently those values are hard coded on the application).

I'd like to convert this to an applet, and one of the things I am having difficulty finding is a method to create a pop-up.

I would like for the applet to create a popup, with a YES or NO button on it. Does anyone have a simple example of an applet such as this?


Thanks for any help you guys can provide. I checked the code barn, but I didn't see anything.


Thanks!
 
Rancher
Posts: 5008
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By a popup I suppose you mean a window with some text. There are several ways to do that. Swing has some special classes that do it. Some Swing experts will be sure to say what.
Or you could use an AWT class such as Frame and add labels or components to it to display your text in.
 
Todd Jaspers
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Norm! I appreciate it.

Is there a place where I can find all the different methodes and properties available to me with this OOP language?


Thanks!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic