Why does this browser get worse and worse after every update?

ever since updating it has froze,adobe crashes,and unresponsive script. it froze up for 25 minutes awhile ago. i let it stay frozen just to see how long it would stay frozen. what is up with this browser?

Try to disable protected mode in the Flash player.
See:
*[[/questions/929081]]
*[[/questions/928820#answer-340046]]
For the freezes try this:
*https://support.mozilla.org/kb/reset-firefox-easily-fix-most-problems
Create a new profile as a test to check if your current profile is causing the problems.
See "Basic Troubleshooting: Make a new profile":
*https://support.mozilla.org/kb/Basic+Troubleshooting#w_8-make-a-new-profile
There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
If the new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
See:
*http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

Similar Messages

  • Why is my battery life worse after software update.

    Why is my battery life worse following software update?

    Dont Bother Audre
    If you have updated to 6.1.1 and your phone is outside the warrenty perios, then you WILL have issues, so you take your phone to Apple and they will give you a replacement for £139 and they will also say its much cheaper what you paid for your handset!!!!
    Just wait for the next update - If they have a heart and care for the 4s users, they will fix the battery issue too
    Thanks

  • Why does my MBP get the grey screen after backing up to external hard drive???

    (firstly, i'm a complete moron on terminal, though i managed to unlock the external HD. i appreciate the simplicity of mac, i.e. a moron in many ways.)
    for some bizarre reason, every time i copy files to the external HD, i end up with a lock on the external HD and the dreaded spinning grey screen when i restart the MBP. i've managed to get rid of the grey screen by reinstalling with the snow leopard DVD without formatting, but this is obviously not practical. am i doing something wrong??
    the last time i did this, i dragged my "user" files. then i dragged my entire internal HD into a folder created in my external HD. i've done this with my powerbook and older OS without issues, but OS 10.5 and 10.6 don't seem to work without ending up with the spinning grey screen and a lock on the HD.
    thanks in advance for your input. (and please keep it simple...)

    no, but it's definitely not due to a corrupt external drive. this happened with two different brands of drives. the first time with a lacie, i thought my MBP hard drive was damaged, but it was determined that a reinstall was all it needed. the same thing happened with an OWC. they both work fine. there seems to be some kind of a permission problem which gets screwed up somwhere.

  • How is it possible for iTunes to get worse with every update??

    Seriously this is baffling me.
    I hate the new Get Info box, the auto-fill is terrible because as soon as I hit space bar to finish off the album artist etc. it's like the spacebar acts the same as hitting enter.
    I seem to notice that sometimes album artist or comments will disappear from the get info box despite me picking always show current fields
    I also massively dislike the fact that say if i've searched for a particular album in my library and I wanna just listen to that for a while, as soon as i click on a different playlist like recently added or the itunes store, it will no longer just play my album but will play my entire library, it's like it's forgotten that i had searched just for that particular album, kinda like if on the older versions when you paused a song and went into a different playlist it forgot what you was listening to
    just in general this feels really shoddy and a giant leap back, the only reason i'm reluctant to stop using is because it's easy to sync my iPhone through it and I use iTunes store a fair bit as it's normally quite alot cheaper than beatport etc
    I really hope they have a serious look at improving on this because I just think it's really poorly laid out and not very easy on the eye

    Is this even possible? I would be very surprised if it wasnt.

  • Why does this class not read and write at same time???

    I had another thread where i was trying to combine two class files together
    http://forum.java.sun.com/thread.jspa?threadID=5146796
    I managed to do it myself but when i run the file it does not work right. If i write a file then try and open the file it says there are no records in the file, but if i close the gui down and open the file everything get read in as normal can anybody tell me why?
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import bank.BankUI;
    import bank.*;
    public class testing extends JFrame {
       private ObjectOutputStream output;
       private BankUI userInterface;
       private JButton SaveToFile, SaveAs, Exit; //////////savetofile also saves to store need to split up and have 2 buttons
       //private Store store; MIGHT BE SOMETHING TO DO WITH THIS AS I HAD TO COMMENT THIS STORE OUT TO GET IT WORKING AS STORE IS USED BELOW
       private Employee record;
    //////////////////////////////////////from read
    private ObjectInputStream input;
       private JButton nextButton, openButton, nextRecordButton ;
       private Store store = new Store(100);
         private Employee employeeList[] = new Employee[100];
         private int count = 0, next = 0;
    /////////////////////////////////////////////from read end
       // set up GUI
       public testing()
          super( "Employee Data" ); // appears in top of gui
          // create instance of reusable user interface
          userInterface = new BankUI( 9 );  // nine textfields
          getContentPane().add( userInterface, BorderLayout.CENTER );
          // configure button doTask1 for use in this program
          SaveAs = userInterface.getSaveAsButton();
          SaveAs.setText( "Save as.." );
    //////////////////from read
    openButton = userInterface.getOpenFileButton();
          openButton.setText( "Open File" );
    openButton.addActionListener(
             // anonymous inner class to handle openButton event
             new ActionListener() {
                // close file and terminate application
                public void actionPerformed( ActionEvent event )
                   openFile();
             } // end anonymous inner class
          ); // end call to addActionListener
          // register window listener for window closing event
          addWindowListener(
             // anonymous inner class to handle windowClosing event
             new WindowAdapter() {
                // close file and terminate application
                public void windowClosing( WindowEvent event )
                   if ( input != null )
                             closeFile();
                   System.exit( 0 );
             } // end anonymous inner class
          ); // end call to addWindowListener
          // get reference to generic task button doTask2 from BankUI
          nextButton = userInterface.getDoTask2Button();
          nextButton.setText( "Next Record" );
          nextButton.setEnabled( false );
          // register listener to call readRecord when button pressed
          nextButton.addActionListener(
             // anonymous inner class to handle nextRecord event
             new ActionListener() {
                // call readRecord when user clicks nextRecord
                public void actionPerformed( ActionEvent event )
                   readRecord();
             } // end anonymous inner class
          ); // end call to addActionListener
    //get reference to generic task button do Task3 from BankUI
          // get reference to generic task button doTask3 from BankUI
          nextRecordButton = userInterface.getDoTask3Button();
          nextRecordButton.setText( "Get Next Record" );
          nextRecordButton.setEnabled( false );
          // register listener to call readRecord when button pressed
          nextRecordButton.addActionListener(
             // anonymous inner class to handle nextRecord event
             new ActionListener() {
                // call readRecord when user clicks nextRecord
                public void actionPerformed( ActionEvent event )
                   getNextRecord();
             } // end anonymous inner class
          ); // end call to addActionListener
    ///////////from read end
          // register listener to call openFile when button pressed
          SaveAs.addActionListener(
             // anonymous inner class to handle openButton event
             new ActionListener() {
                // call openFile when button pressed
                public void actionPerformed( ActionEvent event )
                   SaveLocation();
             } // end anonymous inner class
          ); // end call to addActionListener
          // configure button doTask2 for use in this program
          SaveToFile = userInterface.getSaveStoreToFileButton();
          SaveToFile.setText( "Save to store and to file need to split this task up" );
          SaveToFile.setEnabled( false );  // disable button
          // register listener to call addRecord when button pressed
          SaveToFile.addActionListener(
             // anonymous inner class to handle enterButton event
             new ActionListener() {
                // call addRecord when button pressed
                public void actionPerformed( ActionEvent event )
                   addRecord(); // NEED TO SPLIT UP SO DONT DO BOTH
             } // end anonymous inner class
          ); // end call to addActionListener
    Exit = userInterface.getExitAndSaveButton();
          Exit.setText( "Exit " );
          Exit.setEnabled( false );  // disable button
          // register listener to call addRecord when button pressed
          Exit.addActionListener(
             // anonymous inner class to handle enterButton event
             new ActionListener() {
                // call addRecord when button pressed
                public void actionPerformed( ActionEvent event )
                   addRecord(); // adds record to to file
                   closeFile(); // closes everything
             } // end anonymous inner class
          ); // end call to addActionListener
          // register window listener to handle window closing event
          addWindowListener(
             // anonymous inner class to handle windowClosing event
             new WindowAdapter() {
                // add current record in GUI to file, then close file
                public void windowClosing( WindowEvent event )
                             if ( output != null )
                                addRecord();
                                  closeFile();
             } // end anonymous inner class
          ); // end call to addWindowListener
          setSize( 600, 500 );
          setVisible( true );
         store = new Store(100);
       } // end CreateSequentialFile constructor
       // allow user to specify file name
    ////////////////from read
      // enable user to select file to open
       private void openFile()
          // display file dialog so user can select file to open
          JFileChooser fileChooser = new JFileChooser();
          fileChooser.setFileSelectionMode( JFileChooser.FILES_ONLY );
          int result = fileChooser.showOpenDialog( this );
          // if user clicked Cancel button on dialog, return
          if ( result == JFileChooser.CANCEL_OPTION )
             return;
          // obtain selected file
          File fileName = fileChooser.getSelectedFile();
          // display error if file name invalid
          if ( fileName == null || fileName.getName().equals( "" ) )
             JOptionPane.showMessageDialog( this, "Invalid File Name",
                "Invalid File Name", JOptionPane.ERROR_MESSAGE );
          else {
             // open file
             try {
                input = new ObjectInputStream(
                   new FileInputStream( fileName ) );
                openButton.setEnabled( false );
                nextButton.setEnabled( true );
             // process exceptions opening file
             catch ( IOException ioException ) {
                JOptionPane.showMessageDialog( this, "Error Opening File",
                   "Error", JOptionPane.ERROR_MESSAGE );
          } // end else
       } // end method openFile
    public void readRecord() // need to merger with next record
          Employee record;
          // input the values from the file
          try {
         record = ( Employee ) input.readObject();
                   employeeList[count++]= record;
                   store.add(record);/////////ADDS record to Store
              store.displayAll();
              System.out.println("Count is " + store.getCount());
             // create array of Strings to display in GUI
             String values[] = {
                        String.valueOf(record.getName()),
                            String.valueOf(record.getGender()),
                        String.valueOf( record.getDateOfBirth()),
                        String.valueOf( record.getID()),
                             String.valueOf( record.getStartDate()),
                        String.valueOf( record.getSalary()),
                        String.valueOf( record.getAddress()),
                           String.valueOf( record.getNatInsNo()),
                        String.valueOf( record.getPhone())
    // i added all those bits above split onto one line to look neater
             // display record contents
             userInterface.setFieldValues( values );
          // display message when end-of-file reached
          catch ( EOFException endOfFileException ) {
             nextButton.setEnabled( false );
          nextRecordButton.setEnabled( true );
             JOptionPane.showMessageDialog( this, "No more records in file",
                "End of File", JOptionPane.ERROR_MESSAGE );
          // display error message if class is not found
          catch ( ClassNotFoundException classNotFoundException ) {
             JOptionPane.showMessageDialog( this, "Unable to create object",
                "Class Not Found", JOptionPane.ERROR_MESSAGE );
          // display error message if cannot read due to problem with file
          catch ( IOException ioException ) {
             JOptionPane.showMessageDialog( this,
                "Error during read from file",
                "Read Error", JOptionPane.ERROR_MESSAGE );
       } // end method readRecord
       private void getNextRecord()
               Employee record = employeeList[next++%count];//cycles throught accounts
          //create aray of string to display in GUI
          String values[] = {String.valueOf(record.getName()),
             String.valueOf(record.getGender()),
              String.valueOf( record.getStartDate() ), String.valueOf( record.getAddress()),
         String.valueOf( record.getNatInsNo()),
         String.valueOf( record.getPhone()),
             String.valueOf( record.getID() ),
               String.valueOf( record.getDateOfBirth() ),
         String.valueOf( record.getSalary() ) };
         //display record contents
         userInterface.setFieldValues(values);
         //display record content
    ///////////////////////////////////from read end
    private void SaveLocation()
          // display file dialog, so user can choose file to open
          JFileChooser fileChooser = new JFileChooser();
          fileChooser.setFileSelectionMode( JFileChooser.FILES_ONLY );
          int result = fileChooser.showSaveDialog( this );
          // if user clicked Cancel button on dialog, return
          if ( result == JFileChooser.CANCEL_OPTION )
             return;
          File fileName = fileChooser.getSelectedFile(); // get selected file
          // display error if invalid
          if ( fileName == null || fileName.getName().equals( "" ) )
             JOptionPane.showMessageDialog( this, "Invalid File Name",
                "Invalid File Name", JOptionPane.ERROR_MESSAGE );
          else {
             // open file
             try {
                output = new ObjectOutputStream(
                   new FileOutputStream( fileName ) );
                SaveAs.setEnabled( false );
                SaveToFile.setEnabled( true );
              Exit.setEnabled( true );
             // process exceptions from opening file
             catch ( IOException ioException ) {
                JOptionPane.showMessageDialog( this, "Error Opening File",
                   "Error", JOptionPane.ERROR_MESSAGE );
          } // end else
       } // end method openFile
       // close file and terminate application
    private void closeFile()
          // close file
          try {
              //you want to cycle through each recordand add them to store here.
                                            int storeSize = store.getCount();
                                            for (int i = 0; i<storeSize;i++)
                                            output.writeObject(store.elementAt(i));
             output.close();
    input.close();// from read!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
             System.exit( 0 );
          // process exceptions from closing file
          catch( IOException ioException ) {
             JOptionPane.showMessageDialog( this, "Error closing file",
                "Error", JOptionPane.ERROR_MESSAGE );
             System.exit( 1 );
       } // end method closeFile
       // add record to file
       public void addRecord()
          int employeeNumber = 0;
          String fieldValues[] = userInterface.getFieldValues();
          // if account field value is not empty
          if ( ! fieldValues[ BankUI.IDNUMBER ].equals( "" ) ) {
             // output values to file
             try {
                employeeNumber = Integer.parseInt(
                   fieldValues[ BankUI.IDNUMBER ] );
                        String dob = fieldValues[ BankUI.DOB ];
                        String[] dateofBirth = dob.split ("-"); // what used to put between number chnage to /
                        String sDate = fieldValues[ BankUI.START ];
                        String[] startDate = sDate.split ("-");
                        String sex = fieldValues[ BankUI.GENDER ];
                        char gender = (sex.charAt(0)); // check if m or f prob check in employee
    if ( employeeNumber >= 0 ) {
                  /* create new record =String name, char gender, Date dob, String add, String nin, String phone, String id, Date start, float salary*/
                    record  = new Employee(
                    fieldValues[ BankUI.NAME ],
                        gender,
                    new Date(     Integer.parseInt(dateofBirth[0]),
                              Integer.parseInt(dateofBirth[1]),
                              Integer.parseInt(dateofBirth[2])),
                        fieldValues[ BankUI.ADDRESS ],
                        fieldValues[ BankUI.NATINTNO ],
                        fieldValues[ BankUI.PHONE ],
                        fieldValues[ BankUI.IDNUMBER ],
              new Date(     Integer.parseInt(startDate[0]),
                              Integer.parseInt(startDate[1]),
                              Integer.parseInt(startDate[2])),
              Float.parseFloat( fieldValues[ BankUI.SALARY ] ));
                        if (!store.isFull())
                             store.add(record);
                        else
                        JOptionPane.showMessageDialog( this, "The Store is full you cannot add\n"+
                         "anymore employees. \nPlease Save Current File and Create a New File." );
                             System.out.println("Store full");
                        store.displayAll();
                        System.out.println("Count is " + store.getCount());
                                  // output record and flush buffer
                                  //output.writeObject( record );
                   output.flush();
                else
                    JOptionPane.showMessageDialog( this,
                       "Account number must be greater than 0",
                       "Bad account number", JOptionPane.ERROR_MESSAGE );
                // clear textfields
                userInterface.clearFields();
             } // end try
             // process invalid account number or balance format
             catch ( NumberFormatException formatException ) {
                JOptionPane.showMessageDialog( this,
                   "Bad ID number, Date or Salary", "Invalid Number Format",
                   JOptionPane.ERROR_MESSAGE );
             // process exceptions from file output
             catch ( ArrayIndexOutOfBoundsException ArrayException ) {
                 JOptionPane.showMessageDialog( this, "Error with Start Date or Date of Birth\nPlease enter like: 01-01-2001",
                    "IO Exception", JOptionPane.ERROR_MESSAGE );
                      // process exceptions from file output
             catch ( IOException ioException ) {
                 JOptionPane.showMessageDialog( this, "Error writing to file",
                    "IO Exception", JOptionPane.ERROR_MESSAGE );
                closeFile();
          } // end if
       } // end method addRecord
       public static void main( String args[] )
          new testing();
    } // end class CreateSequentialFile

    Sure you can read and write at the same time. But normally you would be reading from one place and writing to another place.
    I rather regret avoiding the OP's earlier post asking how to combine two classes. I looked at the two classes posted and realized the best thing to do was actually to break them into more classes. But I also realized it was going to be a big job explaining why and how, and I just don't have the patience for that sort of thing.
    So now we have a Big Ball Of Tar&trade; and I feel partly responsible.

  • Firefox 32.0.3 sucks and it just gets worse with every update .

    Firefox 32.0.3 still has a lot of problems to their site.
    Here are some that need to be fixed with Firefox 33:
    1. The back, forward, refresh and bookmark buttons are shown in the right click page.
    2. When skipping through Flash videos, the time bar stops moving and buffering occurs.
    Don't even update me to this garbage automatically. I'm fine using Firefox 31.

    The back, forward, refresh, and bookmark buttons are currently shown as icons in the right-click context menu.
    You can select them with the cursor Down key.
    If you prefer text labels then you can install the "Classic Theme Restorer" extension.
    You can find the option to get text labels instead of icons in the context menu in the Options/Preferences of the CTR extension in the General UI section.
    Replace page context menu icons with labels (back, forward, stop, reload, bookmark page)
    Does Firefox 33 use the HTML5 player when you get those issues with buffering or is the Flash player used?
    The Flash player should give the Flash context menu when you right-click the player.

  • Why does my document get larger and larger?

    I am working with PDF files that suddenly get 10 or 20 times larger and I am only making modest comments and edits. When I try to split the docs to 2mg bits these parts are themselves 17 or 18 mgs. Any advice?

    Also Try Save As Other > Optimized PDF. When window opens:
    First click fonts Remove all but one version of each Font / font style (example only one copy of Helvetica, Helvetica Bold, Helvetica Italic, etc)
    Next click graphics. Unless it's needed to print an corporate report change all the Graphics to no more than 150dpi and Black & white 75 DPI.
    Save file under a slightly different name.
    As for the Fonts especially if created from a Word Document I've seen up to 6 or 8 different copies of the same font style in the same Document.  This especially true from created from Word PC.

  • HT5129 Why does this message appear over and over again?

    This message appears everytime I try to do something in iPhoto and freezes everything else.  Can I stop it from appearing?

    Click on the More Info button, go to iPhoto's Accounts preference pane and delete the MobileMe account. Next to go the Sustem/MobileMe preference pane and log out of MMe.  That will stop those messages.
    OT

  • Why does the ringtone sound worse AFTER I download it?

    Hi guys,
    I'm having an odd issue. I just bought three ringtones direct on my iPhone 4S from the iTunes 'Tones' section, and when I set them as ringtones and preview them on the phone they sound really crappy. When I previewed them in the 'Tones' section and streamed them the sound was full and clear. Any ideas?
    Much appreciated,
    Sacha

    I have exactly the same problem, the best way of describing the problem is that the ringtones sound very tinny, possibly distorted like they've completely lost the bass and much of the lower midrange.
    Like Sacha I've purchased 2 ring tones from the iTunes store within my iPhone 4S (Nicki Minay - Super Bass, and The City of Prague Philharmonic Orchestra - Star Trek the Motion Picture), within the store they sound great but as soon as their assigned to ring tones they sound awful.  At first I assumed that the downloads must have been poorly compressed or something but I've since confirmed they play great on my PC. 
    I've also noticed something even more odd, if I use the ringtone as a text message tone on the iPhone one of them sounds great as it should but the other ones won't even play, very strange!  I've had a look at the tones on my PC and both are 30 seconds long, and both are compressed to 256kbps at 44.1khz so no obvious differences.  I've recompressed them to alternative bit rates but nothing seems to make a difference to the sound quality as a ring tone.
    I've since tried both ringtones on my Wifes iPhone 4 and her's exhibits the same problems so not a handset or iPhone 4s specific issue.  It sounds to me like a software bug in iOS5?

  • Why does my iPOd over sync and 'lose' music every time

    Every time i plug my Ipod (5th gen 80GB)into my pc to automatically sync.
    The ipos 'loses' 1/3 of all the music and continues to sync it all back on again (even though there has been no change in any of the music). this happen every time!!!!! and 3000 odd tunes take a while.
    Had 1/4 of the art work display is incorrect.
    Is there a way to stop this.

    Try here:
    Can't connect to the iTunes Store
    Go to Settings>General>Time&Date and make sure it is set to automatic
    Try change the DNS to Google's 8.8.8.8

  • FiOS TV just gets worse with every update.

    First you take away Channel Reminder.  The primary reasons I chose FiOS TV. I don't want to record GD every program  I want the set top box to go to the program I want to watch without me remembering.
    The "New & Better" boxes.  Drops images, skips or pauses all the time on its own  Terrible pixelation more frequently on more channels.
    The "New" channel guide is VERY POORLY laid out and the colors and font make it very difficult to read.  Once again your "updates" are a step backwards and another reason the leave FiOS when my "commitemnt" runs out.  GOD what was I thinking?

    Richard1948 wrote:
    First you take away Channel Reminder.  The primary reasons I chose FiOS TV. I don't want to record GD every program  I want the set top box to go to the program I want to watch without me remembering.
    The "New & Better" boxes.  Drops images, skips or pauses all the time on its own  Terrible pixelation more frequently on more channels.
    The "New" channel guide is VERY POORLY laid out and the colors and font make it very difficult to read.  Once again your "updates" are a step backwards and another reason the leave FiOS when my "commitemnt" runs out.  GOD what was I thinking?
    Picture picture quality got little better and everything else got worsted!!!!!Banner with black high Contrast give me a break!!!
    1.Router: Quantum G1100 (Primary)2.Router :Nighthawk AC1900
    3.Speed:75/75 Mbps
    4.FIOS TV Ultimate HD
    5.FiOS Digital Voice Unlimited

  • Why does this purple rectangle appear at end of every clip???

    Before updating to PPCC 2014, I didn't see this purple whenever the playhead reach the end of a clip. Is this normal?

    Option to suppress End Of Sequence indicator
    The End Of Sequence Indicator, a purple colored band that appears along the right edge of the last frame of a clip or sequence, is now turned off by default.
    Overlay Settings control the End Of Sequence indicator. Because Overlay Settings are turned off by default, the End Of Sequence indicator is also turned off. 
    To view overlays but suppress the End of Sequence indicator, deselect End Of Media/Sequence Indicators in the Overlay Settings dialog.

  • Why does iMovie keep corrupting? Must reinstall after every use.

    Everytime I use iMovie to create a project, and then quit once I have finished the session, and then go back to it, the icon just bounces once and iMovie fails to open. The application corrupts and I have no idea why ... its not like I'm doing something wrong with it, just transferring my home videos onto DVD, but I swear everytime I quit it corrupts. Its very infuriating. Can someone suggest a reason why perhaps?

    There are two common reasons for this:
    A) The project you worked on is corrupt. This may happen when you empty iMovie's trash. So NEVER empty iMovie's trash.
    B) The iMovie preference file is corrupt. This happens from time to time, but not every time you open iMovie. Delete the file: com.apple.imovie3.plist
    (Yes, that's the name for both iMovie 3 and 4)

  • AirPlay is getting progressively worse with every update

    does anyone else expenice airplay getting getting worse with every update I don't know if it's the Apple tv update or iOS update I keep all my devices up to date on updates but it used to work perfect just one example if you use youtube you'll play something a add will play then nothing or if the video does play it will keep pausing another problem if yoy lock your phone video stops never used todo any of this

    +1
    Same issue with me. :)

  • Why does this little program crash sometimes?

    I don't know if the code of the program is the most important here, I'm guessing I have to learn some extra things to help the program not crash anymore. But what?
    My question remains, still: Why does this little program crash sometimes?, because I might guess wrong.
    The program is a small application that let's you introduce two numbers in 2 text fields (or if you want, there is also a button that generates some random int numbers to complete the text fields for you), let's you introduces the result of the division of those numbers in another text field, and the result of the multiplication of those numbers in another text field. Then you have another 2 buttons that after being pushed, tell you if you resolved the operations right.
    The application runs fine most of the times, but sometimes it just freezes when I push the button that generates new random numbers.
    Why does this happen? Why does this happen only sometimes and not all the time?

    package my.NumberAddition;
    * @author  zi02
    public class NumberAdditionUI extends javax.swing.JFrame {
        /** Creates new form NumberAdditionUI */
        public NumberAdditionUI() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">                         
        private void initComponents() {
            buttonGroup1 = new javax.swing.ButtonGroup();
            jPanel1 = new javax.swing.JPanel();
            jLabel1 = new javax.swing.JLabel();
            jLabel2 = new javax.swing.JLabel();
            jLabel3 = new javax.swing.JLabel();
            jTextField1 = new javax.swing.JTextField();
            jTextField2 = new javax.swing.JTextField();
            jTextField3 = new javax.swing.JTextField();
            jButton1 = new javax.swing.JButton();
            jButton2 = new javax.swing.JButton();
            jTextField4 = new javax.swing.JTextField();
            jButton4 = new javax.swing.JButton();
            jTextField5 = new javax.swing.JTextField();
            jLabel4 = new javax.swing.JLabel();
            jTextField6 = new javax.swing.JTextField();
            jButton5 = new javax.swing.JButton();
            jButton3 = new javax.swing.JButton();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "Number Addition", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 153, 204))); // NOI18N
            jLabel1.setText("First Number:");
            jLabel2.setText("Second Number:");
            jLabel3.setText("Multiply:");
            jTextField3.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jTextField3ActionPerformed(evt);
            jButton1.setText("Clear");
            jButton1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
            buttonGroup1.add(jButton1);
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
            jButton2.setText("Result");
            jButton2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
            buttonGroup1.add(jButton2);
            jButton2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton2ActionPerformed(evt);
            jButton4.setText("Result");
            jButton4.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
            buttonGroup1.add(jButton4);
            jButton4.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton4ActionPerformed(evt);
            jLabel4.setText("Divide:");
            jTextField6.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jTextField6ActionPerformed(evt);
            jButton5.setText("New Numbers");
            jButton5.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
            jButton5.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton5ActionPerformed(evt);
            javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
            jPanel1.setLayout(jPanel1Layout);
            jPanel1Layout.setHorizontalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jTextField6, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jTextField3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 112, Short.MAX_VALUE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jButton4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jButton2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jTextField4, javax.swing.GroupLayout.DEFAULT_SIZE, 41, Short.MAX_VALUE)
                                .addComponent(jTextField5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE)))
                        .addGroup(jPanel1Layout.createSequentialGroup()
                            .addGap(84, 84, 84)
                            .addComponent(jButton5)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButton1))
                        .addComponent(jTextField2)
                        .addComponent(jTextField1))
                    .addContainerGap())
            jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jButton1, jButton2, jButton4});
            jPanel1Layout.setVerticalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel1)
                        .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel2)
                        .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel3)
                        .addComponent(jButton2)
                        .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton4)
                        .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel4)
                        .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton1)
                        .addComponent(jButton5))
                    .addContainerGap(15, Short.MAX_VALUE))
            jButton3.setText("Exit");
            jButton3.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
            jButton3.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton3ActionPerformed(evt);
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 345, Short.MAX_VALUE)
                        .addComponent(jButton3, javax.swing.GroupLayout.Alignment.TRAILING))
                    .addContainerGap())
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton3)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            pack();
        }// </editor-fold>                       
    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {                                        
        System.exit(0);
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
        jTextField1.setText("");
        jTextField2.setText("");
        jTextField3.setText("");
        jTextField4.setText("");
        jTextField5.setText("");
        jTextField6.setText("");
        @SuppressWarnings("empty-statement")
    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                        
        // First we define float variables.
        float num1, num2, num3,  result;
        // We have to parse the text to a type float.
        num1 = Float.parseFloat(jTextField1.getText());
        num2 = Float.parseFloat(jTextField2.getText());
        // Now we can perform the addition.
        num3 = Float.parseFloat(jTextField3.getText());
        // We will now pass the value of result to jTextField3.
        // At the same time, we are going to
        // change the value of result from a float to a string.
        result = num1*num2;
        if (num3==result)
        jTextField5.setText("Correct");
        else jTextField5.setText("Wrong");
    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {                                        
        // First we define float variables.
        float num1, num2, num4, result;
        // We have to parse the text to a type float.
        num1 = Float.parseFloat(jTextField1.getText());
        num2 = Float.parseFloat(jTextField2.getText());
        // Now we can perform the addition.
        num4 = Float.parseFloat(jTextField6.getText());
        // We will now pass the value of result to jTextField3.
        // At the same time, we are going to
        // change the value of result from a float to a string.
        result = num1/num2;
        if (num4==result)
        jTextField4.setText("Correct");
        else jTextField4.setText("Wrong");
    private void jTextField6ActionPerformed(java.awt.event.ActionEvent evt) {                                           
    // TODO add your handling code here:
    private void jTextField3ActionPerformed(java.awt.event.ActionEvent evt) {                                           
    // TODO add your handling code here:
    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {                                        
        int number1,number2;
        number1 = (int)(Math.random()*100);
        number2 = (int)(Math.random()*100);
        while ((number1 < number2) || (number2 == 0) ||(number2==1)
                || (number1 % number2 !=0))
            number2 = (int)(Math.random()*10);       
        jTextField1.setText(String.valueOf(number1));
        jTextField2.setText(String.valueOf(number2));
        jTextField3.setText("");
        jTextField4.setText("");
        jTextField5.setText("");
        jTextField6.setText("");
        * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new NumberAdditionUI().setVisible(true);
        // Variables declaration - do not modify                    
        private javax.swing.ButtonGroup buttonGroup1;
        private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton2;
        private javax.swing.JButton jButton3;
        private javax.swing.JButton jButton4;
        private javax.swing.JButton jButton5;
        private javax.swing.JLabel jLabel1;
        private javax.swing.JLabel jLabel2;
        private javax.swing.JLabel jLabel3;
        private javax.swing.JLabel jLabel4;
        private javax.swing.JPanel jPanel1;
        private javax.swing.JTextField jTextField1;
        private javax.swing.JTextField jTextField2;
        private javax.swing.JTextField jTextField3;
        private javax.swing.JTextField jTextField4;
        private javax.swing.JTextField jTextField5;
        private javax.swing.JTextField jTextField6;
        // End of variables declaration                  
    }

Maybe you are looking for

  • I uninstalled FaceTime 1.1 in Lion, how do i get it back?

    Had the server problem so figured if I uninstalled it then reinstalled via Mac App Store then it might work...I was wrong and now I can't get 1.0.2 to work and can't get 1.1! Help me please, would be much appreciated.

  • CLDC emulator is not showing windows mobile emulator as a registered device

    Hi, I want to run one J2ME application on windows mobile 6 emulator. I have done the setup using CLDC emulation on windows Mobile Emulator. After doing installation of CLDC on emulator, need to register the emulator IP address in SDK. Done that using

  • Do i need to upgrade my OS?

    Do I need to upgrade the OS? i got my 8900 from germany tmobile Platfrm: 4.2.0.62 App version: 4.6.1.76 ( 138) let me know if i should upgradfe my OS? and do you have a link directly from blackberry site to download the OS? thanks.

  • Can't install Update/Version Cue

    When I try and update using the Adobe updater for Photoshop CS3, I get a message that "Adobe Version Cue Client 3.1.0 update failed to install because the update cannot be applied to the product. Please re-install the product and try again." Did that

  • Converting an appilcation to an applet

    I need some help with my logic in this algorithm <hr> import.awt.event.*; import.awt.*; import javax.swing.JApplet; public class name extends JApplet implements ActionListener {          call to subclass that creates Frame          create instance va