import java.awt.*; import java.applet.*; import java.util.*; /** * Use this applet when you can't figure out a "Word Jumble". * Just enter the characters from the Jumble, and press the calculate button. * This applet determines all of the possible words from the characters * you provide. (Warning: Six characters creates 720 possible word * combinations; 7 characters creates over 5,000 combinations.) * * @author Developer's Daily (http://www.devdaily.com) * @version 1.0 */ public class JumbleApplet extends Applet { /** * The "calc" button was clicked; determine what characters were entered * by the user, and run the calculations. */ void calcButton_Clicked(Event event) { //{{CONNECTION // Clear the text for TextArea outputTextArea.setText(""); //}} statusLabel.setText("Calculating possibilities ..."); String s = textField1.getText(); int numChars = s.length(); //--------------------------------------------------------// // create the current "chars" array. // // this is the array of characters that the user enters. // //--------------------------------------------------------// chars = new char[numChars]; // size "chars" to be as large as the string for (int i=0; i 0 ) { for (int i=0; i