Simple solution for a simple person HELP

I am trying to build my first form. it is reading and
posting; but, when the data is received it contains all of the
formatting code for the txt. How can I make it so that just thext
entered is recieved by the ASP page??
Thanks!!!

Thank You kgald - I added the Target and Method arguments and
it is working perfectly!

Similar Messages

  • Ever since the last update, My iTunes continues to quit unexpectedly. It will open for one second and then close. Anyone have a solution for this. Please help.

    Ever since the last update, My iTunes continues to quit unexpectedly. It will open for one second and then close. Anyone have a solution for this. Please help.
    I've tried my best to troubleshoot. . . opening in safe mode nothing seems to work.
    In the problem report, this is the error that stood out:
    Crashed Thread:  8  Dispatch queue: com.apple.iad.iadidmanager
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000090

    Hi there navicin79,
    You may find the troubleshooting steps in the articles below helpful. The first thing I would try is reinstalling iTunes as outlined in the first article.
    Troubleshooting iTunes installation on Mac OS X
    http://support.apple.com/kb/ht2311
    OS X Mavericks: If an app freezes or quits unexpectedly
    http://support.apple.com/kb/PH13975
    -Griff W. 

  • Any closer to a solution for apn in personal hotspot being fixed using 7.1

    Any closer to a solution for apn in personal hotspot being fixed using 7.1

    all three =)
    http://www.adobe.com/devnet/flashmediaserver/articles/protecting_video_fms.pdf
    regards
    Leonardo França
    Adobe Certified Expert Flex 3 with AIR
    Adobe Certified Expert Rich Internet Application Specialist v1.0
    Adobe Certified Expert Flash CS3 Professional
    Certified Professional Adobe Flex 2 Developer
    Adobe Certified Professional Flash MX 2004 Developer
    http://www.leonardofranca.com
    http://twitter/leofederal
    Manager AUGDF - Adobe User Group do Distrito Federal
    http://www.augdf.com.br
    http://twitter/augdf
    sfister escreveu:
    Hello,
    Our scenario is that we have an Adobe ColdFusion8 server running a portal application which will serve up SWF content from a FMS3 installation. We need to protect the SWF content from being a) downloaded to a users local machine and b) being accessed without being logged into the portal application.
    Please correct me here if I am wrong - it looks like the combination of RTMPE + SWF Verification are the minimum necessary, but I am confused as to these other practices and which ones to use (or can be used on FMS and not FMIS):
    1) Refererr and pageURL check validation
    OR
    2) IP Address validation
    OR
    3) White list domains
    Any suggestions on the best method to accomplish this using RTMPE + SWF Verification + (1, 2, or 3)?
    Thank you,
    Steve
    >

  • 3rd request for some wonderful persons help!

    I'm trying to connect across a network with RMI and I get the error:
    "Connection refused to host 138.79.115.36; nexted exception is: java.net.ConnectException: Connection refused: connect."
    138.79.115.36 is the machine my client is on
    138.79.115.30 is the server machine
    I have one jar file which I've unzipped on both machines. It contains the following folder structures
    ../kye/db/
    ../kye/clientGUI
    ../examples/classServer
    the db folder has all the files for running the RMI server
    the clientGUI has all the client GUI files.
    the examples/classServer is the webserver that it is suggested to download in the RMI tutorial
    I tried to follow the sun tutorial but I only have one jar file so it's a bit modified. And I know somethings are unecesarily duplicated. Maybe this is part of the problem. Not sure.
    Everything is unzipped in d:\public (which is shared) on the server and I use the following commands to start everything running.
    Start the webserver
    d:\public>start java examples.classServer.ClassFileServer 2222 /public
    Start the server
    start java -Djava.rmi.server.codebase=http://138.79.115.30:2222/ kye.db.DataServerGUI
    Then on the client machine
    java kye.clientGUI.ApplicationRunner
    When the client opens it asks for the servers ip address, I enter it and when connecting get the above error. I have a policy file which is specified in both the client and the server. It contains this:
    grant
    permission java.security.AllPermission;
    permission java.net.SocketPermission
    "*:1024-65535", "connect, resolve";
    What do I have to change or fix to get this running?
    I'm happy to send out copies of the .jar file to anyone who needs more information.
    I appreciate any help and I'm pretty desperate
    Thanks
    Kylie

    Thanks John,
    It does seem a strange message. But the ip addressses are definitely correct that I'm entering. I wondered why the client would say that the client refused connection.
    Here is the code for making the client connection:
    public ServerClient(String ipAddress)throws DatabaseException{
    try{
    System.setProperty("java.security.policy", "access.policy");
    if (System.getSecurityManager() == null) {
    System.setSecurityManager(new RMISecurityManager());
    db = (DataClient)Naming.lookup(ipAddress + "/kyeData");
    }catch(RemoteException re){
    throw new DatabaseException(re.getMessage());
    }catch(Exception e){
    throw new DatabaseException(e.getMessage());
    Here is the code that registers the RemoteServer:
    try{
    System.setProperty("java.security.policy", "access.policy");
    if (System.getSecurityManager() == null) {
    System.setSecurityManager(new RMISecurityManager());
    //ClassFileServer cfs = new ClassFileServer(2222, "suncertify.jar");
    server = new DataRemoteImpl(databaseName.getText());
    output.append(InetAddress.getLocalHost().toString() + "\n\n");
    //start up the registry and add our object
    java.rmi.registry.LocateRegistry.createRegistry(1099);
    Naming.rebind("rmi://" + InetAddress.getLocalHost().toString() + "/kyeData", server);
    //check to make sure it is bound????
    String bindings[] = Naming.list("");
    for(int a=0; a<bindings.length; a++)
    output.append(bindings[a] + "\n");
    Is there anything you can see that's wrong or in the wrong order? I start the registry from within the RemoteServer. I've commented out the webserver that I was trying to use to locate files. I'm not sure if that was working.
    Any more ideas? I've tried it on different networks in the office, to make sure that none of our security systems were interfering and the same things occurred on all the different machines.
    ta
    Kylie

  • Need solution for my tutorial :( can help?

    Write a program which puts up this 200 X 200 window:
    this is the picture
    http://upload3.postimage.org/250054/photo_hosting.html][img]http://upload3.postimage.org/250054/untitled.jpg
    When you click any button (not just ?Shake Box?), it will ?shake the box? and randomize all the single-letter buttons again.     
    The random button must be selected by choosing one of the letters from this string: "ABCDEFGHIJKLMNOPQRSTUVWXYZAEIOUYAEIOUY" (Yes, note that there are more vowels than consonants.)
    i managed to make the window with random letters but whenever i click on it
    i dont know how to make it change again the letters. I using the actionlistener as well.
    How to make the window shake?
    Edited by: marufai on Sep 24, 2007 1:56 PM

    DrLaszloJamf wrote:
    hunter9000 wrote:
    Start googling for swing, animation, timer, and concurrency tutorials.Do you think he's really after some kind of groovy shaking animation?That's what his description sounds like! Until he describes what he's trying to do in more detail, I'll take him at face value :)

  • I need solutions for the following pls help

    1) what is the difference between doPost() and doGet()
    2) what is difference between sendRedirect() and forward()
    3) can we call destroy() in servlet class
    4) advantages and disadvantages of Hidden Form fields,URLRewritting,Cookies
    5) can we write a constructor for a servlet class

    1) in get request parameters are sent as part of request URL and its size is limited to some houndreds of KB (can't remember this limit) in case of post data is sent within request body. So in servlet you can have seaparate handling for get and post methods. I most cases you can create single routine like processRequest and call it from doGet and doPost
    2) Send redirect sends request to browser to redirect to different URL. Then browser redirects and user can see new URL (its done by browser), forward is used to move request processing to other servlet or JSP in SAME container. Client knows nothing and URL in browser does not change. It is typical approach used when implementing MVC approach. Eg. server gets request and process it eg. query data from database and puts result as request attribute (not parameter) then servlet forwards rerquest to JSP which is responsible for display (view).
    3) this is a public method of servlet so of course you can call it as any other visible method, but it is intended to let you make some cleansing when container is going to remove servlet.
    4) You shoud find some article on it, too large topic. Generally: url rewriting will work if cookies are enabled or disabled, when you use cookies for session id storage it won't work if cookies are disabled on client side. I can't see good reason to use hidden form fields when you can user URL rewriting.
    5) Of course you can but it won't be used by servlet container. Servlt's init method is the one you should use for initialization tasks.

  • A quick solution for creating simple SWF animation.

    A quick solution for creating simple SWF animation.
    So you’re not an expert with Adobe flash and you need
    to create a simple animation or banner for a client. Remember that
    old school point and click animation program you found on the web a
    couple of years age. Create your animation with the old school
    program then convert the .gif file to a SWF file. It worked for me.

    ok?

  • Simple solutions for cinematic look with 60i video?

    I'm sure this questions pops up over and over but I'm getting a huge headache trying to sort everything out through my searches, especially as a beginner to the film making world.  I'll get right to my questions, but first here is the equipment I am working with:
    Camcorder = Sony HDR-XR500, shooting in 1920 x 1080 60i AVCHD format
    Software = CS4 Creative Suite
    I recently threw together a 10 min movie of a trip I just arrived back from using Premiere Pro, and while it was a lot of fun putting together I really have no idea if I went about it the right way.  I want to practice taking a clip of mine and converting it to that cinematic look, and hope someone can help guide me through some steps.
    Here is what I want to achieve:
    - 2.35:1 pixel ratio
    - 24p or similar effect (trying to figure this out makes my head spin)
    I know color correction has a lot to do with the cinematic look, but I realize there are many ways of going about this so I'll refrain from asking any questions in regards to this for now.  (I did find using the Fast Color Corrector and setting Saturation to 75%, and Input levels to 20, 1, 220 gave a nice film look)
    Step 1: What settings should I use to create my new project?
    Capture Format = HDV?
    For the sequence presets should I use AVCHD 1080i30 (60i) non-anamorophic?
    Step 2: If I want to create a 2.35:1 aspect ratio, should I simply crop my clip?  I think I read somewhere for 1920 x 1080 video, crop 14% from top and bottom?  Or should I crop when I export out the movie?
    Step 3: What would be the simplest/quickest way of getting that 24fps look using Premiere Pro or After Effects?  I know shooting in 24p is obviously the easiest way, but should I simply deinterlace my 60i video by right clicking clip>Field Options> Always deinterlace to achieve similar effect?
    Step 4: Exporting video....again so many options I'm not sure what to do here.  Basically, could someone provide me with the best exporting options for the format I'm trying to achieve for:
    - Posting on Internet
    - Viewing on computer
    - And viewing on blu-ray
    I really appreciate any help to the above questions.  Big thanks!

    Step 1: Capture settings are irrelevant for AVCHD on that camera.  Just copy the entire folder structure intact to your hard drive.  Pr will find the copied footage through the Media Browser panel.  You may even be able to edit directly from the camera's HDD.  You should try it and see.
    Step 2: 1920x816 produces a 2.35:1 aspect ratio.  Assuming all of your action occurs in the exact vertical center of the shot, then you should crop 132 pixels from top and bottom.  Placing your 1080 footage into a custom progressive sequence of those dimensions should get you what you want, as long as you don't have Default scale to frame size selected in Preferences.
    Step 3: This is the tough one.  To get 24 fps out of 30 fps, one frame out of every 5 needs to be dropped.  This will produce perceptually jerky playback, especially if any motion at all is present.  So the remaining frames must be blended together in some way to smooth out the bump where the missing frame is.  Using AE to accomplish this is, IMHO, the best solution for an all-CS4 workflow.  In AE, you have 2 choices: Frame Mix and Pixel Motion.  PM produces better results, but FM renders faster.  If you haven't done any editing of the clips in Pr yet, then the best idea would be to convert all of the footage in AE before importing it into Pr.  If you've already got edits in place in Pr, then you can select all of the clips in the sequence and choose File | Adobe Dynamic Link | Replace with After Effects Composition.  Either way, each clip in AE must be individually interpreted to Separate Fields/Preserve Edges.  The comp settings must be set to 24p.  Then Frame Blending must be enabled for the comp, and finally, each Frame Blending Layer Switch must be set to either Frame Mix or Pixel Motion.  If you do use Dynamic Link, be sure to turn *off* Frame Blending in Pr, because AE has already taken care of that.
    Step 4: Because rendering will be so intensive and take so long, I recommend exporting an intermediate file from Pr, then re-importing that file to be used as the source for the various export formats.  Otherwise, you'll have to render all over again for each individual export format.  For web, I recommend Flash.  For computer viewing, it depends on your delivery method (CD, DVD, Download, External Hard Drive, Flash Drive, etc.).  For Blu-ray, either H.264 Blu-ray or MPEG2 Blu-ray.
    -Jeff

  • A simple network setup solution for a home user!

    Hi, I currently have a Power book PC g4 it has x2 external drives connected to it via time capsule and I have an old G4 clunky desktop downstairs that is connected via Ethernet but some previous owner must've doctored it because it can't run safari or itunes. I want to upgrade to an Imac and use my old powerbook PC g4 basically as a screen and keyboard downstairs to access my main new computer which is upstairs. I'm sick of duplicate files because the two computers currently are run as completely separate but on the same network!! I also have an iphone and itunes which I want to be able to sync and use from either computer so in other words I want all the same programs etc on each computer two screens two keyboards but ideally only one hard drive which is backed up by time capsule. How do I do this easily? Remote Desktop? Currently I have terrible time syncing and numerous software issues because I am trying to run the same software on each computer and they don't like it. I ought to have two licenses to do that but it is too expensive for the home user! I know I'm a bit stupid regarding these matters but geekology doesn't come naturally I'm sorry.

    I want to upgrade to an Imac and use my old powerbook PC g4 basically as a screen and keyboard downstairs to access my main new computer which is upstairs.
    Screen sharing lets you sort of do this, but don't expect it to be just like sitting in front of the remote computer. The connection will slow everything down and you won't get sound. Plus I'd be surprised if the PB had nearly as large a screen as any new iMac. This is not a realistic solution for day-to-day use.
    I'm sick of duplicate files because the two computers currently are run as completely separate but on the same network!!
    Sounds to me like you need to replace the old hardware with a new laptop rather than an iMac. Then you can take it everywhere and not have any sync issues.
    I am trying to run the same software on each computer and they don't like it. I ought to have two licenses to do that but it is too expensive for the home user!
    That's another reason to get a laptop... you could quit breaking the law and just install on one machine. Note, though, that if your software is as badly outdated as your hardware, it may not all work on the current version of the Mac OS (10.6.4, aka Snow Leopard). Check that before buying anything.

  • Is there a solution for Digital Persona and Windows 10 and Edge or Google

    I upgarded to windows 10 and now my digital persona does not work.  Is there a solution for Microsoft Edge?  If not is there a solution for google?  I can make google my defult browser but it does not work there either?  

    We upgraded one laptop at home and I wasn't very surprised to find out that the backup / imaging program we were using on Windows 7 (Backup Exec System Recovery) stopped working.  It's a nice program that I've been using for years - creates a base image then incrementals on a schedule.  Allows for simple full bare metal recovery or for file recovery by mounting an image inside the program.
    Have any of you tested anything similar in Windows 10?
    This topic first appeared in the Spiceworks Community

  • Simple button help needed!

    I want to make a simple round button that glows when you
    mouse over it and depresses when you click it.
    Apparently to do this I need to use Filters to make the glow
    and bevels. But Filtersonly work on movie clips, buttons and text.
    So I make a circle and convert it into a button symbol
    (Btn1). Then I make another button symbol (Btn2) and use the first
    button symbol (Btn 1) on the Up Over and Down frames of Btn 2.
    Assorted Filters are applied to Btn 1 on the Up Over and Down
    frames to get the effects I want.
    I test the button (Btn2) using Enable Simple Buttons. It
    works perfectly - glows on mouse over and depresses on click. Then
    I try Test Movie -- and the button doesn't work!!!
    Not does it work when exported as a SWF file!!!
    I watched a tutorial video that came with my Flash Pro 8
    Hands-On-Training (HOT) book and he used pretty much the same
    technique -- except he only tested his button with Enable Simple
    Buttons. I'll bet my house his didn't work with Test Movie either!
    The stupid thing, is I was just able to achieve exactly what
    I wanted very quickly using LiveMotion 2!
    What is wrong here? Why is it so impossible to create a glow
    button in Flash? Why has it been easy in Live Motion for years?
    All help appreciated!
    Thanks
    craig

    I thought the nesting button situation might be the problem
    BUT there is no other way to apply Filters to Up, Down, etc. Also,
    a freaking tutorial book described that as a valid method, but
    obviously it ain't.
    I tried using movieclips as well but basically had the same
    problem.
    I mentioned LiveMotion 2 because that ancient program can do
    easily what Flash Pro 8 seems incapable of.
    What is the logic behind not allowing Filters to be applied
    to simple graphics? It's absurd!
    There's got to be a way...

  • How to design simple person like this image(attached) using illustrator ??

    hi ,
    i want any one help me and tell me steps to design simple person like this using illustrator :

    hello,
    thanks ,

  • Hi when i send imessages it keeps showing up as my email address on the receiving device. I know its something simple! Help please.

    Hi when i send imessages it keeps showing up as my email address on the receiving device. I know its something simple! Help please.

    Hi Megamanfx,
    If you are having issues with the Sent From settings in iMessage on your iPhone, you may find the following article helpful:
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    Regards,
    - Brenden

  • Simple GUI - Help

    Hi, for my Java class, we have to write a simple GUI for a program that we wrote last week. This is what I have so far:
    import javax.swing.*;
    import java.awt.*;
    import java.util.Random;
    /* Class Kozyra which contains main method */
    public class Kozyra {     
        /* Method question: gets the user to enter whether or not he/she wants to continue
         * running the program */
        public static String question(){
              String s, answer;
              boolean valid;
              do{
                   s = JOptionPane.showInputDialog("Continue? (Y/N or P to Pause)");
                 answer = s.toUpperCase();
                 valid = answer.equals("Y") || answer.equals("N") || answer.equals("P");
                 if(!valid){
                        JOptionPane.showMessageDialog(null, answer + " is not a valid response. Please retype.");
                 } // end if
                 if(answer.equals("P")){
                      JOptionPane.showMessageDialog(null, "Game Paused.  Press OK to continue.");
              }while (!valid); // end do-while
              return answer;
        } // end method question
        public static void frame(){
             Homework3GUI frame = new Homework3GUI();
              frame.setTitle("CRAPS");
              frame.setLocationRelativeTo(null);
             frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setSize(600,400);
              frame.setLayout(new FlowLayout(FlowLayout.LEFT, 10, 20));
              frame.setVisible(true);
        } // end method frame
        /* Main method: creates new object called player and determines whether or not the game
         * continues running*/
        public static void main(String[] args){     
            frame();
            String answer = "Y";
              Dice player = new Dice(100, "");
              JOptionPane.showMessageDialog(null,"Welcome to CRAPS, " + player.getName());
              while(!player.busted() && !player.reachedGoal() && answer.equals("Y")){           
                player.begin();
                if(!player.busted() && !player.reachedGoal()){
                        answer = question();
                   } // end if
                   else{
                        answer = "N";
                   } // end if
              } // end while                 
        } // end main
    } // end class Homework3
    /* Beginning of class Dice (driver) */
    class Dice extends JPanel{
         // Declare variables
         private int amount, betValue;
         private int roll = 0;
        private String name;
            private boolean win, lose;
            private JTextField text1, text2, text3, text4, text5, text6;
         /* Constructor */
        public Dice(int amount, String name){
            this.name = name; // this refers to instance variabls
            this.amount = amount;
        } // end method Dice
        public void layout(){
             setLayout(new FlowLayout(FlowLayout.LEFT, 10, 20));
             text1 = new JTextField();
             text2 = new JTextField();
             text3 = new JTextField();
             text4 = new JTextField();
             text5 = new JTextField();
             text6 = new JTextField();
             add(text1, null);
             add(text2, null);
             add(text3, null);
             add(text4, null);
             add(text5, null);
             add(text6, null);
             text1.setSize(15,25);
             text2.setSize(15,25);
             text3.setSize(15,25);
             text4.setSize(15,25);
             text5.setSize(15,25);
             text6.setSize(15,25);
             text1.setLocation(10,10);
             text2.setLocation(10,40);
             text3.setLocation(10,70);
             text4.setLocation(10,100);
             text5.setLocation(10,130);
             text6.setLocation(10,160);
             setVisible(true);
        } // end method layout
        /* Prompts the user to enter his/her name using the scanner class and returns it as a string */
        public String getName(){
             String name = JOptionPane.showInputDialog("Please enter your name: ");
            return name;
        } // end method getName
        /* Asks the user to input his/her bet and determines if it is valid */
         private void getBet(){
              String betValueString = JOptionPane.showInputDialog("You have $" + amount +
                   ".  Please enter your bet: $");
              betValue = Integer.parseInt(betValueString);
              if(betValue > amount){
                      betValueString = JOptionPane.showInputDialog("You only have $" + amount +
                           ".  Please enter a bet that is less than or equal to $" + amount + ":  $");
                      betValue = Integer.parseInt(betValueString);
              } // end if
              if(betValue < 1){
                   betValueString = JOptionPane.showInputDialog("You have $" + amount +
                        ".  Please enter an amount greater than $1:  $");
                      betValue = Integer.parseInt(betValueString);
              } // end if
         } // end getBet
         /* Simulates the craps game and returns win */
         private boolean playGame(){
               int answer = roll();
               text1.setText("Your roll is: " + answer);
               win = answer == 11 || answer == 7;
               lose = answer == 2 || answer == 12;
               if(!(win || lose)){
                    int point = answer;
                    text2.setText("Your point value is: "+ point);
                    while(!(win||lose)){
                         answer = roll();
                         text3.setText("Your total is: " + answer);
                         win = answer == point;
                         lose = answer == 7;
                    } // end while
               } // end if
               return win;
          } // end method game
         /* Simulates the rolling of the die */
         public int roll(){
               int die1 = (int)(6*Math.random() + 1);
               int die2 = (int)(6*Math.random() + 1);
               text4.setText("You rolled " + die1 + " and " + die2 + ".  ");
               return die1 + die2;
          } // end method roll
         /* Informs the user of the result of his/her game and updates the amount of "money" */
         private void displayMessage(boolean win){
              if(win == true){
                   text5.setText("Congratulations, you won that round.  You bet $" + betValue +
                        " so you won $" + betValue + ". You now have $" + (amount += betValue));
              } // end if
              else{
                   text5.setText("Sorry, you lost that round.  You bet $" + betValue +
                        " so you lost $" + betValue + ".  You now have $" + (amount -= betValue));
              } // end else if
         } // end method displayMessage
        /* Determines if the user has busted or won and will or will not continue playing */
        public boolean terminate(){
             boolean go;
             if(busted() == true){
                  text6.setText("Sorry, you have lost. :( Somewhere, the world's tiniest violin is " +
                       "playing you a sad song.");
                  go = false;
             } // end if
             else if(reachedGoal() == true){
                  text6.setText("CONGRATULATIONS!  YOU HAVE BEAT THE ODDS AND WON!" +
                       " THE COSMOS SALUTES YOU! GO SPEND YOUR WINNINGS");
                  go = false;
             } // end else if
             else
                  go = true;
             return go;
        } // end method terminate
        /* Determines of goal of amount greater than or equal to $300 has been reached */
        public boolean reachedGoal(){
             return amount >= 300;
        } // end method reachedGoal
        /* Determines if the user has run out of money to play with */
        public boolean busted(){
            return amount <= 0;
        } // end method busted
        /* Calls other methods in order to play game */
        public void begin(){
            getBet();
            playGame();
            displayMessage(win);
            terminate();
        } // end begin
    } // end DiceI'm sure it's simple and terrible and all but I really don't know what I'm doing, and this is my first time writing a GUI (plus my professor's teaching consisted of him telling us to go look online). Firstly I can't get anything to show up on the frame. Secondly, it compiles but does not run and I am getting the following two errors:
    Exception in thread "main" java.lang.NullPointerException
    at Dice.roll(Kozyra.java:182)
    at Dice.playGame(Kozyra.java:155)
    at Dice.begin(Kozyra.java:238)
    at Kozyra.main(Kozyra.java:56)
    Note: C:\Program Files\Xinox Software\JCreatorV4LE\MyProjects\Honors2\Kozyra.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Any help would be appreciated, as I am becoming increasingly frustrated (I can't find where the pointer exception is and I have no idea what the "note" one is...). Thanks.

    Thanks, Corlett.
    The Homework3GUI thing was a vestige from something else that I missed correcting. However, I still cannot get anything to show up on the JFrame...Also, what does private static final long serialVersionUID = 54645635L; do?
    This is how the code reads now:
    import javax.swing.*;
    import java.awt.*;
    import java.util.Random;
    public class Kozyra2 extends JFrame{
          // returns true if user wishes to continue playing
         public static boolean playAgain() {
              return JOptionPane.YES_OPTION == JOptionPane.showConfirmDialog(null,
                   "Play again ?", "Do you wish to continue playing?", JOptionPane.YES_NO_OPTION);
          } // end method playAgain
          // builds and shows a GUI.
         public static void buildAndShowGUI(){
              Kozyra2 frame = new Kozyra2();
                 frame.setTitle("CRAPS");
                 frame.setLocationRelativeTo(null);
                 frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                 frame.setSize(600,400);
                frame.setLayout(new FlowLayout(FlowLayout.LEFT, 10, 20));
                 frame.setVisible(true);
          } // end buildAndShowGUI
         // Main method: gets this show on the road.
         public static void main(String[] args){
                buildAndShowGUI();
                Player player = new Player(100, enterName());
              JOptionPane.showMessageDialog(null,"Welcome to CRAPS, " + player.getName());
              while(player.play() && playAgain());
         } // end main method
         // returns the name entered by the user
         private static String enterName() {
              return JOptionPane.showInputDialog("Please enter your name: ");
         } // end method enterName
    } // end class
    class Player extends JPanel{
         private static final long serialVersionUID = 54645635L;
         private static final int TARGET_BALANCE = 300;
         private int balance;
         private String name;
         private JTextField[] text = null;
         public Player(int stake, String name){
              this.name = name;
                 this.balance = stake;
                 this.layoutPanel();
         } // end constructor
         public String getName() {
              return this.name;
         } // end method getName
         private void layoutPanel() {
                setLayout(new FlowLayout(FlowLayout.LEFT, 10, 20));
                 text = new JTextField[6];
                 for (int i=0; i<6; i++) {
                   text[i] = newTextField(10+i*30);
                   add(text, null);
              } // end for loop
              setVisible(true);
         } // end method layoutPanel
         private JTextField newTextField(int y) {
              JTextField t = new JTextField();
              t.setSize(15,25);
              setLocation(10,y);
              return t;
         } // end method newTextField
         // returns the users bet balance
         private int getBet(){
              while (true) {
                   try {
                        String response = JOptionPane.showInputDialog("You have " + balance + ". Your bet ? ");
                        int bet = Integer.parseInt(response);
                        if(bet>=1 && bet<=balance)
                             return bet;
                        JOptionPane.showMessageDialog(null, "Oops: An integer between 1 and " + balance + " is required.");
              } catch (NumberFormatException E) {
                   JOptionPane.showMessageDialog(null, "Oops: An integer value is required.");
              } // end try-catch
              } // end while loop
         } // end method getBet
         // returns true of the user wins this round.
         private boolean playRound(int bet){
              int score = roll();
              text[1].setText("Your score is: " + score);
              boolean win = (score == 11 || score == 7);
              boolean lose = (score == 2 || score == 12);
              int previousScore = score;
              while ( !(win||lose) ) {
                   score = roll();
                   text[3].setText("Your score is: " + score);
              win = (score == previousScore);
              lose = (score == 7);
              previousScore = score;
              } // end while loop
              if (win) {
                   balance += bet;
                   text[5].setText("You won. You won $" + bet + ". You now have $" + balance);
              } // end if statement
              else {
                   balance -= bet;
                   text[5].setText("You lost. You now have $" + balance);
              } // end else
              return win;
         } // end method playRoung
         // returns the total of rolling a pair of dice.
         public int roll(){
              int die1 = (int)(6*Math.random() + 1);
              int die2 = (int)(6*Math.random() + 1);
              int total = die1 + die2;
              text[4].setText("You rolled " + die1 + " and " + die2 + " = " + total);
              return total;
         } // end method roll
    // are we there yet?
         public boolean checkBalance(){
              if (balance <= 0) {
                   text[6].setText("Busted!");
              return true;
              } // end if statement
              if (balance >= TARGET_BALANCE) {
                   text[6].setText("Congratulations! Go spend your winnings.");
                   return true;
              } // end if statement
              return false;
         } // end method checkBalance
         public boolean play(){
              int bet = getBet();
              playRound(bet);
              return checkBalance();
         } // end method play
    } // end class Player

  • I just inherited a 64GB ipad. I have passwords for the deceased person but would like to sync it with my mac osx.  Know nothing about ipads. Help please

    I just inherited a 64 GB ipad.  I have passwords for the deceased person but would like to reset everything and start new. I use a mac/0SX but know nothing about an ipad other than turning it on.  I am in the same household as the deceased person but does not seem to be recognizing the wireless setup.  Any help would be appreciated. Any recommendations as to where to start.

    That's really enough information. You can update this iPad to iOS 6.1.2. If there is a microphone icon next to the space bar on the keyboard, you have an iPad 3. But if you are saying that it hasn't been touched for over a year, it probably is not the iPad 3. The iPad 3 is one year old this week IIRC.
    If you want, you can go to Settings >General>About>Model to find the model number and it you Google that, you can find out which version of the iPad it is.
    I just wanted to see what iOS you would be able to update to. I'm not sure what else to tell you other than what we've already stated. You should set this up as new, update the iOS and then start all over again with you own iTunes content.
    The link that Eric posted would be a good place to start so that you can get an idea of what the iPad can do. If you want to restore the iPad back to factory settings, you will need to do this with iTunes on your Mac. You must be running OS X 10.6.8 at minimum and must be using iTunes 10.6.3 (I think) in order to syn with iTunes on the Mac.
    This explains how to restore to factory settings.
    http://support.apple.com/kb/ht1414
    if you are that uncomfortable trying to do this on your own, and if there is an Apple Store near you, make an appointment at an Apple Store Genius Bar and ask an Apple tech to help you with it. That is what they do. There is no charge for an Apple Store Genius Bar visit. The stores also offer classes for the iPad that you might find useful as well.

Maybe you are looking for

  • Function module L_TO_CREATE_MULTIPLE and commit

    Hi, Does anyone knows if in one report I call function module L_TO_CREATE_MULTIPLE with parameter I_COMMIT_WORK = SPACE and if in the main report after the call of the function module i do a commit command that allows that the transfer order is creat

  • Certificate setup RDS 2012 R2

    Hi, I have set up an RDS 2012 R2 deployment for internal use. I plan to add a gateway server cluster for external access later (RDGW). That cluster will be placed in DMZ and use a public wildcard cert. It will connect external users to the farm. Inte

  • I have updated itunes but now it gives an error r6034 (runtime error) and itunes doesn`t start

    I have updated itunes but now it doesn`t start. I have removed all apple components and reinstalled itunes, but gives the same error: r6034 Runtime error. Now i cannot use itunes. Anybody can help me? Thanks in advance.

  • What is a heap zone? and why won't my movie finalize?

    I've made a few movies already.  Now imovie is telling it can't prepare the project due to a lack of space in the heap zone.  Help.

  • Best HD Output Settings

    I have just bought a SONY XR520VE Camera. I am recording on the camera's top quality setting. 1920 x 1080 50i HD at 16mbps. Could someone please advise me what setting in imovie 09 I should use to output the best possible HD quality file once my proj