import javax.swing.*; import java.awt.*; public class MakeAllText { // Declarations of frames TextJFrame t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12; // Declaration of titles of frames String t1Title, t2Title, t3Title, t4Title, t5Title, t6Title, t7Title, t8Title, t9Title, t10Title, t11Title, t12Title; // Declaration of text inside the frames String t1Text, t2Text, t3Text, t4Text, t5Text, t6Text, t7Text, t8Text, t9Text, t10Text, t11Text, t12Text; public MakeAllText() { t1Title = "Maryland Crazy Laws"; t2Title = "Delaware Crazy Laws"; t3Title = "Virginia Crazy Laws"; t4Title = "North Carolina Crazy Laws"; t5Title = "New Jersey Crazy Laws"; t6Title = "New York Crazy Laws"; t7Title = "South Carolina Crazy Laws"; t8Title = "Connecticut Crazy Laws"; t9Title = "Massachusetts Crazy Laws"; t10Title = "Vermont Crazy Laws"; t11Title = "New Hampshire Crazy Laws"; t12Title = "Maine Crazy Laws"; t1Text = "In Baltimore County, MD, though you may spit on a city roadway, " + "spitting on city sidewalks is prohibited." + "\n\n" + "In Baltimore, it is illegal to mistreat oysters." + "\n\n" + "In Halethrope, kisses that last longer than one second are illegal." + "\n\n" + "In Maryland, a woman may not go through her husband's pockets while he is sleeping." + "\n\n" + "It is a violation to be a in public park with a sleeveless shirt. The fine is $10."; t2Text = "Delaware prohibits horse racing of any kind on Good Friday and Easter Sunday." + "\n\n" + "In Delaware it is illegal to get married on a dare." + "\n\n" + "In Delaware you may not sell dead people for money without a license." + "\n\n" + "It is illegal to fly over any body of water, unless one is carrying sufficient supplies " + "of food and drink." + "\n\n" + "In Lewes, it is illegal to wear pants that are firm fitting around the waist."; t3Text = "Citizens must honk their horn while passing other cars." + "\n\n" + "Police radar detectors are illegal." + "\n\n" + "Perhaps anticipating telemarketing, the town fathers of " + "Albany, Va., have for years prohibited peddlers from using the telephone " + "to either sell things or raise funds." + "\n\n" + "In Culpeper, no one may wash a mule on the sidewalk." + "\n\n" + "It is illegal to sell peanut brittle on Sundays."; t4Text = "In Robbins, N.C., anyone who refuses to black out after " + "hearing the blackout signal is subject to a $5 fine." + "\n\n" + "In Barber, North Carolina fights between cats and dogs are prohibited." + "\n\n" + "It's against the law to sing off key." + "\n\n" + "Thomasville, North Carolina, prohibits airplanes from flying over the " + "town on Sundays during the hours between 11 a.m. and 1 p.m." + "\n\n" + "Elephants may not be used to plow cotton fields."; t5Text = "Automobiles are not to pass horse drawn carriages on the street." + "\n\n" + "It is illegal to slurp soup." + "\n\n" + "On a highway you can not park under a bridge." + "\n\n" + "It is against the law for a man to knit during the fishing season." + "\n\n" + "Unless you have a doctor's note, it's illegal to buy ice cream after " + "6 PM in Newark, New Jersey." + "\n\n" + "It is illegal to delay or detain a homing pigeon."; t6Text = "It is illegal to jump off the Empire State building. The penalty is death." + "\n\n" + "Jaywalking is legal, as long as it's not diagonal. " + "That is, you can cross the street out of the crosswalk, but you can't cross a street diagonally" + "\n\n" + "You may only water your lawn if the hose is held in your hand." + "\n\n" + "In New York State it is still illegal to shoot a rabbit from a moving trolley car." + "\n\n" + "Donkeys are not allowed to sleep in bathtubs in Brooklyn, N.Y." + "\n\n" + "During a concert, it is illegal to eat peanuts and walk backwards on the sidewalks." + "\n\n" + "A license must be purchased before hanging clothes on a clothesline." + "\n\n" + "Slippers are not to be worn after 10:00 P.M."; t7Text = "A railroad may not remove itself from a town of more than " + "five hundred people." + "\n\n" + "Dance halls may not operate on Sundays." + "\n\n" + "It is considered an offense to get a tattoo." + "\n\n" + "It is illegal to sell any alcoholic beverages on Sunday, " + "unless you own a private club." + "\n\n" + "Musical instruments may not be sold on Sundays." + "\n\n" + "Performing a U-turn within 1,000 feet of an intersection is illegal." + "\n\n" + "It is a capital offense to inadvertently kill someone while attempting suicide."; t8Text = "Balloons with advertising on them are illegal in Hartford." + "\n\n" + "In Devon, it is unlawful to walk backwards after sunset." + "\n\n" + "It is illegal to dispose of used razor blades." + "\n\n" + "It is illegal to discharge a firearm from a public highway." + "\n\n" + "You cannot buy any alcohol after 8 PM or on Sundays." + "\n\n" + "No one may use a white cane, unless they are blind." + "\n\n" + "In Southington, silly string is banned." + "\n\n" + "You are not allowed to walk across a street on your hands."; t9Text = "Bullets may not be used as currency." + "\n\n" + "Hunting on Sundays is prohibited." + "\n\n" + "It is illegal to frighten a pigeon," + "\n\n" + "It is illegal to go to bed first without a full bath." + "\n\n" + "It is illegal to allow someone to use stilts while working " + "on the construction of a building." + "\n\n" + "It is illegal to take a lion to the movies." + "\n\n" + "Public boxing matches are outlawed." + "\n\n" + "Tomatoes may not be used in the production of clam chowder."; t10Text = "Whistling underwater is illegal." + "\n\n" + "It is illegal to paint landscapes in times of war." + "\n\n" + "Women must obtain written permission from their husbands " + "to wear false teeth." + "\n\n" + "At one time, it was illegal to tie a giraffe to a telephone pole." + "\n\n" + "It is illegal to deny the existence of God." + "\n\n" + "It is illegal for vagrants to procure food by force." + "\n\n" + "In Barre, all residents must bathe every Saturday night."; t11Text = "It is illegal to inhale bus fumes with intent of inducing " + "euphoria." + "\n\n" + "On Sundays, citizens may not relieve themselves while looking up." + "\n\n" + "You may not run machinery on Sundays." + "\n\n" + "You cannot sell the clothes you are wearing to pay " + "off a gambling debt." + "\n\n" + "It is illegal to pick seaweed up off of the beach." + "\n\n" + "It is considered an offense to check into a hotel under " + "an assumed name."; t12Text = "Shotguns are required to be taken to church in the event " + "of a Native American attack." + "\n\n" + "It's unlawful to tickle a woman's chin with a feather duster " + "in Portland." + "\n\n" + "It is illegal to sell a car on Sunday unless it comes equipped " + "with plumbing." + "\n\n" + "In Augusta, to stroll down the street playing the violin is against the " + "law." + "\n\n" + "After January 14th, you will be charged a fine for " + "having your Christmas decorations still up."; t1 = new TextJFrame(t1Title, t1Text); t2 = new TextJFrame(t2Title, t2Text); t3 = new TextJFrame(t3Title, t3Text); t4 = new TextJFrame(t4Title, t4Text); t5 = new TextJFrame(t5Title, t5Text); t6 = new TextJFrame(t6Title, t6Text); t7 = new TextJFrame(t7Title, t7Text); t8 = new TextJFrame(t8Title, t8Text); t9 = new TextJFrame(t9Title, t9Text); t10 = new TextJFrame(t10Title, t10Text); t11 = new TextJFrame(t11Title, t11Text); t12 = new TextJFrame(t12Title, t12Text); } }