Please tell me why this won't work cross-platform (parallax)

http://jeyone.BusinessCatalyst.com

My new test site: http://jeyone.BusinessCatalyst.com

In chipboard with Adobe song > downloaded through Dream Weaver > account BC

IM struggling to understand why this Parallax site or this entire site will not work on iphone 5 or ipad

Simon

Hi Simon,.

iOS does not support Parallax scrolling.

The reason for this, is because Parallax is too heavy on the graphics processor. iOS cannot handle [yet].

Tags: Edge Animate

Similar Questions

  • I just upgraded my Firefox to version 9.0.1, I get multi-page opening now when I launch my browser. A page is my home page, another is welcome to Firefox, and the other is my LassPass. Can anyone tell my why this is happening?

    A page is my home page, another is welcome to Firefox, and the other is my LassPass. Can anyone tell my why this is happening?

    Create a new profile as a test to see if your profile is the source of the problems.

    See "basic troubleshooting: a new profile:

    There may be extensions and plugins installed by default in a new profile, so check that in "tools > Modules > Extensions & Plugins" in case there are still problems.

    If this new profile works then you can transfer files from the old profile to the new profile, but make sure not to copy corrupted files.

    See:

  • Also someone can enlighten please... why some DVDs burn work on local plasma screens in the buildings of the Council?

    Also someone can enlighten please... why some DVDs burn work on local plasma screens in the buildings of the Council?

    Also someone can enlighten please... why some DVDs burn work on local plasma screens in the buildings of the Council?

    ==================================
    Hard to say exactly... but it may be worth trying to use
    another brand of draft DVD and the slower burning speeds.

    Check the support site for your DVD burner... they can
    offer suggestions on the DVD blanks to use.

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • I input video file in the pdf, but do not play video file to ipad and iphone. Please tell me about this?

    I input video file in pdf format, and I can see play video at the office, but plays not not video files to ipad and iphone. Please tell me about this?

    iPad is not supported for the video file to PDF?

    Acrobat Reader for iOS does not support this.

  • I have a current subscription and valid for my laptop and still, this won't work for me?  Do I need to register with a serial number? and it is limited to a PC in my house?

    I have a current subscription and valid for my laptop and still, this won't work for me?  Do I need to register with a serial number? and it is limited to a PC in my house?

    Hi randyb71782130,

    Acrobat can be installed on 2 computers, but it can be activated on a computer at a given time.

    You have the subscription if you do not require a serial key, it will be activated using the Adobe ID once you connect.

    Now just let me know the cause, you try to activate Acrobat on your second system?

    What is the error code or exact error you receive?

    Kind regards

    Nicos

  • Can you please tell me why my subscription of the CC is spent $ 31,79 per month to $49.99 per month? I was not told that there is an increase.

    Can you please tell me why my subscription of the CC is spent $ 31,79 per month to $49.99 per month? I was not told that there is an increase.

    You SHOULD have received an email reminding you that your launch price would go up to regular price at the end of your first year

  • can someone tell me why this flv appears in chrome and not ie10

    can someone tell me why this flv appears in chrome and not ie10

    http://barbaracohenmusic.com/help.htm

    replace your div with this code

    http://www.Adobe.com/go/getflash' > '.

    http://www.Adobe.com/images/shared/download_buttons/get_flash_player.gif"alt ="Get Adobe Flash player"/ >

  • can I install photoshop on my computer mac laptop and my laptop as a backup? It works cross-platform?

    my purchase work cross platform?

    It depends on what you bought.  If you ask about a subscription to creative cloud, then Yes, you can install and activate on one or two platforms.  If you ask about a version of CS, unless you have purchased a multiplatform license, which is not at all normal, you can use it on the platform for which the license has been generated.

  • SIM-Free iPhone bought in Dubai, United Arab Emirates UNITED, to aid in the countries of the EU without iMessage and restriction of FaceTime. iMessage WORK PERFECTLY WELL, even on cell phones, but no FaceTime. Please tell me why?

    Hello to all on the Apple community!

    Recently, I bought the iPhone SIM-Free from the shop Duty Free in Dubai World.
    I used my iPhone in Dubai very shortly and I did not have iMessage and FaceTime option on my phone. I know that laws of United Arab Emirates telecommunication UNITED and I know why people out there have this apps.
    But when I arrived in my born country last week I put the new sim card without restriction for iMessage and FaceTime and when I open the Message in the settings, I saw "Power" toggle iMessage and I was surprised that it is possible that. When I pass switches on 'On' for iMessage, who runs BEGIN WORK PERFECTLY FINE WITHOUT ANY PROBLEM EVEN on LTE network.

    When I try to do the same thing with FaceTime, I saw that there is still no menu FaceTime in settings. I'm looking for in my iPhone and I find everywhere FaceTime app (Notification centar, use of boxes, installed Apps etc etc...), I want to say the FaceTime app is in my phone but is disabled and not showing somеhow.

    Please someone who knows this situation to respond to my question: can I activate FaceTime work as iMessage works now on my iPhone?
    Thank you!


    This is because one of the configuration files of the iPhone disables it for iPhones with AB, AE and AH maybe just before the / is their model numbers. If a Middle East SIM card in the iPhone, it can substitute for it, but no SIM card non - Middle Eastern won't. There is no other way to substitute it, or get FaceTime on your iPhone outside the Middle East.

    (142566)

  • Can someone please tell me what this means [Error 403: access Typekit No.] I try an FTP site, and it happens that I paid typekit, but it will not always work or synchronize with this site!

    I have a problem with the muse and the message above can someone tell me what this means

    Hello

    You mention that you have a paid account of Typekit. Is it

    1. part of a paid individual account Cloud Creative
    2. part of a paid cloud creative subscription through your organization
    3. a standalone Typekit account

    Thank you

    Abhishek

  • PLSQL script just suspended - please tell me why...

    SYS. DBMS_OUTPUT buffer overflow error - advise please!

    Hello.
    Could someone please please please read carefully my PLSQL code and tell me why its bombing with SYS. DBMS_OUTPUT buffer error? Ive limited what I thought, that was the problem - the 2nd cursor so it reads only 1 plug in before deciding to go ahead with the updates to the API, but it still errors...

    As you can see Ive also tried commenting on most of the lines dbms_ouput, but nothing helps...

    I tried the serveroutput ON SIZE UNLIMITED and the other thing that is unlimited you do now in 10 gr 2 but, once again, the code was just suspended for 30 minutes...

    =========== my script ==== ================

    / * Formatted on 30/01/2009 11:11 (trainer more v4.8.7) * /.
    SET serveroutput ON SIZE 1000000
    -serveroutput ON SIZE UNLIMITED FORMAT WORD_WRAPPED
    -SET serveroutput OFF
    SET verify OFF
    SET feedback OFF

    DECLARE
    -- *********
    -Debug/error handling
    -- *********
    v_err_seq NUMBER: = 0;
    v_err_num VARCHAR2 (30);
    v_err_msg VARCHAR2 (250);
    v_err_line VARCHAR2 (350);
    -- *********
    -Variable work
    -- *********
    p_hire_date DATE;
    p_business_group_id NUMBER: = 0;
    p_person_id NUMBER: = 0;
    p_address_line1 VARCHAR2 (240);
    p_date_of_birth VARCHAR2 (35);
    p_address_line2 VARCHAR2 (240);
    Employee_number VARCHAR2 (14);
    p_employee_number VARCHAR2 (14);
    emp_number VARCHAR2 (14);
    p_email_address VARCHAR2 (240);
    p_address_line3 VARCHAR2 (240);
    p_first_name VARCHAR2 (150);
    p_address_line4 VARCHAR2 (240);
    p_middle_names VARCHAR2 (30);
    p_post_code VARCHAR2 (30);
    p_last_name VARCHAR2 (150);
    p_nationality VARCHAR2 (30);
    p_sex VARCHAR2 (30);
    p_national_identifier VARCHAR2 (30);
    p_title VARCHAR2 (30);
    v_rec_cnt NUMBER: = 0;
    insert_flag VARCHAR2 (8);
    -ip_p_address_id NUMBER;
    ip_p_address_id per_addresses.address_id%TYPE;
    ip_p_object_version_number NUMBER;
    ip_p_party_id per_addresses.party_id%TYPE;
    l_person_id NUMBER;
    l_employee_number VARCHAR2 (35);
    l_validate BOOLEAN DEFAULT FALSE;
    l_assignment_id NUMBER;
    l_per_object_version_number NUMBER;
    l_asg_object_version_number NUMBER;
    l_per_effective_start_date DATE;
    l_per_effective_end_date DATE;
    l_full_name VARCHAR2 (240);
    l_per_comment_id NUMBER;
    l_assignment_sequence NUMBER;
    l_assignment_number VARCHAR2 (100);
    l_name_combination_warning BOOLEAN: = FALSE;
    l_assign_payroll_warning BOOLEAN: = FALSE;
    l_address_id NUMBER;
    l_object_version_number NUMBER;

    -return_code NUMBER;
    -return_message VARCHAR2 (2000);
    -command_prin VARCHAR2 (9000);

    -fh UTL_FILE. TYPE_DE_FICHIER;
    -path VARCHAR2 (135);
    -name VARCHAR2 (30);

    -- ***********************************
    -Get employee details work table info
    -- ***********************************
    CURSOR get_employee_details
    IS
    SELECT p_person_id, p_validate, p_hire_date, p_business_group_id,
    p_last_name, p_sex, p_date_of_birth, p_email_address,
    p_employee_number, p_first_name, p_marital_status,
    p_middle_names, p_nationality, p_title, p_national_identifier.
    p_address_line1, p_address_line2, p_address_line3,
    p_address_line4, p_post_code
    OF SU_TEMPLOYEE_DETAILS;

    -- *****************************************
    -check the details used table PER_ALL_PEOPLE_F news
    -- *****************************************
    CURSOR c_check_employee (emp_number VARCHAR2)
    IS
    SELECT per.person_id, per.business_group_id, per.last_name,
    per.start_date, per.date_of_birth, per.email_address,
    per. Employee_number, per.first_name, per.marital_status,
    per.middle_names, per.nationality, per.national_identifier,
    per. Sex, per.title, padd.address_id, padd.primary_flag,
    PADD.address_line1, padd.address_line2, padd.address_line3,
    PADD.town_or_city, padd.postal_code, padd.telephone_number_1,
    PADD.object_version_number
    OF per_all_people_f by, per_addresses padd
    WHERE per.employee_number = emp_number
    "AND TRUNC (per.start_date) > 1 January 2009"
    AND per.person_id = padd.person_id;

    SheikYerbouti c_check_employee % ROWTYPE;
    BEGIN
    -v_err_seq: = 2;
    -command_prin: = SQLERRM;
    -p (l_string);
    -path: = "% SU_TOP/employees";
    -name: = "utl_tester.txt";
    LOOP
    -- ***********************************
    -Process each record in the table of work
    -- ***********************************
    FOR v_emp IN get_employee_details
    LOOP
    v_rec_cnt: = v_rec_cnt + 1;

    -- ************************************
    -determine if there are already customers
    -- ************************************
    OPEN c_check_employee (v_emp.p_employee_number);

    EXTRACTION c_check_employee
    IN SheikYerbouti.

    IF c_check_employee % NOTFOUND
    THEN
    insert_flag: = 'I ';
    ON THE OTHER
    insert_flag: = 'X '.
    END IF;

    IF insert_flag = 'I '.
    THEN
    DBMS_OUTPUT. PUT_LINE
    ("Employee does not exist, continue the import...");
    ON THE OTHER
    DBMS_OUTPUT. PUT_LINE
    ("Employee found - cannot import recording.");
    END IF;

    CLOSE C_check_employee;

    -- ***********************************
    -Create new record PER_ALL_PEOPLE_F and PER_ADDRESSES of
    -record of the table info
    -- ***********************************
    IF insert_flag = 'I '.
    THEN
    START-procedure used - import
    -fh: = UTL_FILE. FOPEN (name, path, "w");
    -UTL_FILE. Put_line (fh,' import used...) Hang on...! ") ;
    -UTL_FILE. FCLOSE (FH);

    -DBMS_OUTPUT. PUT_LINE (' ');
    -DBMS_OUTPUT. Put_line (' import used...) Hold on...! ');
    -DBMS_OUTPUT. PUT_LINE (' ');
    BEGIN
    Hr_Employee_Api.create_gb_employee
    (p_validate = > l_validate,)
    p_hire_date = > v_emp.p_hire_date,
    p_business_group_id = > v_emp.p_business_group_id,
    p_date_of_birth = > v_emp.p_date_of_birth,
    p_email_address = > v_emp.p_email_address,
    p_first_name = > v_emp.p_first_name,
    p_middle_names = > v_emp.p_middle_names,
    p_last_name = > v_emp.p_last_name,
    p_sex = > v_emp.p_sex,
    p_ni_number = > v_emp.p_national_identifier,
    p_employee_number = > v_emp.p_employee_number,
    p_person_id = > l_person_id,
    p_title = > v_emp.p_title,
    p_assignment_id = > l_assignment_id,
    p_per_object_version_number = > l_per_object_version_number,
    p_asg_object_version_number = > l_asg_object_version_number,
    p_per_effective_start_date = > l_per_effective_start_date,
    p_per_effective_end_date = > l_per_effective_end_date,
    p_full_name = > l_full_name,
    p_per_comment_id = > l_per_comment_id,
    p_assignment_sequence = > l_assignment_sequence,
    p_assignment_number = > l_assignment_number,
    p_name_combination_warning = > l_name_combination_warning,
    p_assign_payroll_warning = > l_assign_payroll_warning
    );
    -DBMS_OUTPUT. PUT_LINE ('.. employee updated successfully..');
    -DBMS_OUTPUT. PUT_LINE (' ');
    EXCEPTION
    WHILE OTHERS
    THEN
    NULL;
    -DBMS_OUTPUT. PUT_LINE ('..) SQLCodeErrors:-' | SQLCODE);
    -DBMS_OUTPUT. PUT_LINE (' ');
    -DBMS_OUTPUT. Put_line (' no. used:-' | v_emp.p_employee_number);
    -DBMS_OUTPUT. Put_line (' name ' | v_emp.p_last_name);

    -DBMS_OUTPUT. Put_line (' record failed to load...) ' || SQLERRM);
    -DBMS_OUTPUT. Put_line (' record failed to load...) ' || l_string);
    -DBMS_OUTPUT. Put_line (SUBSTR (command_prin, 1, 250));
    END;

    START-import procedure address - partners
    -DBMS_OUTPUT. PUT_LINE ('.. and address the employee associate...');
    Hr_Person_Address_Api.create_person_address
    (p_validate = > l_validate,)
    -p_effective_date = > v_emp.p_hire_date,
    p_effective_date = > SYSDATE,.
    p_pradd_ovlapval_override = > NULL,
    p_validate_county = > NULL,
    p_person_id = > l_person_id,
    p_primary_flag = > 'Y ',.
    p_style = > 'GB_GLB ',.
    -p_date_from = > v_emp.p_hire_date,
    p_date_from = > SYSDATE,.
    p_date_to = > NULL,
    p_address_type = > NULL,
    p_comments = > NULL,
    p_address_line1 = > v_emp.p_address_line1,
    p_address_line2 = > v_emp.p_address_line2,
    p_address_line3 = > v_emp.p_address_line3,
    p_town_or_city = > v_emp.p_address_line4,
    p_region_1 = > NULL,
    p_region_2 = > NULL,
    p_region_3 = > NULL,
    p_postal_code = > v_emp.p_post_code,
    p_country = > v_emp.p_nationality,
    p_telephone_number_1 = > NULL,
    p_telephone_number_2 = > NULL,
    p_telephone_number_3 = > NULL,
    p_addr_attribute_category = > NULL,
    p_addr_attribute1 = > NULL,
    p_addr_attribute2 = > NULL,
    p_addr_attribute3 = > NULL,
    p_addr_attribute4 = > NULL,
    p_addr_attribute5 = > NULL,
    p_addr_attribute6 = > NULL,
    p_addr_attribute7 = > NULL,
    p_addr_attribute8 = > NULL,
    p_addr_attribute9 = > NULL,
    p_addr_attribute10 = > NULL,
    p_addr_attribute11 = > NULL,
    p_addr_attribute12 = > NULL,
    p_addr_attribute13 = > NULL,
    p_addr_attribute14 = > NULL,
    p_addr_attribute15 = > NULL,
    p_addr_attribute16 = > NULL,
    p_addr_attribute17 = > NULL,
    p_addr_attribute18 = > NULL,
    p_addr_attribute19 = > NULL,
    p_addr_attribute20 = > NULL,
    p_add_information13 = > NULL,
    p_add_information14 = > NULL,
    p_add_information15 = > NULL,
    p_add_information16 = > NULL,
    p_add_information17 = > NULL,
    p_add_information18 = > NULL,
    p_add_information19 = > NULL,
    p_add_information20 = > NULL,
    -p_party_id = > NULL,
    p_party_id = > ip_p_party_id,
    p_address_id = > ip_p_address_id,
    p_object_version_number = > ip_p_object_version_number
    );
    -DBMS_OUTPUT. Put_line (' updated address of the / Insertion was successful! ');
    -OUTPUT WHEN command_prin IS NULL;
    -command_prin: = SUBSTR (command_prin, 251);
    END;
    END;
    -- ******************************
    -End of the related customer details
    -- ******************************

    -- ******************************
    END IF;
    END LOOP;
    -DBMS_OUTPUT. Put_line (' to read: ' | v_rec_cnt);

    -EXCEPTION
    -WHILE OTHERS THEN
    -RESTORATION;
    -Output error message
    -v_err_num: = TO_CHAR (SQLCODE);
    -v_err_msg: = SUBSTR (SQLERRM, 1, 250);
    -v_err_line: = ' Oracle error (seqno =' | v_err_seq |) ') ' ||
    -v_err_num |' occurred processing file ' |
    -TO_CHAR(v_rec_cnt + 1) |': ' | v_err_msg;
    -DBMS_OUTPUT. Put_line (v_err_line);
    END LOOP;

    COMMIT;
    END;
    -END;
    /

    EXIT;

    ======================================

    much, much obliged...
    Steven

    Maybe I'm missing something, but I don't see one in your outer loop EXIT condition...

    DECLARE
    .
    .
    
    BEGIN
    LOOP
      FOR v_emp IN get_employee_details
      LOOP
        v_rec_cnt := v_rec_cnt + 1;
        .
        .
      END LOOP;
    END LOOP;   <---- No EXIT for this loop
    
    COMMIT;
    END;
    
  • Hello, I have a hp 309g. can someone please tell me why there is no driver installed.

    Can someone tell me why my C309g has no drivers. and yet, it prints very satisfactory

    I fully agree that every day is an opportunity to learn something new. Learning was never end... Yes, in your operating system, drivers are preloaded. If you curious you can click on start and go to devices and printers and there you have an option Add a printer, click that and then click on next and then your OS will be retriever all drivers installed not only hp but many other manufactures... But these are just the basic drivers...

    You will find the complete software in the link below...

    http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?cc=us&DLC=en&lang=en&LC=en&product=3793676&task=&

  • Is could someone please tell me why my paintComponent() is called infinitely?

    I'm having problems understanding why my paintComponent() method is called infinitely and to explain why this would be much appreciated!

    This is the code where the question is:
    package project;
    
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Font;
    import java.awt.FontMetrics;
    import java.awt.Graphics;
    import java.awt.GridBagConstraints;
    import java.awt.GridBagLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.ButtonGroup;
    import javax.swing.JButton;
    import javax.swing.JCheckBox;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JRadioButton;
    import javax.swing.JTextField;
    import javax.swing.SwingConstants;
    
    public class UserInterface extends JPanel
    {
    //    private JTextField orb1ChargeDensityTextField; // don't remember what I have this for or if it's a mistake
    //    private JTextField orb2ChargeDensityTextField; // don't remember what I have this for or if it's a mistake
        private JFrame frame;
        private JTextField orb1ChargeTextField;
        private JTextField orb2ChargeTextField;
        private JTextField orb1InitialVelocityTextField;
        private JTextField orb2InitialVelocityTextField;
        private JTextField gravityConstantTextField;
        private JCheckBox considerGravity;
        private JCheckBox considerElectricity;
        private JRadioButton inVacuumRadioButton;
        private JRadioButton inAirRadioButton;
        private JRadioButton inOtherMediumRadioButton;
        private JPanel graphicsPanel = this;
        private JPanel buttonsPanel;
        private Orb orb1;
        private Orb orb2;
        private boolean regularComponentsAdded = false;
        private JLabel orb1InitialVelocityLabel;
        private JLabel orb2InitialVelocityLabel;
        private JLabel orb1ChargeLabel;
        private JLabel orb2ChargeLabel;
        private JLabel gravityConstantLabel;
    //    private JPanel orb1InitialVelocityPanel;
    //    private JPanel orb2InitialVelocityPanel;
    //    private JPanel gravityConstantPanel;
        private JButton simulateButton;
        private GridBagConstraints c;
        private boolean simulationStarted = false;
        private Common common = new Common();
        private JLabel planetaryRadiusLabel;
        private JTextField planetaryRadiusTextField;
        private JLabel planetaryMassLabel;
        private JTextField planetaryMassTextField;
        private JLabel dielectricConstantPanel;
        private JTextField dielectricConstantTextField;
        private JLabel orb1HeightLabel;
        private JLabel orb2HeightLabel;
        private JTextField orb1HeightTextField;
        private JTextField orb2HeightTextField;
        private JLabel separationDistanceLabel;
        private JTextField separationDistanceTextField;
        private JLabel dragCoefficientLabel;
        private JTextField dragCoefficientTextField;
        private JLabel orb1RadiusLabel;
        private JTextField orb1RadiusTextField;
        private JLabel orb2RadiusLabel;
        private JTextField orb2RadiusTextField;
    
        public UserInterface()
        {
            createPanels();
            createOrbs();
            setLabelProperties();
            setTextFieldProperties();
            setCheckBoxProperties();
            setRegularButtonProperties();
            setRadioButtonProperties();
            setPanelProperties();
            setFrameProperties();
        }
    
        public void setLabelProperties()
        {
            orb1InitialVelocityLabel = new JLabel("First orb's initial velocity (m/s): ");
            orb1InitialVelocityLabel.setVerticalAlignment(SwingConstants.TOP);
            orb2InitialVelocityLabel = new JLabel("Second orb's initial velocity (m/s): ");
            orb2InitialVelocityLabel.setVerticalAlignment(SwingConstants.TOP); // CHECK!!!
            orb1ChargeLabel = new JLabel("First orb's charge (C): ");
            orb2ChargeLabel = new JLabel("Second orb's charge (C): ");
            gravityConstantLabel = new JLabel("Gravity constant (m/s^2): ");
            planetaryRadiusLabel = new JLabel("Planetary radius (m): ");
            planetaryMassLabel = new JLabel("Planetary mass (kg): ");
            dielectricConstantPanel = new JLabel("Dielectric constant: ");
            orb1HeightLabel = new JLabel("First orb's height (m): ");
            orb2HeightLabel = new JLabel("Second orb's height (m): ");
            separationDistanceLabel = new JLabel("Separation distance (m): ");
            dragCoefficientLabel = new JLabel("Drag coefficient: ");
            orb1RadiusLabel = new JLabel("First orb's radius (m): ");
            orb2RadiusLabel = new JLabel("Second orb's radius (m): ");
        }
    
        public void setPanelProperties() // layout needs some serious fixing!!!
        {
            if(!regularComponentsAdded)
            {
                // Initial GridBagLayout settings
                c = new GridBagConstraints();
                c.anchor = GridBagConstraints.FIRST_LINE_START;
                c.weighty = 0; //etho
                c.fill = GridBagConstraints.HORIZONTAL;
                c.gridheight = 1; // is for the the specific component when adding - not height for all components together
    
                buttonsPanel.setSize(400, 200);
                buttonsPanel.setLayout(new GridBagLayout());
    
                buttonsPanel.setBackground(Color.CYAN);
                graphicsPanel.setBackground(Color.GREEN);
    
                c.gridx = 1; c.gridy = 1;
                buttonsPanel.add(considerElectricity, c);
                considerElectricity.setBackground(Color.YELLOW);
    
                c.gridx = 2; c.gridy = 1;
                buttonsPanel.add(considerGravity, c);
    
                c.gridx = 1; c.gridy = 2; c.gridwidth = 1; c.weighty = 0; // etho
                buttonsPanel.add(orb1InitialVelocityLabel, c);
    
                c.gridx = 2; c.gridy = 2;
                buttonsPanel.add(orb1InitialVelocityTextField, c);
    
                c.gridx = 1; c.gridy = 3;
                buttonsPanel.add(orb2InitialVelocityLabel, c);
    
                c.gridx = 2; c.gridy = 3;
                buttonsPanel.add(orb2InitialVelocityTextField, c);
    
                c.gridx = 1; c.gridy = 5; c.gridwidth = 1;
                buttonsPanel.add(gravityConstantLabel, c);
                c.gridx = 2; c.gridy = 5;
                buttonsPanel.add(gravityConstantTextField, c);
    
                c.gridx = 1; c.gridy = 6;
                buttonsPanel.add(orb1ChargeLabel, c);
    
                c.gridx = 2; c.gridy = 6;
                buttonsPanel.add(orb1ChargeTextField, c);
    
                c.gridx = 1; c.gridy = 7;
                buttonsPanel.add(orb2ChargeLabel, c);
    
                c.gridx = 2; c.gridy = 7;
                buttonsPanel.add(orb2ChargeTextField, c);
    
                c.gridx = 1; c.gridy = 8;
                buttonsPanel.add(planetaryRadiusLabel, c);
    
                c.gridx = 2; c.gridy = 8;
                buttonsPanel.add(planetaryRadiusTextField, c);
    
                c.gridx = 1; c.gridy = 9;
                buttonsPanel.add(planetaryMassLabel, c);
    
                c.gridx = 2; c.gridy = 9;
                buttonsPanel.add(planetaryMassTextField, c);
    
                c.gridx = 1; c.gridy = 10;
                buttonsPanel.add(dielectricConstantPanel, c);
    
                c.gridx = 2; c.gridy = 10;
                buttonsPanel.add(dielectricConstantTextField, c);
    
                c.gridx = 1; c. gridy = 11;
                buttonsPanel.add(orb1HeightLabel, c);
    
                c.gridx = 2; c.gridy = 11;
                buttonsPanel.add(orb1HeightTextField, c);
    
                c.gridx = 1; c.gridy = 12;
                buttonsPanel.add(orb2HeightLabel, c);
    
                c.gridx = 2; c.gridy = 12;
                buttonsPanel.add(orb2HeightTextField, c);
    
                c.gridx = 1; c.gridy = 13;
                buttonsPanel.add(separationDistanceLabel, c);
    
                c.gridx = 2; c.gridy = 13;
                buttonsPanel.add(separationDistanceTextField, c);
    
                c.gridx = 1; c.gridy = 14;
                buttonsPanel.add(dragCoefficientLabel, c);
    
                c.gridx = 2; c.gridy = 14;
                buttonsPanel.add(dragCoefficientTextField, c);
    
                c.gridx = 1; c.gridy = 15;
                buttonsPanel.add(orb1RadiusLabel, c);
    
                c.gridx = 2; c.gridy = 15;
                buttonsPanel.add(orb1RadiusTextField, c);
    
                c.gridx = 1; c.gridy = 16;
                buttonsPanel.add(orb2RadiusLabel, c);
    
                c.gridx = 2; c.gridy = 16;
                buttonsPanel.add(orb2RadiusTextField, c);
    
                c.gridx = 1; c.gridy = 17;
                buttonsPanel.add(inVacuumRadioButton, c);
    
                c.gridx = 1; c.gridy = 18;
                buttonsPanel.add(inAirRadioButton, c);
    
                c.gridx = 1; c.gridy = 19; c.weighty = 1;
                buttonsPanel.add(inOtherMediumRadioButton, c);
    
                c.gridx = 1; c.gridy = 20; c.weighty = 0; c.gridwidth = 2;
                buttonsPanel.add(simulateButton, c);
    
            }
            if(considerElectricity.isSelected())
            {
                orb1ChargeLabel.setVisible(true);
                orb1ChargeTextField.setVisible(true);
                orb2ChargeLabel.setVisible(true);
                orb2ChargeTextField.setVisible(true);
                dielectricConstantPanel.setVisible(true);
                dielectricConstantTextField.setVisible(true);
                orb1HeightLabel.setVisible(true);
                orb2HeightLabel.setVisible(true);
                orb1HeightTextField.setVisible(true);
                orb2HeightTextField.setVisible(true);
                separationDistanceLabel.setVisible(true);
                separationDistanceTextField.setVisible(true);
                dragCoefficientLabel.setVisible(true);
                dragCoefficientTextField.setVisible(true);
                orb1RadiusLabel.setVisible(true);
                orb2RadiusLabel.setVisible(true);
                orb1RadiusTextField.setVisible(true);
                orb2RadiusTextField.setVisible(true);
            }
            else
            {
                orb1ChargeLabel.setVisible(false);
                orb1ChargeTextField.setVisible(false);
                orb2ChargeLabel.setVisible(false);
                orb2ChargeTextField.setVisible(false);
                dielectricConstantPanel.setVisible(false);
                dielectricConstantTextField.setVisible(false);
                separationDistanceLabel.setVisible(false);
                separationDistanceTextField.setVisible(false);
                dragCoefficientLabel.setVisible(false);
                dragCoefficientTextField.setVisible(false);
                orb1RadiusLabel.setVisible(false);
                orb2RadiusLabel.setVisible(false);
                orb1RadiusTextField.setVisible(false);
                orb2RadiusTextField.setVisible(false);
            }
            if(considerGravity.isSelected())
            {
                gravityConstantLabel.setVisible(true);
                gravityConstantTextField.setVisible(true);
                planetaryRadiusLabel.setVisible(true);
                planetaryRadiusTextField.setVisible(true);
                planetaryMassLabel.setVisible(true);
                planetaryMassTextField.setVisible(true);
                orb1HeightLabel.setVisible(true);
                orb1HeightTextField.setVisible(true);
                orb2HeightLabel.setVisible(true);
                orb2HeightTextField.setVisible(true);
            }
            else
            {
                gravityConstantLabel.setVisible(false);
                gravityConstantTextField.setVisible(false);
                planetaryRadiusLabel.setVisible(false);
                planetaryRadiusTextField.setVisible(false);
                planetaryMassLabel.setVisible(false);
                planetaryMassTextField.setVisible(false);
                orb1HeightLabel.setVisible(false);
                orb1HeightTextField.setVisible(false);
                orb2HeightLabel.setVisible(false);
                orb2HeightTextField.setVisible(false);
            }
    //        buttonsPanel.add(orb1ChargeDensityTextField); // don't remember what I have this for or if it's a mistake
    //        buttonsPanel.add(orb2ChargeDensityTextField); // don't remember what I have this for or if it's a mistake
    //        frame.pack();
            buttonsPanel.validate(); // THIS SEEMS TO NOT BE NEEDED BUT KEEP IT UNTIL I LOOK FURTHER INTO THIS!!!
            buttonsPanel.setVisible(true);
    
    //        System.out.println("The width is: " + buttonsPanel.getWidth()); // here for testing purposes
        }
    
        public void setRadioButtonProperties()
        {
            inVacuumRadioButton = new JRadioButton("Vacuum");
            inAirRadioButton = new JRadioButton("Air");
            inOtherMediumRadioButton = new JRadioButton("Other");
            inVacuumRadioButton.setSelected(true);
    
            ButtonGroup group = new ButtonGroup();
            group.add(inVacuumRadioButton);
            group.add(inAirRadioButton);
            group.add(inOtherMediumRadioButton);
        }
    
        public void setRegularButtonProperties()
        {
            simulateButton = new JButton("Simulate");
    
            simulateButton.addActionListener(new ActionListener()
            {
                public void actionPerformed(ActionEvent e)
                {
                    // The following is test code and is not the real deal type of simulation
                    orb1.setX(0); simulationStarted = true;
    //                Timer timer = new Timer(100, new Repaint());
                }
            });
        }
    
    //    public class Repaint implements ActionListener
    //    {
    //        public void actionPerformed(ActionEvent e)
    //        {
    //            repaint();
    //        }
    //    }
    
        public void createPanels()
        {
            buttonsPanel = new JPanel();
        }
    
        public void createOrbs()
        {
            orb1 = new Orb();
            orb2 = new Orb();
        }
    
        protected void paintComponent(Graphics g)
        {
            super.paintComponent(g);
            drawTitle(g);
            // THE FOLLOWING IS DATA CALCULATED AND SHOVED INTO THE ORB CLASS BEING USED
            g.setColor(Color.RED);
            orb1.setX(0.03F); orb1.setY(0.1F); // temporary for testing purposes
            if(orb1RadiusTextField.getText() != null)
                orb1.setRadius(Float.parseFloat(orb1RadiusTextField.getText()));
            else
                orb1.setRadius(0.3F);
            System.out.println("The nummber is this: " + Float.parseFloat(orb1RadiusTextField.getText()));
            g.fillOval(getPixelXCoordinate(orb1.getX()), getPixelYCoordinate(orb1.getY()), convertMetresToPixels(orb1.getRadius()), convertMetresToPixels(orb1.getRadius()));
        }
    
        public int convertMetresToPixels(double metres)
        {// This method only converts metres to pixels and does not take into account where the pixels are drawn
            int pixels = -1;
            int scalar = 3000;
            pixels = (int) (scalar*metres);
            return pixels;
        }
    
        public int getPixelXCoordinate(double metresXCoordinate)
        {
            return convertMetresToPixels(metresXCoordinate);
        }
    
        public int getPixelYCoordinate(double metresYCoordinate)
        {
            return (int) (frame.getHeight() - convertMetresToPixels(metresYCoordinate));
        }
    
        public void drawTitle(Graphics g) // There's an issue with the delay from normal/unformatted text to special/formatted text
        {
            String title = "Welcome to the orb program!";
            FontMetrics fontMetrics = g.getFontMetrics();
            graphicsPanel.setFont(new Font("Times", Font.BOLD, 20));
    
            // Get the position of the leftmost character in the baseline
            int x = fontMetrics.stringWidth(title);
            int y = fontMetrics.getAscent();
    
            //
            g.drawString(title, x, y);
    
            // Nullify unused references for garbage collector
            fontMetrics = null;
            title = null;
        }
    
        public void setFrameProperties()
        {
            frame = new JFrame();
            frame.setTitle("Orb program");
            frame.setVisible(true);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setSize(1100, 800); // change resolution in conjunction with FontMetrics title placement
            frame.setLocationRelativeTo(null);
            frame.setLayout(new BorderLayout());
    //        frame.add(buttonsPanel); // uncomment this later
            frame.add(graphicsPanel);
            frame.add(buttonsPanel, BorderLayout.EAST);
        }
    
        public void setCheckBoxProperties()
        {
            considerGravity = new JCheckBox("Enable gravity", false);
            considerGravity.addActionListener(new ActionListener()
            {
                public void actionPerformed(ActionEvent e)
                {
                    setPanelProperties();
                }
            });
    
            considerElectricity = new JCheckBox("Enable electrical forces", true);
            considerElectricity.addActionListener(new ActionListener()
            {
                public void actionPerformed(ActionEvent e)
                {
                    setPanelProperties();
                }
            });
        }
    
        public void setTextFieldProperties()
        {
            float tempElementaryCharge = common.getElementaryCharge();
            gravityConstantTextField = new JTextField("9.79205");
            orb1ChargeTextField = new JTextField(String.valueOf(tempElementaryCharge));
            orb2ChargeTextField = new JTextField(String.valueOf(-1 * tempElementaryCharge));
            orb1InitialVelocityTextField = new JTextField("0");
            orb2InitialVelocityTextField = new JTextField("0");
            planetaryRadiusTextField = new JTextField("6.3685E6");
            planetaryMassTextField = new JTextField("5.9721986E24");
            dielectricConstantTextField = new JTextField("1.00058986");
            orb1HeightTextField = new JTextField("1");
            orb2HeightTextField = new JTextField("1");
            separationDistanceTextField = new JTextField("1");
            dragCoefficientTextField = new JTextField("0.47");
            orb1RadiusTextField = new JTextField("0.03");
            orb2RadiusTextField = new JTextField("CACA2");
    
    //        orb1ChargeDensityTextField = new JTextField(""); // don't remember what I have this for or if it's a mistake
    //        orb2ChargeDensityTextField = new JTextField(""); // don't remember what I have this for or if it's a mistake
        }
    
    //    public String getOrb1Initial // I WAS HERE LAST!!!!
    
        public static void main(String[] args) // main() will be removed later
        {
            UserInterface userInterface = new UserInterface(); // this will later be called via the main() of the launcher program
        }
    }
    (Just so that can compile the program here)
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    
    package project;
    
    /**
     *
     * @author Deniz
     */
    
    public class Common
    {
        private float coulombConstant = (float) 8.9875517873681764E9; // Nm^2/C^2
        private float newtonGravitationalConstant = (float) 6.67428E-11; // Nm^2/kg^2
        private float planetaryMass = (float) 5.9721986E24; // (in kg) defaults to Earth's mass
        private float dielectricConstant = (float) 1.00058986; // dimensionless
        private float planetaryRadius;
        private float height;
        private float systemImpulse;
        private final float airDensityEarth = (float) 1.29; // in kg/m^3 // THIS NUMBER COULD BE WRONG
        private float mediumDragForce;
        private final float airDensityMars = (float) 2.30446139E-5; // g/(cm^3)
        private float gravityConstant; // = (float) 9.80665; // in m/s^2 // set it via text field instead of here by default
        private float mediumDensity; // also called fluid density
        private float separationDistance; // m
        private float electricalPotentialEnergy;
        private double electricField;
        private double gravitationalPotentialEnergy;
        private double totalKineticEnergy;
        private double totalPotentialEnergy;
        private boolean inVacuum = true; // should make it get from text field - check my logic again jic
    //    private float potentialDifference; // I'M PRETTY SURE THIS IS FOR V = ED AND V = ED IS FOR UNIFORM ELECTRIC FIELDS AND THIS PROGRAM DOESN'T SIMULATE SOMETHING WITH A UNIFORM ELECTRIC FIELD
        private boolean inAir = false; // should make it get from text field - check my logic again jic
        private boolean inOtherMedium = false; // neglect any additional electrical properties that MIGHT exist(depending on the fluid in question)
        private final float elementaryCharge = (float) 1.6E-19;
    
        public Common()
        {
    
        }
    
        public float getElementaryCharge()
        {
            return elementaryCharge;
        }
    
        public double getSeparationDistance()
        {
            return separationDistance;
        }
    
        public float getSystemImpulse()
        {
            return systemImpulse;
        }
    
        public float getElectricalPotentialEnergy()
        {
            return electricalPotentialEnergy;
        }
    
        public double getElectricField()
        {
            return electricField;
        }
    
        public float getMediumDragForce()
        {
            if(inVacuum)
            {
                return 0;
            }
            else
            {
                return mediumDragForce;
            }
        }
    
        public void setSeparationDistance(Orb orb1, Orb orb2, float surfaceSeparation)
        {
            separationDistance = surfaceSeparation + orb1.getRadius() + orb2.getRadius();
        }
    
        public void setMediumDragForce(float mediumDragForce)
        {
            this.mediumDragForce = mediumDragForce;
        }
    
        public void setMediumDragForce(float mediumDensity, double velocity, float referenceArea, float dragCoefficient)
        {
            mediumDragForce = (float) (-0.5 * mediumDensity * referenceArea * dragCoefficient * Math.pow(velocity, 2)); // haven't paid too much attention to direction of the vector yet
        }
    
        public void setMediumDensity(float mediumDensity)
        {
            this.mediumDensity = mediumDensity;
        }
    
    //    public void setSeparationDistance(Point point)
    //    {
    //
    //    }
    
        public void setSystemImpulse(float systemImpulse)
        {
            this.systemImpulse = systemImpulse;
        }
    
        public float getGravityConstant()
        {
            if(gravityConstant > 9.7 && gravityConstant < 9.9)
            {
                return gravityConstant;
            }
            else
            {
                gravityConstant = (float) (newtonGravitationalConstant * planetaryMass/Math.pow((planetaryRadius + height),2));
                return gravityConstant;
            }
        }
    
        public double getGravitationalPotentialEnergy()
        {
           return gravitationalPotentialEnergy;
        }
    
        public double getTotalKineticEnergy()
        {
            return totalKineticEnergy;
        }
    
        public double getTotalPotentialEnergy()
        {
            return totalPotentialEnergy;
        }
    
    //    public float getPotentialDifference()
    //    {
    //        return potentialDifference;
    //    }
    
        public void setGravityConstant(float gravityConstant)
        {
            this.gravityConstant = gravityConstant;
        }
    }
    (Just so that can compile the program here)
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    
    package project;
    
    import java.awt.Point;
    
    /**
     *
     * @author Deniz
     */
    public class Orb
    {
        private boolean fixedOrbPosition = false;
        private float currentVelocity;
        private float currentSpeed;
        private float orbArea;
        private double charge;
        private double mass;
        private Point position;
        private float x;
        private float y;
        private double initialVelocity;
        private double intialSpeed;
        private float chargeDensity;
        private float potential;
        private float gamma; // in order to implement relativistic linear momentum
        private float initialMomentum;
        private float finalMomentum;
        private float impulse;
        private float radius;
        private final float sphereDragCoefficient = 0.47F;
        private float weight;
    
        public Orb()
        {
    
        }
    
        public float getWeight()
        {
            return weight;
        }
    
        public float getRadius()
        {
            return radius;
        }
    
        public void setRadius(float radius)
        {
            this.radius = radius;
        }
    
        public double getSpeed()
        {
            return currentSpeed;
        }
    
        public double getVelocity()
        {
            return currentVelocity;
        }
    
        public double getPotential()
        {
            return potential;
        }
    
        public double getCharge()
        {
            return charge;
        }
    
        public float getChargeDensity()
        {
            return chargeDensity;
        }
    
        public float getInitialMomentum()
        {
            return initialMomentum;
        }
    
        public float getFinalMomentum()
        {
            return finalMomentum;
        }
    
        public float getImpulse()
        {
            return impulse;
        }
    
        public double getMass()
        {
            return mass;
        }
    
        public Point getPosition()
        {
            return position;
        }
    
        public float getX()
        {
            return x;
        }
    
        public float getY()
        {
            return y;
        }
    
        public void setInitialVelocity(double initialVelocity)
        {
            this.initialVelocity = initialVelocity;
        }
    
        public void setImpulse(float impulse)
        {
            this.impulse = impulse;
        }
    
        public void setInitialMomentum(float initialMomentum)
        {
            this.initialMomentum = initialMomentum;
        }
    
        public void setVelocity(float currentVelocity)
        {
            this.currentVelocity = currentVelocity;
        }
    
        public void setSpeed(float currentSpeed)
        {
            this.currentSpeed = currentSpeed;
        }
    
        public void setFinalMomentum(float finalMomentum)
        {
            this.finalMomentum = finalMomentum;
        }
    
        public void setX()
        {
            // THIS ONE SHOULD OBTAIN ITS DATA FROM A JTEXTFIELD!!!
        }
    
        public void setX(float currentX)
        {
            this.x = currentX;
        }
    
        public void setY()
        {
            // THIS ONE SHOULD OBTAIN ITS DATA FROM A JTEXTFIELD!!!
        }
    
        public void setY(float currentY)
        {
            this.y = currentY;
        }
    
        public void setCharge(double charge)
        {
            this.charge = charge;
        }
    
        public void setChargeDensity(float chargeDensity)
        {
            this.chargeDensity = chargeDensity;
        }
    
        public void setMass(float mass)
        {
            this.mass = mass;
        }
    
        public void setPosition(Point position)
        {
            this.position = position;
        }
    
        public void setPosition(int x, int y)
        {
            this.x = x;
            this.y = y;
        }
    }
    Thanks in advance!

    Because you keep changing the font of drawTitle(), which causes another paint event.

    You also break a primary rule of the paintComponent() that is specified in the Javadoc. You are not supposed to make permanent changes to the provided GraphicsContext. If you need to change, you are supposed to copy it.

    Also that:

            // Nullify unused references for garbage collector
            fontMetrics = null;
            title = null;
    

    is nonsense. Local variables are about to go in any case out of reach. Don't waste your time with this.

  • My Yahoo toolbar no longer works! I have to keep replace to make it work. Can someone please tell me WHY! He has been working very well

    My yahoo toolbar works great for a few years on Firefox. Now, every time I open Firefox none of the functions of the toolbar works!

    I have to keep re - install to make it work.

    I don't know if this is a problem with Firefox or Yahoo, because it is almost impossible to communicate with any of you.

    Can someone help and tell me how to solve this problem once and for all?

    Thank you in advance-

    Great! Thanks for letting me know.

  • someone tell me why this works?

    I have A.T.T.  as my server and couldn't get my wrt54g to work as a wireless network.  I called att and all their efforts have failed.  So I unplugged the router of entry from my modem and pluged it in the release of issue 2 of the router.  The router without entry works perfectly... and I don't need a number of IP... Now I can use my laptop completely out of the barn... Where are the Geeks?

    I spoke this connection with some of my friends and they could not believe that it works... Thanks a lot for the explanation... Don Moler

Maybe you are looking for