Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Generate password on web page.?

I managed to successfully build the generator that displays a string for a registration process: ex: cR2on07Tkq.

The next step is displaying it on a web page.

I figured on using an applet but don't know how to display the string or display string in various colors / sizes.

what would the code be? (not the imports unless it isn't average like "import java.applet.Applet;" code)

Update:

this is a java project so everything must be strictly java not php or any thing. the exception is in html but the html has to be the host for the java source.

Update 2:

I just found this code and updated the 'System.out.println()' but the applet still does not display.

import java.applet.*;

import java.awt.*;

/**

* The Croeso class is an applet that

* simply displays "Croeso!" to the applet viewer

*/

public class CroesoApplet extends Applet {

public void paint(Graphics g) {

g.drawString("Croeso!", 30, 25); // Display string

}

}

1 Answer

Relevance
  • 1 decade ago
    Favorite Answer

    I would reccommend using php or asp depending on what server your using Hope this helps

    You can search google other people have done it sucessfully do not create the wheel

    Source(s): I am a IT
Still have questions? Get your answers by asking now.