Could someone please check my code is correct and clean

Hello

I bought a template and it handled for my site, could someone please check my code to make sure I have it correct. Because what I do here I will duplicate for the rest of the page.

< class li =' same illustration portfolio-entry ">"

< img src = "images/portfolio thumbnails/illustration & fashion/1_britten.jpg" width = "220" height = "240" alt = 'Britten Motorcycle Illustration' >

< div class = "entry-inch standard" > < a class = "thumblink" href = "images/portfolio images - news/illustration & fashion/1_britten_lge.jpg" rel = "prettyPhoto [2376]" >

< img src = "images/portfolio thumbnails/illustration & fashion/1_britten.jpg" alt = "Britten Motorcycle Illustration" class = "portfolio category" > < span class = 'extra' > < / span > < /a > < / div >

< div class = "entry-title" > Web </span > < span > < a title = "Permanent link Soft store" rel = "bookmark" > Britten Motorcyles < /a > < / div >

< a class = "more-link" href = "images/portfolio images - news/illustration & fashion/1_britten_lge.jpg" rel = "prettyPhoto [2376]" > < span > </span > < /a > < /li > Design view

This line, I don't want the text to a link anywhere:

< div class = "entry-title" > Web </span > < span > < a title = "Permanent link Soft store" rel = "bookmark" > Britten Motorcyles < /a > < / div >

Web site: www.lorraines.co.nz

Thanks in advance

You can check your code with the following online tools:

CSS - http://jigsaw.w3.org/css-validator/

HTML - http://validator.w3.org/

Nancy O.

ALT-Web Design & Publishing

Web | Graphics | Print | Media specialists

http://ALT-Web.com/

Tags: Dreamweaver

Similar Questions

  • Could someone please help me with a problem I'm having with my update s/ie window?

    I was trying to find a way to get help with my concern about internet/window update of. 99% of the time when I'm in train to get updated window or check the mails on yahoo and a few other sites, my page is immediately closed. I tried to delete the cookies and files and restarted and system restore and reset my IE as well. Nothing works, and I know that I need some updates (would be nice to be able to check my email yahoo also).

    This is what happens in detail:

    I type in the Web site window update and as soon as he gets it closes immediately. When I type in the website of yahoo and then click check mail it closes immediately. There were a few other sites, but these are the 2 most important for me. I have no error code and no warning, just boom that it is gone and everytime I try to bring everything back up, it closes. I did everything I could and I am at a loss.

    Could someone please help me if I can get things and finally be happy and not so stressed. This happened for some time now. I tried to contact technical support, but I can't ever get a straight when clicking we answer contact as normal websites don't. So I try here.

    Please help me solve this problem... also I "think" I have IE 8? could be 7, but I think that 8. I can't because it messes up my computer.

    Thanks, I look forward to talk to someone soon then.

    Catt

    You probably have a nasty malware infection.

    In case you are unable to solve this problem with the suggestions of others, I think you should choose interactive free aid to this page:
  • Lost-Hi could someone please tell me where I can find my 25 digit product key

    Hi could someone please tell me where I can find my key thanx, 25-digit product.

    Hello Samuelballantyne,

    If your copy of Windows came pre-installed on your PC then you should be able to locate the product key 25 letter on the bottom of your laptop or on the back or the side if it's a desktop computer.

    If, however, you bought a copy the retail Windows; in other words you bought the OS yourself in a box from a retailer will the product key on the box or the sleeve of the DVD opertaing system.

    I hope that the product key will be in one of these two places. However, another option, assuming you still have the operating system installed on your PC, is to download a third application of the called party Magic Jelly Bean Keyfinder http://www.magicaljellybean.com/keyfinder/ download this application and then run it on your PC it will then show you the product key number.

    In addition, when you write the number make you that read correctly as a B can easily be confused with a 8. If you writeie down the wrong number, then you will not be able to install the operating system properly.

    This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.

    John Barnett MVP: Windows XP Expert associated with: Windows Expert - consumer: www.winuser.co.uk | vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com

  • Can someone please tell me the "see correct / more effective to get the 'status' XML ' attributes

    Can someone please tell me the "see correct / more effective to get the 'status' XML ' attributes (ID, CssClass, Description and IsActive to the XML code below):

    Implementation will be the standalone .swf file

    (XML)

    <ArrayOfLineStatus>
    <LineStatus ID="0" StatusDetails="">
        <BranchDisruptions/><Line ID="1" Name="Bakerloo"/>
        <Status ID="GS" CssClass="GoodService" Description="Good Service" IsActive="true">         
             <StatusType ID="1" Description="Line"/></Status></LineStatus>
    </ArrayOfLineStatus>

    < ArrayOfLineStatus >

    < LineStatus ID = "0" StatusDetails = "" >

    < BranchDisruptions / >

    < line ID = "1" Name = "Bakerloo" / >

    < State ID = 'GS' CssClass = "GoodService" Description = "Good Service" IsActive = "true" >

    < StatusType ID = '1' Description = 'Line' / > < / status >

    < / LineStatus >

    < / ArrayOfLineStatus >

    There is no good way with as2:

    trace(this.firstChild.childNodes[1].childNodes[4].) Attributes ['ID']);

    trace(this.firstChild.childNodes[1].childNodes[4].) Attributes ['CssClass']);

    etc.

  • could not find a server reports and analysis hyperion running on localhost port 6800. Please check your connection string server and verify that the server is

    Hi all

    We have properly installed and configured Hyperion Reporting and analysis 11.1.2.4 in windows 2012 server however when I try to logint to the workspace, I get an error like "start-up of the specified document does not exist in the repository." "Select a new start under the General Preferences tab document" monitoring of "could not find a server reports and analysis hyperion running on localhost at port 6800. Please check your connection string server and verify that the server is up '.



    10.PNG


    11.PNG

    HyS9RaFramework_epmsystem2-syserr:

    GsmNotFound

    com.brio.one.services.globalservicemanager.GSMException: GsmNotFound

    at com.brio.one.services.globalservicemanager.GSMFactory.getGSM (unknown Source)

    to com.brio.one.client.ClientFactory. < init >(Unknown Source)

    to com.brio.one.client.ClientFactory. < init >(Unknown Source)

    to com.brio.one.client.ClientFactory$ ClientFactoryInitializer.connect (unknown Source)

    at com.brio.one.client.ClientFactory.getClientFactoryConnect (unknown Source)

    at com.brio.one.client.ClientFactory.getDefaultGSM (unknown Source)

    at com.brio.one.web.properties.ApplicationProperties.getDefaultGSM (unknown Source)

    at com.brio.one.web.properties.ApplicationProperties.getDefaultGSMContext (unknown Source)

    at com.sqribe.WS.WSBaseServlet.setDefaultGSMContext (unknown Source)

    at com.sqribe.WS.WSBaseServlet.initLogging (unknown Source)

    at com.sqribe.WS.WSBaseServlet.loadConfiguration (unknown Source)

    at com.sqribe.WS.WSBaseServlet.init (unknown Source)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletInitAction.run (StubSecurityHelper.java:283)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)

    at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)

    to weblogic.servlet.internal.StubLifecycleHelper. < init > (StubLifecycleHelper.java:48)

    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)

    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1981)

    at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1955)

    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1874)

    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3155)

    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1518)

    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:487)

    to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:427)

    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)

    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:201)

    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:249)

    to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:427)

    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)

    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:28)

    to weblogic.application.internal.BaseDeployment$ 2.next(BaseDeployment.java:672)

    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)

    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:59)

    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)

    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)

    at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)

    at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)

    to weblogic.management.deploy.internal.DeploymentAdapter$ 1.doActivate(DeploymentAdapter.java:52)

    at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)

    to weblogic.management.deploy.internal.AppTransition$ 2.transitionApp(AppTransition.java:31)

    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:261)

    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:246)

    at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:170)

    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:124)

    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:181)

    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:97)

    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    In the workspace, it shows that the Service is pending.

    14.PNG

    EMP Diagnostic Report:

    13.PNG

    Can help kindly out how should I solve this problem.

    I restarted the services and rebooted the Machine but still getting the same error.

    Kind regards

    VJ


    Hello

    I've reconfigured the Reporting, analysis, and everything by, I chose "Drop table" and the issue was resolved.

    Kind regards

    VJ

  • Could someone please tell Adobe programmers to give the possibility to remove ' home, tools, documents, learn Adobe icon, link icon Mobile and sign in "from the Acrobat Reader toolbar.

    Could someone please tell Adobe programmers to give the possibility to remove ' home, tools, documents, learn Adobe icon, link icon Mobile and sign in "from the Acrobat Reader toolbar.

    Even assuming that we could achieve these programmers they don't make decisions like that, do marketing.

  • I turned on my PC today and I did not "PRINT" option when I go to the drop down "FILE" menu... totally gone... Could someone please advise me how to recover?

    I turned on my PC today and I did not "PRINT" option when I go to the drop down "FILE" menu... totally gone... Could someone please advise me how to recover?

    Thank you for your comments... I guess it is the restoration of the system for me!

  • A .cab file that is necessary for the installation can not be trusted. Please check Cryptographic Services are enabled and the certificate file is valid. »

    OT: URGENT HELP!

    Hi, I searched ALL the DirectX solutions and yet he's just not going to download! I just want to play Gmod but I need DirectX 11. Whenever I try to download DirectX it says 'a necessary .cab file for installation can not trust. Please check Cryptographic Services are enabled and the certificate file is valid. "I have my encryption services activated, but it STILL refuses to download. -HELP-

    Hello

    I'm sure that DX11 is already a part of win 8...

    Maybe what you really need...

    DirectX Runtime June 2010, which is an optional update that needs a lot of games.

    Even my Lexmark printer requires... I'll include a link to the full installer...

    This is a package to free extraction. It will extract after double-clicking it so be sure to note the location where extracted you\it.

    Open the folder, and then double-click DXSETUP.

    http://www.Microsoft.com/en-us/download/confirmation.aspx?ID=8109

  • Is could someone please tell me what this means... Bad Format

    I am running windows xp and get an error message (bad Format, the operation could not be performed due to wrong format)... This only happens on one program that I try to start, all programs, open and run. Could someone tell me how to solve this problem, that I have to reformat my hard drive and reinstall windows. .. Thank you

    Probably be better if you contact Propellerheads. Because they are . Or check their forum

  • I have a lot of Acrobat (pdf) files, but cannot find how to remove the ones I don't want. Could someone please?

    I have a lot of pdf files, which I use often, but I can't find a way to remove those that I is no longer necessary. Could someone help me please?

    On a MS Windows system, use Windows Explorer. On a Mac system, use the Finder.

  • If [mail {$to, $subject, $totalmessage]} [this is the code I get a syntax error in Dreamweaver CS6.]  can someone please tell where is the error and how to fix?

    If {{mail {$to, $subject, $totalmessage]}

    It is the syntax committed an error I am getting in dreamweaver CS6.

    can someone please advise how to solve this problem?

    Thank you!

    Stacie

    If {{mail {$to, $subject, $totalmessage]}

    The supports are all wrong. You can use, where you can $headers can represent From: e-mail.

    If (mail ($ $subject, $totalmessage, $headers)) {}

  • could someone please share guide OA student work frame or a material good

    Hi could one please share guide OA student work frame or a good material.
    Is it possible to get the metalink student guide
    my mail id:[email protected]


    Thanks in advance

    Here is the PDF of Devguide version that comes with JDeveloper.

    Also I suggest you to visit [http://oracle.anilpassi.com/oa-framework-tutorials-training-2.html | http://oracle.anilpassi.com/oa-framework-tutorials-training-2.html]. There are a lot of multimedia material where author deals with different topics of interest to beginners of OA Framework. This entry is a good starting point.

    -wheleph

  • Could someone please provide your feedback on if I programmed to wedging corectly RTSI cable?

    Hello world

    I tried to get the AIs on Dev0 and Dev1 synchronized using the RTSI cable that has been configured in MAX... Is the code to synchronize signals on both devices below? Or do I still have a digital triggering?

    I was using a digital triggering with a flat sequence etc. According to the Labview example (labels remaining in the code, that is why the master and slave), but I could not Dev0:ao0 write when "waveform" has been selected in the source of synchronization by channel AO... I kept getting an error indicating that the refclocksoruce was already in use (or something to that effect)...

    Any comments would be greatly appreciated.

    Kind regards

    Jack

    Hi Jack,

    Yes, the trigger routing you do is correct.  In fact, it fixes the problem with your first VI attached.  In this case the destination terminal exported (Dev3 / / RTSI0) were not the source of the Terminal from the second task (Dev4 / / RTSI0).  If you make these the same (it is-to-say/Dev4/RTSI0), you should get the desired result.

    Regarding examples of synchronization that you posted, without a trigger to start the tasks will be simply to share a sample clock, but not a common starting point.  In most sync if you want to share the sample clock and a good start trigger.

  • 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.

  • Could someone please help with two differences between CS and CS4?

    Hello, I have just moved from Photoshop CS to CS4 and have a few questions about the differences I see in both versions.

    (1) for the opening of files, I'm used to open them in a smaller view like the individual windows.  CS4 open all the images in the expanded view.  Is there a way to avoid this?  I create massive sports photo (often more than 100 images) galleries generally open 25 to 30 images at the same time and minimize all images and work on it at the same time in chronological order.  It was CS4 open these images in full screen, it prevents me from doing this within a reasonable time - PS never opens a group of photos in a true chrono order.  He lost the first frame at the end.

    (2) to the CS, I used to power the mouse right click on the title bar of the image to change the image and canvas size.  Is it possible to get it works in CS4?  CTL + ALT and I or C is a process of three keys and takes considerably longer than right click of my mouse and choosing the correct option.

    Thanks for any help you can provide.  And apology for have such a beginner to the latest and greatest version of Photoshop.  I lived in CS years

    Mike

    Photoshop CS4 preferences > Interface gives the option to "Open Documents as tabs". If checked, this option opens in view 'tab' in which the image occupies the entire screen. Uncheck the option opens in "floating" mode, which allows multiple images to be displayed to the screen. What is the mode opens, you can switch to the other via the window > reorder the options 'Float in the window' or its opposite "consolidate all windows." Another way to switch tabs floating mode is to drag the title bar of image in the display area. Similarly, you can move from floating tabbed by dragging the title bar in the area of the tabs.

Maybe you are looking for

  • Laser mouse wireless connection PX1215E-1NAC

    I bought one of the devices for a customer. Unfortunately, the documentation does not match the hardware. The bonding in the manual procedure is by pressing the selection button channel on the Receiver USB dongle and then pressing the mouse buttons.

  • Laptop HP 15: SSD upgrade

    I use my system for the games I get an ssd for my laptop to try to speed up my games I know that ssd is supposed to be much much more quickly, but with the way in which these laptops are set up, I'd be able to get the benefits of an ssd with this sys

  • Why is windows defender stopped every time I turn on my compurtrer

    Defend Windows is turned off when I start my compurter and sometimes even if I'm on it, I'm so constqntly again. WHY?

  • IPSEC tunnels does not connect

    Out of sudden IPSEC tunnel on remote site 202.68.211.20 is not plug in. Previously is OK. There is no change in config. IKE Phase 1 even not connect. I'm debugging, but I don't know what could be the error. -------------------------------------------

  • CSR ISE generation failed

    Hello I am trying to generate a CSR on my 1.1.1.268 ISE, I always get this error message "" CSR generation failed: invalid certificate subject DN length ". I followed the guide from cisco, I used the FQDN ISE for CN, and generation of CSR is still a