Frame layout changes when button is pressed again...

Okay so basically I have a button on my frame and when it's pressed it opens up another frame. This is fine, but when the button is pressed again it opens up the frame again but the layout is all over the place.
Here is the code:
if (ev.getSource() == seating)
else
               seatdisplay = new JFrame("Seating Display");
               seatdisplay.getContentPane().setBackground(Color.orange);
               seatdisplay.setLayout(new BorderLayout()); //Define border layout
               seatdisplay.setVisible(true);
               seatdisplay.setSize(550,500);
               seatdisplay.add(panelLeft, BorderLayout.WEST); //Position object to the west
               seatdisplay.add(panelMiddle, BorderLayout.CENTER);
               seatdisplay.add(panelRight, BorderLayout.EAST);
               seatdisplay.add(panelTop, BorderLayout.NORTH);
               seatdisplay.add(panelBottom, BorderLayout.SOUTH);
               panelLeft.setLayout(new GridLayout(4,2)); //Define new grid layout
               panelLeft.setBackground(Color.black);
               panelLeft.add(a1 = new JButton("A1")); //Add buttons
               panelLeft.add(a2 = new JButton("A2"));
               panelLeft.add(a3 = new JButton("A3"));
               panelLeft.add(a4 = new JButton("A4"));
               panelLeft.add(a5 = new JButton("A5"));
               panelLeft.add(a6 = new JButton("A6"));
               panelLeft.add(a7 = new JButton("A7"));
               panelLeft.add(a8 = new JButton("A8"));
               panelMiddle.setLayout(new GridLayout(3,6));
               panelMiddle.setBackground(Color.orange);
               panelMiddle.add(empty = new JButton("")); empty.setVisible(false);
               panelMiddle.add(b1 = new JButton("B1"));
               panelMiddle.add(b2 = new JButton("B2"));
               panelMiddle.add(b3 = new JButton("B3"));
               panelMiddle.add(b4 = new JButton("B4"));
               panelMiddle.add(empty3 = new JButton("")); empty3.setVisible(false);
               panelMiddle.add(empty1 = new JButton("")); empty1.setVisible(false);
               panelMiddle.add(b5 = new JButton("B5"));
               panelMiddle.add(b6 = new JButton("B6"));
               panelMiddle.add(b7 = new JButton("B7"));
               panelMiddle.add(b8 = new JButton("B8"));
               panelMiddle.add(empty4 = new JButton("")); empty4.setVisible(false);
               panelMiddle.add(empty2 = new JButton("")); empty2.setVisible(false);
               panelMiddle.add(b9 = new JButton("B9"));
               panelMiddle.add(b10 = new JButton("B10"));
               panelMiddle.add(b11 = new JButton("B11"));
               panelMiddle.add(b12 = new JButton("B12"));
               panelRight.setLayout(new GridLayout(4,2));
               panelRight.setBackground(Color.black);
               panelRight.add(c1 = new JButton("C1"));
               panelRight.add(c2 = new JButton("C2"));
               panelRight.add(c3 = new JButton("C3"));
               panelRight.add(c4 = new JButton("C4"));
               panelRight.add(c5 = new JButton("C5"));
               panelRight.add(c6 = new JButton("C6"));
               panelRight.add(c7 = new JButton("C7"));
               panelRight.add(c8 = new JButton("C8"));
}The seat button is pressed and seatdisplay frame is opened, however, if I press the seat button twice another seatdisplay frame is opened and the layout is all over the place. Do I need to do some sort of refresh?

Swing related questions should be posted in the Swing forum.
If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)", that demonstrates the incorrect behaviour.
http://homepage1.nifty.com/algafield/sscce.html
Don't forget to use the "Code Formatting Tags", so the posted code retains its original formatting.
http://forum.java.sun.com/help.jspa?sec=formatting

Similar Messages

  • Textfield does not change when button is pressed

    I am trying to get the first textfield in the middle panel to change when I change the values of the textfields in the bottommost panel.
    I know that some things in my code are quite messy. please excuse me. Here is the code
    import java.lang.Integer;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.font.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    import java.awt.event.ItemListener;
    import java.awt.event.ItemEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import javax.swing.*;
    import java.awt.Graphics.*;
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.text.*;
    import javax.swing.event.*;
    import java.awt.event.*;
    import javax.swing.JApplet.*;
    import javax.swing.JFrame.*;
    import java.applet.Applet;
    import javax.swing.border.*;
    import javax.swing.Spring.*;
    import java.awt.geom.AffineTransform;
    import java.awt.Graphics2D;
    //Class definition
    public class Shapeshift extends JApplet{
    //testing
    private JButton buttons[] = new JButton[64];
    private Double myu;
    private int startmyu = 0;
    int xL;
    Double Len;
    Double reluctance;
    private int x;
    private int a;
    private int b;
    private int c;
    private int dd;
    private int q;
    private int f;
    private int z;
    private int aR;
    private int ar;
    private int aH;
    private int ah;
    private int at;
    private int al;
    private int xL2;
    private int x2;
    private int xx2;
    private CardLayout Magnet;
    private JButton controls[];
    private JPanel deck;
    int hhh = 700;
    int wwww = 700;
    int www = 350;
    int y = 300;
    int g= 5;
    int w = 20;
    int h = 10;
    int panelheight = 100;
    int panelwidthgr = 510;
    int panelwidth = 540;
    int panelheight2 = 300;
    int panelwidthV = 500;
    //Text
    int ty = 20;
    int tx = 10;
    int twid = 40;
    int thei = 20;
    int bwid = 20;
    int bhei = 10;
    int ly = 2;
    //Defining textfields
    JTextField Lfield = new JTextField(5);
    JTextField L2field = new JTextField(5);
    JTextField Rfield = new JTextField(5);
    JTextField rfield = new JTextField(5);
    JTextField Hfield = new JTextField(5);
    JTextField tfield = new JTextField(5);
    JTextField hfield = new JTextField(5);
    JTextField lfield = new JTextField(5);
    JTextField LLfield = new JTextField(5);
    JTextField LL2field = new JTextField(5);
    JTextField RRfield = new JTextField(5);
    JTextField rrfield = new JTextField(5);
    JTextField HHfield = new JTextField(5);
    JTextField ttfield = new JTextField(5);
    JTextField hhfield = new JTextField(5);
    JTextField llfield = new JTextField(5);
    JLabel Llabel = new JLabel("L(mm)");
    JLabel L2label = new JLabel("L2(mm)");
    JLabel Rlabel = new JLabel("R(mm)");
    JLabel rlabel = new JLabel("r(mm)");
    JLabel llabel = new JLabel("l(mm)");
    JLabel tlabel = new JLabel("t(mm)");
    JLabel Hlabel = new JLabel("H(mm)");
    JLabel hlabel = new JLabel("h(mm)");
    //MAFV calculator----------------------------------------------------------------------
    JTextField Vfield = new JTextField(5);
    JTextField VVfield = new JTextField(5);
    JTextField kfield = new JTextField(5);
    JTextField kkfield = new JTextField(5);
    JTextField etafield = new JTextField(5);
    JTextField etaefield = new JTextField(5);
    JTextField taofield = new JTextField(5);
    JTextField taotfield = new JTextField(5);
    JTextField lamfield = new JTextField(5);
    JTextField lamlfield = new JTextField(5);
    JTextField wfield = new JTextField(5);
    JTextField wwfield = new JTextField(5);
    JLabel Vlabel = new JLabel("Volume (mm^3)");
    JLabel klabel = new JLabel("k(mm)");
    JLabel etalabel = new JLabel("eta(mm)");
    JLabel taolabel = new JLabel("tao(mm)");
    JLabel lamlabel = new JLabel("lambda(mm)");
    JLabel wlabel = new JLabel("Mechanical Power Dissipation(mm)");
    //Torque Calculator--------------------------------------------------------------------
    JTextField Tfield = new JTextField(5);
    JTextField tyfield = new JTextField(5);
    JTextField rofield = new JTextField(5);
    JTextField rifield = new JTextField(5);
    JLabel Tlabel = new JLabel("T");
    JLabel tylabel = new JLabel("tao_y");
    JLabel rolabel = new JLabel("r_o");
    JLabel rilabel = new JLabel("r_i");
    //Reluctance Calculator----------------------------------------------------------------
    JTextField Relfield = new JTextField(5);
    JTextField Lenfield = new JTextField(5);
    JTextField myufield = new JTextField(5);
    JTextField Afield = new JTextField(5);
    JLabel Rellabel = new JLabel("R");
    JLabel Lenlabel = new JLabel("L");
    JLabel myulabel = new JLabel("myu");
    JLabel Alabel = new JLabel("A");
    //Magnetic Flux Density calculator----------------------------------------------------------------
    JTextField Bfield = new JTextField(5);
    JTextField Nfield = new JTextField(5);
    JTextField Ifield = new JTextField(5);
    JTextField Relufield = new JTextField(5);
    JLabel Relulabel = new JLabel("R");
    JLabel Blabel = new JLabel("B");
    JLabel Nlabel = new JLabel("N");
    JLabel Ilabel = new JLabel("I");
    //Shear stress calculator----------------------------------------------------------------
    JTextField taufield = new JTextField(5);
    JTextField Qfield = new JTextField(5);
    JTextField SHfield = new JTextField(5);
    JTextField Infield = new JTextField(5);
    JTextField thicknessfield = new JTextField(5);
    JLabel taulabel = new JLabel("Tau");
    JLabel Qlabel = new JLabel("Q");
    JLabel SHlabel = new JLabel("V");
    JLabel Inlabel = new JLabel("I");
    JLabel thicknesslabel = new JLabel("t");
    //Normal stress calculator----------------------------------------------------------------
    JTextField Mxfield = new JTextField(5);
    JTextField Myfield = new JTextField(5);
    JTextField Ixfield = new JTextField(5);
    JTextField Iyfield = new JTextField(5);
    JTextField cfield = new JTextField(5);
    JTextField sigfield = new JTextField(5);
    JLabel Mxlabel = new JLabel("M_x");
    JLabel Mylabel = new JLabel("M_y");
    JLabel Ixlabel = new JLabel("I_x");
    JLabel Iylabel = new JLabel("I_y");
    JLabel clabel = new JLabel("c");
    JLabel siglabel = new JLabel("sigma");
    public void init() {
    class MyDrawingPanel extends JPanel{
    public void paintComponent(Graphics g){
    super.paintComponent(g);
    Graphics2D g2 = (Graphics2D) g;
    Dimension d = getSize();
    int ww = 350;
    int hh = 350;
    int w = d.width;
    int h = d.height;
    int z = 1 + (int)(Integer.parseInt(hfield.getText())) + (int)(Integer.parseInt(Rfield.getText()));
    int xx = 1 + (int)(Integer.parseInt(hfield.getText())) + (int)(Integer.parseInt(Rfield.getText())) + (int)(Integer.parseInt(tfield.getText()));
    int xxx = 1 + (int)(Integer.parseInt(rfield.getText())) + (int)(Integer.parseInt(Rfield.getText()));
    AffineTransform saveXform = g2.getTransform();
    AffineTransform toCenterAt = new AffineTransform();
    toCenterAt.translate(w/2, h/2);
    g2.transform(toCenterAt);
    g2.setColor(Color.yellow);
    g2.fillRect(-25, -30-z, 25+x, 10+f);
    g2.fillRect(-25, 70+a, 25+x, 10+f);
    g2.fillRect(50+c, -30-z, 25+x2, 10+f);
    g2.fillRect(50+c, 70+a, 25+x2, 10+f);
    g2.setColor(Color.blue);
    g2.fillRect(-25, -40-xx, 100+c+x2, 10 + dd);
    g2.fillRect(-25, 80+z, 100+c+x2, 10+dd);
    g2.setColor(Color.gray);
    g2.drawLine(-30, 15-b, 90+x2+c, 15-b);
    g2.drawLine(-30, 35+b, 90+x2+c, 35+b);
    g2.fillRect(x, 0+q, 50-x+c, 50-(2*q));
    g2.fillRect(-25, -20-a, x + 25, 90+(2*a));
    g2.fillRect(50+c, -20-a, 25+x2, 90+(2*a));
    //R arrow-----------------------------------------------------------------------------------------------------------
    g2.drawLine(95+x2+c, 25, 95+x2+c, -20 - a);
    g2.drawLine(95+x2+c, -20-a, 90+x2+c, -17-a);
    g2.drawLine(95+x2+c, -20-a, 100+x2+c, -17-a);
    //r arrow-----------------------------------------------------------------------------------------------------------
    g2.drawLine(115+x2+c, 25, 115+x2+c, 15 - b);
    g2.drawLine(115+x2+c, 15 - b, 110+x2+c, 18 - b);
    g2.drawLine(115+x2+c, 15 - b, 120+x2+c, 18 - b);
    //vertical lines------------------------------------------------------------------------------------------------------
    g2.drawLine(-25, 100 + a+dd+f, -25, 140 + a+dd+f);
    g2.drawLine(0+x, 100 + a+dd+f, 0+x, 140 + a+dd+f);
    g2.drawLine(50-x+c, 100 + a+dd+f, 50-x+c, 140 + a+dd+f);
    g2.drawLine(75+x2+c, 100 + a+dd+f, 75+x2+c, 140 + a+dd+f);
    //bottom horizontal line----------------------------------------------------------------------------------------------
    g2.drawLine(-25, 120 + a+dd+f, 75+x2+c, 120 + a+dd+f);
    //Letters-------------------------------------------------------------------------------------------------------------
    g2.drawString("L1",-21,110+a+dd+f);
    g2.drawString("L2",62+x2,110+a+dd+f);
    g2.drawString("l",25,110+a+dd+f);
    g2.drawString("R",100+x2+c,10);
    g2.drawString("r",120+x2+c,10);
    repaint();
    // other drawing/painting code here
    MyDrawingPanel mdp = new MyDrawingPanel();
    //getContentPane().add(mdp, java.awt.BorderLayout.EAST);
    //Defining panels-------------------------------------------------------------------------
    JPanel dimension = new JPanel();
    JPanel dimension1 = new JPanel();
    JPanel MAFV = new JPanel();
    JPanel Torque = new JPanel();
    JPanel Reluctance = new JPanel();
    JPanel MFD = new JPanel();
    deck = new JPanel();
    JPanel NS = new JPanel();
    JPanel SS = new JPanel();
    //Setting initial text values to zero
    int start = 0;
    int startL = 25;
    int startR = 45;
    int startr = 15;
    int starth = 10;
    int startH = 15;
    int startt = 10;
    int startl = 50;
    //Setting MAFV fields to zero------------------------------------------------------------------
    Relfield.setText(start + "");
    myufield.setText(start + "");
    wfield.setText(start + "");
    etafield.setText(start + "");
    lamfield.setText(start + "");
    taofield.setText(start + "");
    kfield.setText(start +"");
    VVfield.setText(start + "");
    LLfield.setText(startL + "");
    L2field.setText(start + "");
    Rfield.setText(start + "");
    rfield.setText(start + "");
    lfield.setText(start + "");
    tfield.setText(start + "");
    Hfield.setText(start + "");
    hfield.setText(start + "");
    LL2field.setText(startL + "");
    RRfield.setText(startR + "");
    rrfield.setText(startr + "");
    llfield.setText(startl + "");
    ttfield.setText(startt + "");
    HHfield.setText(startH + "");
    hhfield.setText(starth + "");
    Lfield.setText(start +"");
    //Setting up SpringLayout
    SpringLayout spring = new SpringLayout();
    SpringLayout spring2 = new SpringLayout();
    SpringLayout spring3 = new SpringLayout();
    SpringLayout spring4 = new SpringLayout();
    SpringLayout spring5 = new SpringLayout();
    SpringLayout spring6 = new SpringLayout();
    SpringLayout spring7 = new SpringLayout();
    SpringLayout spring8 = new SpringLayout();
    Magnet = new CardLayout();
    deck.setLayout(Magnet);
    deck.add(Reluctance, "Reluctance");
    deck.add(MFD, "Magnetic Flux Density");
    //Defining main container--------------------------------------------------------------
    Container c = getContentPane();
    //Color black = Color.black;
    //c.setBackground(black);
    //Defining buttons(in an array)-----------------------------------------------------------
    buttons[0] = new JButton("UP");
    buttons[1] = new JButton("DOWN");
    buttons[2] = new JButton("UP");
    buttons[3] = new JButton("DOWN");
    buttons[4] = new JButton("UP");
    buttons[5] = new JButton("DOWN");
    buttons[6] = new JButton("UP");
    buttons[7] = new JButton("DOWN");
    buttons[8] = new JButton("UP");
    buttons[9] = new JButton("DOWN");
    buttons[10] = new JButton("UP");
    buttons[11] = new JButton("DOWN");
    buttons[12] = new JButton("UP");
    buttons[13] = new JButton("DOWN");
    buttons[14] = new JButton("DOWN");
    buttons[15] = new JButton("UP");
    buttons[16] = new JButton("DOWN");
    buttons[17] = new JButton("UP");
    buttons[18] = new JButton("DOWN");
    buttons[19] = new JButton("UP");
    buttons[20] = new JButton("DOWN");
    buttons[21] = new JButton("UP");
    buttons[22] = new JButton("DOWN");
    buttons[23] = new JButton("UP");
    buttons[24] = new JButton("DOWN");
    buttons[25] = new JButton("UP");
    buttons[26] = new JButton("DOWN");
    buttons[27] = new JButton("DOWN");
    buttons[28] = new JButton("UP");
    buttons[29] = new JButton("DOWN");
    buttons[30] = new JButton("UP");
    buttons[31] = new JButton("DOWN");
    buttons[32] = new JButton("UP");
    buttons[33] = new JButton("DOWN");
    buttons[34] = new JButton("UP");
    buttons[35] = new JButton("DOWN");
    buttons[36] = new JButton("UP");
    buttons[37] = new JButton("DOWN");
    buttons[38] = new JButton("UP");
    buttons[39] = new JButton("DOWN");
    buttons[40] = new JButton("DOWN");
    buttons[41] = new JButton("UP");
    buttons[42] = new JButton("DOWN");
    buttons[43] = new JButton("UP");
    buttons[44] = new JButton("DOWN");
    buttons[45] = new JButton("UP");
    buttons[46] = new JButton("DOWN");
    buttons[47] = new JButton("UP");
    buttons[48] = new JButton("DOWN");
    buttons[49] = new JButton("UP");
    buttons[50] = new JButton("DOWN");
    buttons[51] = new JButton("UP");
    buttons[52] = new JButton("DOWN");
    buttons[53] = new JButton("DOWN");
    buttons[54] = new JButton("UP");
    buttons[55] = new JButton("DOWN");
    buttons[56] = new JButton("UP");
    buttons[57] = new JButton("DOWN");
    buttons[58] = new JButton("UP");
    buttons[59] = new JButton("DOWN");
    buttons[60] = new JButton("UP");
    buttons[61] = new JButton("DOWN");
    buttons[62] = new JButton("UP");
    buttons[63] = new JButton("DOWN");
    //Adding events to buttons in array-------------------------------------------------------
    buttons[1].addActionListener(new T2C());
    buttons[2].addActionListener(new T3C());
    buttons[3].addActionListener(new T4C());
    buttons[4].addActionListener(new T5C());
    buttons[5].addActionListener(new T6C());
    buttons[6].addActionListener(new T7C());
    buttons[7].addActionListener(new T8C());
    buttons[8].addActionListener(new T9C());
    buttons[9].addActionListener(new T10C());
    buttons[10].addActionListener(new T11C());
    buttons[11].addActionListener(new T12C());
    buttons[12].addActionListener(new T13C());
    buttons[13].addActionListener(new T14C());
    buttons[16].addActionListener(new T20C());
    buttons[17].addActionListener(new T21C());
    buttons[20].addActionListener(new T22C());
    buttons[21].addActionListener(new T23C());
    buttons[18].addActionListener(new T29C());
    buttons[19].addActionListener(new T28C());
    buttons[22].addActionListener(new T24C());
    buttons[23].addActionListener(new T25C());
    buttons[24].addActionListener(new T26C());
    buttons[25].addActionListener(new T27C());
    buttons[58].addActionListener(new T1B());
    buttons[59].addActionListener(new T1A());
    //L2button
    buttons[62].addActionListener(new T16C());
    buttons[63].addActionListener(new T17C());
    //Buttons for Card Layout--------------------------------------------------------------
    controls = new JButton[2];
    controls[0] = new JButton("UP");
    controls[1] = new JButton("DOWN");
    //controls[0].addActionListener(new T15C());
    //controls[1].addActionListener(new T15C());
    c.setLayout(spring);
    Spring hhhheight = Spring.constant(hhh);
    Spring wwwidth = Spring.constant(wwww);
    Spring wwidth = Spring.constant(www);
    Spring width = Spring.constant(w);
    Spring height = Spring.constant(h);
    Spring xvalue = Spring.constant(g);
    Spring yvalue = Spring.constant(y);
    Spring xxvalue = spring.getConstraint(SpringLayout.WEST, c);
    Spring yyvalue = spring.getConstraint(SpringLayout.SOUTH, c);
    //Panel 1 parameters
    Spring panwidV = Spring.constant(panelwidthV);
    Spring panygr = Spring.constant(panelwidthgr);
    Spring panwidthr = spring.getConstraint(SpringLayout.EAST, c);
    Spring panheight2 = Spring.constant(panelheight2);
    Spring panheight = Spring.constant(panelheight);
    Spring panwidth = Spring.sum(panwidthr, Spring.minus(xvalue));
    Spring ypandisp = Spring.sum(yyvalue, Spring.minus(Spring.sum(xvalue,panheight)));
    Spring dxvalue = spring2.getConstraint(SpringLayout.WEST, dimension);
    Spring dyvalue = spring2.getConstraint(SpringLayout.NORTH, dimension);
    //text parameters
    Spring txx = Spring.constant(tx);
    Spring tyy = Spring.constant(ty);
    Spring twidth = Spring.constant(twid);
    Spring theight = Spring.constant(thei);
    //button parameters
    JButton up = new JButton();
    Spring b1x = Spring.sum(txx,twidth);
    Spring b1width = Spring.constant(bwid);
    Spring b1height = Spring.constant(bhei);
    Spring b1y = Spring.sum(tyy,b1height);
    Spring b2x = Spring.sum(b1x, Spring.sum(b1x,b1width));
    //text1 x position
    Spring t1xx = Spring.sum(b2x,Spring.minus(twidth));
    Spring t3x = Spring.sum(b2x, Spring.sum(txx,b1width));
    Spring b3x = Spring.sum(t3x,twidth);
    Spring t4x = Spring.sum(b3x,Spring.sum(txx,b1width));
    Spring b4x = Spring.sum(b3x,Spring.sum(b1x,b1width));
    Spring t5x = Spring.sum(b4x,Spring.sum(txx,b1width));
    Spring b5x = Spring.sum(b4x,Spring.sum(b1x,b1width));
    Spring t6x = Spring.sum(b5x,Spring.sum(txx,b1width));
    Spring b6x = Spring.sum(b5x,Spring.sum(b1x,b1width));
    Spring t7x = Spring.sum(b6x,Spring.sum(txx,b1width));
    Spring b7x = Spring.sum(b6x,Spring.sum(b1x,b1width));
    //Label parameters
    Spring lyy = Spring.constant(ly);
    //Adding features to panels
    TitledBorder dampdim = new TitledBorder("Damper Dimensions");
    dimension.setBorder(dampdim);
    dimension.setLayout(spring2);
    TitledBorder mafv = new TitledBorder("Minimum Active Fluid Volume");
    MAFV.setBorder(mafv);
    MAFV.setLayout(spring3);
    TitledBorder torq = new TitledBorder("Torque");
    Torque.setBorder(torq);
    Torque.setLayout(spring4);
    TitledBorder reluc = new TitledBorder("Reluctance");
    Reluctance.setBorder(reluc);
    Reluctance.setLayout(spring5);
    TitledBorder mfd = new TitledBorder("Magnetic Flux Density");
    MFD.setBorder(mfd);
    MFD.setLayout(spring6);
    TitledBorder ns = new TitledBorder("Normal Stress");
    NS.setBorder(ns);
    NS.setLayout(spring7);
    TitledBorder ss = new TitledBorder("Shear Stress");
    SS.setBorder(ss);
    SS.setLayout(spring8);
    TitledBorder magnet = new TitledBorder("Magnetic Properties");
    deck.setBorder(magnet);
    //Adding features to L up button---------------------------------------------------------
    up.setText("UP");
    up.setFont( new Font( "UP", Font.BOLD, 2));
    up.addActionListener(new T1C());
    //Component positioning-------------------------------------------------------------------
    c.add(dimension);
    spring.getConstraints(dimension).setX(xvalue);
    spring.getConstraints(dimension).setY(ypandisp);
    spring.getConstraints(dimension).setWidth(panwidth);
    spring.getConstraints(dimension).setHeight(panheight);
    //Minimum Active Fluid Volume calculator--------------------------------------------------
    c.add(MAFV);
    spring.getConstraints(MAFV).setX(xvalue);
    spring.getConstraints(MAFV).setY(xvalue);
    spring.getConstraints(MAFV).setWidth(panwidV);
    spring.getConstraints(MAFV).setHeight(panheight);
    MAFV.add(Vfield);
    spring3.getConstraints(Vfield).setX(xvalue);
    spring3.getConstraints(Vfield).setY(tyy);
    spring3.getConstraints(Vfield).setWidth(Spring.sum(twidth,twidth));
    spring3.getConstraints(Vfield).setHeight(theight);
    /*MAFV.add(buttons[14]);
    spring3.getConstraints(buttons[14]).setX(b1x);
    spring3.getConstraints(buttons[14]).setY(tyy);
    spring3.getConstraints(buttons[14]).setWidth(b1width);
    spring3.getConstraints(buttons[14]).setHeight(b1height);
    MAFV.add(buttons[15]);
    spring3.getConstraints(buttons[15]).setX(b1x);
    spring3.getConstraints(buttons[15]).setY(b1y);
    spring3.getConstraints(buttons[15]).setWidth(b1width);
    spring3.getConstraints(buttons[15]).setHeight(b1height);*/
    MAFV.add(kfield);
    spring3.getConstraints(kfield).setX(t1xx);
    spring3.getConstraints(kfield).setY(tyy);
    spring3.getConstraints(kfield).setWidth(twidth);
    spring3.getConstraints(kfield).setHeight(theight);
    MAFV.add(buttons[16]);
    spring3.getConstraints(buttons[16]).setX(b2x);
    spring3.getConstraints(buttons[16]).setY(tyy);
    spring3.getConstraints(buttons[16]).setWidth(b1width);
    spring3.getConstraints(buttons[16]).setHeight(b1height);
    MAFV.add(buttons[17]);
    spring3.getConstraints(buttons[17]).setX(b2x);
    spring3.getConstraints(buttons[17]).setY(b1y);
    spring3.getConstraints(buttons[17]).setWidth(b1width);
    spring3.getConstraints(buttons[17]).setHeight(b1height);
    MAFV.add(etafield);
    spring3.getConstraints(etafield).setX(t3x);
    spring3.getConstraints(etafield).setY(tyy);
    spring3.getConstraints(etafield).setWidth(twidth);
    spring3.getConstraints(etafield).setHeight(theight);
    MAFV.add(buttons[18]);
    spring3.getConstraints(buttons[18]).setX(b3x);
    spring3.getConstraints(buttons[18]).setY(tyy);
    spring3.getConstraints(buttons[18]).setWidth(b1width);
    spring3.getConstraints(buttons[18]).setHeight(b1height);
    MAFV.add(buttons[19]);
    spring3.getConstraints(buttons[19]).setX(b3x);
    spring3.getConstraints(buttons[19]).setY(b1y);
    spring3.getConstraints(buttons[19]).setWidth(b1width);
    spring3.getConstraints(buttons[19]).setHeight(b1height);
    MAFV.add(taofield);
    spring3.getConstraints(taofield).setX(t4x);
    spring3.getConstraints(taofield).setY(tyy);
    spring3.getConstraints(taofield).setWidth(twidth);
    spring3.getConstraints(taofield).setHeight(theight);
    MAFV.add(buttons[20]);
    spring3.getConstraints(buttons[20]).setX(b4x);
    spring3.getConstraints(buttons[20]).setY(tyy);
    spring3.getConstraints(buttons[20]).setWidth(b1width);
    spring3.getConstraints(buttons[20]).setHeight(b1height);
    MAFV.add(buttons[21]);
    spring3.getConstraints(buttons[21]).setX(b4x);
    spring3.getConstraints(buttons[21]).setY(b1y);
    spring3.getConstraints(buttons[21]).setWidth(b1width);
    spring3.getConstraints(buttons[21]).setHeight(b1height);
    MAFV.add(lamfield);
    spring3.getConstraints(lamfield).setX(t5x);
    spring3.getConstraints(lamfield).setY(tyy);
    spring3.getConstraints(lamfield).setWidth(twidth);
    spring3.getConstraints(lamfield).setHeight(theight);
    MAFV.add(buttons[22]);
    spring3.getConstraints(buttons[22]).setX(b5x);
    spring3.getConstraints(buttons[22]).setY(tyy);
    spring3.getConstraints(buttons[22]).setWidth(b1width);
    spring3.getConstraints(buttons[22]).setHeight(b1height);
    MAFV.add(buttons[23]);
    spring3.getConstraints(buttons[23]).setX(b5x);
    spring3.getConstraints(buttons[23]).setY(b1y);
    spring3.getConstraints(buttons[23]).setWidth(b1width);
    spring3.getConstraints(buttons[23]).setHeight(b1height);
    MAFV.add(wfield);
    spring3.getConstraints(wfield).setX(t6x);
    spring3.getConstraints(wfield).setY(tyy);
    spring3.getConstraints(wfield).setWidth(twidth);
    spring3.getConstraints(wfield).setHeight(theight);
    MAFV.add(buttons[24]);
    spring3.getConstraints(buttons[24]).setX(b6x);
    spring3.getConstraints(buttons[24]).setY(tyy);
    spring3.getConstraints(buttons[24]).setWidth(b1width);
    spring3.getConstraints(buttons[24]).setHeight(b1height);
    MAFV.add(buttons[25]);
    spring3.getConstraints(buttons[25]).setX(b6x);
    spring3.getConstraints(buttons[25]).setY(b1y);
    spring3.getConstraints(buttons[25]).setWidth(b1width);
    spring3.getConstraints(buttons[25]).setHeight(b1height);
    c.add(deck);
    spring.getConstraints(deck).setX(xvalue);
    spring.getConstraints(deck).setY(Spring.sum(Spring.sum(xvalue,panheight),Spring.sum(xvalue,panheight)));
    spring.getConstraints(deck).setWidth(panwidV);
    spring.getConstraints(deck).setHeight(panheight);
    //Reluctance calculator--------------------------------------------------------------------------------------------------
    Reluctance.add(Relfield);
    spring5.getConstraints(Relfield).setX(xvalue);
    spring5.getConstraints(Relfield).setY(xvalue);
    spring5.getConstraints(Relfield).setWidth(Spring.sum(twidth,panheight));
    spring5.getConstraints(Relfield).setHeight(theight);
    Reluctance.add(buttons[54]);
    spring5.getConstraints(buttons[54]).setX(b1x);
    spring5.getConstraints(buttons[54]).setY(tyy);
    spring5.getConstraints(buttons[54]).setWidth(b1width);
    spring5.getConstraints(buttons[54]).setHeight(b1height);
    Reluctance.add(buttons[55]);
    spring5.getConstraints(buttons[55]).setX(b1x);
    spring5.getConstraints(buttons[55]).setY(b1y);
    spring5.getConstraints(buttons[55]).setWidth(b1width);
    spring5.getConstraints(buttons[55]).setHeight(b1height);
    Reluctance.add(Lenfield);
    spring5.getConstraints(Lenfield).setX(t1xx);
    spring5.getConstraints(Lenfield).setY(tyy);
    spring5.getConstraints(Lenfield).setWidth(twidth);
    spring5.getConstraints(Lenfield).setHeight(theight);
    Reluctance.add(buttons[56]);
    spring5.getConstraints(buttons[56]).setX(b2x);
    spring5.getConstraints(buttons[56]).setY(tyy);
    spring5.getConstraints(buttons[56]).setWidth(b1width);
    spring5.getConstraints(buttons[56]).setHeight(b1height);
    Reluctance.add(buttons[57]);
    spring5.getConstraints(buttons[57]).setX(b2x);
    spring5.getConstraints(buttons[57]).setY(b1y);
    spring5.getConstraints(buttons[57]).setWidth(b1width);
    spring5.getConstraints(buttons[57]).setHeight(b1height);
    Reluctance.add(myufield);
    spring5.getConstraints(myufield).setX(t3x);
    spring5.getConstraints(myufield).setY(tyy);
    spring5.getConstraints(myufield).setWidth(twidth);
    spring5.getConstraints(myufield).setHeight(theight);
    Reluctance.add(buttons[58]);
    spring5.getConstraints(buttons[58]).setX(b3x);
    spring5.getConstraints(buttons[58]).setY(tyy);
    spring5.getConstraints(buttons[58]).setWidth(b1width);
    spring5.getConstraints(buttons[58]).setHeight(b1height);
    Reluctance.add(buttons[59]);
    spring5.getConstraints(buttons[59]).setX(b3x);
    spring5.getConstraints(buttons[59]).setY(b1y);
    spring5.getConstraints(buttons[59]).setWidth(b1width);
    spring5.getConstraints(buttons[59]).setHeight(b1height);
    Reluctance.add(Afield);
    spring5.getConstraints(Afield).setX(t4x);
    spring5.getConstraints(Afield).setY(tyy);
    spring5.getConstraints(Afield).setWidth(twidth);
    spring5.getConstraints(Afield).setHeight(theight);
    Reluctance.add(buttons[60]);
    spring5.getConstraints(buttons[60]).setX(b4x);
    spring5.getConstraints(buttons[60]).setY(tyy);
    spring5.getConstraints(buttons[60]).setWidth(b1width);
    spring5.getConstraints(buttons[60]).setHeight(b1height);
    Reluctance.add(buttons[61]);
    spring5.getConstraints(buttons[61]).setX(b4x);
    spring5.getConstraints(buttons[61]).setY(b1y);
    spring5.getConstraints(buttons[61]).setWidth(b1width);
    spring5.getConstraints(buttons[61]).setHeight(b1height);
    Reluctance.add(controls[1]);
    spring5.getConstraints(controls[1]).setX(t5x);
    spring5.getConstraints(controls[1]).setY(tyy);
    spring5.getConstraints(controls[1]).setWidth(twidth);
    spring5.getConstraints(controls[1]).setHeight(theight);
    MFD.add(controls[0]);
    spring5.getConstraints(controls[0]).setX(t5x);
    spring5.getConstraints(controls[0]).setY(tyy);
    spring5.getConstraints(controls[0]).setWidth(twidth);
    spring5.getConstraints(controls[0]).setHeight(theight);
    //Adding graphics to main container----------------------------------------------------------------------------------------
    c.add(mdp);
    spring.getConstraints(mdp).setX(panygr);
    spring.getConstraints(mdp).setY(xvalue);
    spring.getConstraints(mdp).setWidth(panygr);
    spring.getConstraints(mdp).setHeight(panheight2);
    dimension.add(LLfield);
    spring2.getConstraints(LLfield).setX(txx);
    spring2.getConstraints(LLfield).setY(tyy);
    spring2.getConstraints(LLfield).setWidth(twidth);
    spring2.getConstraints(LLfield).setHeight(theight);
    dimension.add(up);
    spring2.getConstraints(up).setX(b1x);
    spring2.getConstraints(up).setY(tyy);
    spring2.getConstraints(up).setWidth(b1width);
    spring2.getConstraints(up).setHeight(b1height);
    dimension.add(buttons[1]);
    spring2.getConstraints(buttons[1]).setX(b1x);
    spring2.getConstraints(buttons[1]).setY(b1y);
    spring2.getConstraints(buttons[1]).setWidth(b1width);
    spring2.getConstraints(buttons[1]).setHeight(b1height);
    dimension.add(RRfield);
    spring2.getConstraints(RRfield).setX(t1xx);
    spring2.getConstraints(RRfield).setY(tyy);
    spring2.getConstraints(RRfield).setWidth(twidth);
    spring2.getConstraints(RRfield).setHeight(theight);
    dimension.add(buttons[2]);
    spring2.getConstraints(buttons[2]).setX(b2x);
    spring2.getConstraints(buttons[2]).setY(tyy);
    spring2.getConstraints(buttons[2]).setWidth(b1width);
    spring2.getConstraints(buttons[2]).setHeight(b1height);
    dimension.add(buttons[3]);
    spring2.getConstraints(buttons[3]).setX(b2x);
    spring2.getConstraints(buttons[3]).setY(b1y);
    spring2.getConstraints(buttons[3]).setWidth(b1width);
    spring2.getConstraints(buttons[3]).setHeight(b1height);
    dimension.add(rrfield);
    spring2.getConstraints(rrfield).setX(t3x);
    spring2.getConstraints(rrfield).setY(tyy);
    spring2.getConstraints(rrfield).setWidth(twidth);
    spring2.getConstraints(rrfield).setHeight(theight);
    dimension.add(buttons[4]);
    spring2.getConstraints(buttons[4]).setX(b3x);
    spring2.getConstraints(buttons[4]).setY(tyy);
    spring2.getConstraints(buttons[4]).setWidth(b1width);
    spring2.getConstraints(buttons[4]).setHeight(b1height);
    dimension.add(buttons[5]);
    spring2.getConstraints(buttons[5]).setX(b3x);
    spring2.getConstraints(buttons[5]).setY(b1y);
    spring2.getConstraints(buttons[5]).setWidth(b1width);
    spring2.getConstraints(buttons[5]).setHeight(b1height);
    dimension.add(llfield);
    spring2.getConstraints(llfield).setX(t4x);
    spring2.getConstraints(llfield).setY(tyy);
    spring2.getConstraints(llfield).setWidth(twidth);
    spring2.getConstraints(llfield).setHeight(theight);
    dimension.add(buttons[6]);
    spring2.getConstraints(buttons[6]).setX(b4x);
    spring2.getConstraints(buttons[6]).setY(tyy);
    spring2.getConstraints(buttons[6]).setWidth(b1width);
    spring2.getConstraints(buttons[6]).setHeight(b1height);
    dimension.add(buttons[7]);
    spring2.getConstraints(buttons[7]).setX(b4x);
    spring2.getConstraints(buttons[7]).setY(b1y);
    spring2.getConstraints(buttons[7]).setWidth(b1width);
    spring2.getConstraints(buttons[7]).setHeight(b1height);
    dimension.add(ttfield);
    spring2.getConstraints(ttfield).setX(t5x);
    spring2.getConstraints(ttfield).setY(tyy);
    spring2.getConstraints(ttfield).setWidth(twidth);
    spring2.getConstraints(ttfield).setHeight(theight);
    dimension.add(buttons[8]);
    spring2.getConstraints(buttons[8]).setX(b5x);
    spring2.getConstraints(buttons[8]).setY(tyy);
    spring2.getConstraints(buttons[8]).setWidth(b1width);
    spring2.getConstraints(buttons[8]).setHeight(b1height);
    dimension.add(buttons[9]);
    spring2.getConstraints(buttons[9]).setX(b5x);
    spring2.getConstraints(buttons[9]).setY(b1y);
    spring2.getConstraints(buttons[9]).setWidth(b1width);
    spring2.getConstraints(buttons[9]).setHeight(b1height);
    dimension.add(HHfield);
    spring2.getConstraints(HHfield).setX(t6x);
    spring2.getConstraints(HHfield).setY(tyy);
    spring2.getConstraints(HHfield).setWidth(twidth);
    spring2.getConstraints(HHfield).setHeight(theight);
    dimension.add(buttons[10]);
    spring2.getConstraints(buttons[10]).setX(b6x);
    spring2.getConstraints(buttons[10]).setY(tyy);
    spring2.getConstraints(buttons[10]).setWidth(b1width);
    spring2.getConstraints(buttons[10]).setHeight(b1height);
    dimension.add(buttons[11]);
    spring2.getConstraints(buttons[11]).setX(b6x);
    spring2.getConstraints(buttons[11]).setY(b1y);
    spring2.getConstraints(buttons[11]).setWidth(b1width);
    spring2.getConstraints(buttons[11]).setHei

    headdesk
    Post a short (< 1 page) example program that forum members can copy and run,
    that demonstrates your problem.

  • Frame Rate change when importing video into FCP 5

    I am importing an HD h264 file into FCP 5. The video when opened in QT shows that it's frame rate is 30fps, what I exported it at. When I Import the file into FCP 5 it changes the frame rate to 29.97fps, which is causing major video/audio syncing issues. Any thoughts on how to stop the frame rate change when importing? I tried changing my system settings and audio/video settings before the import to match the file and it is still picking it up at 29.97, major headache especially since I'm cutting industrial.

    yeah I'm kinda limited, working with video for the web and I'm making revisions as to what has been already posted. The H264s are the originals per say as we are using a screen capturing program to obtain the video, I could re export the originals at a truer format, but with the resources I'm given, its not truly the option I can afford to take. I've found a workaround through using imovie of all things, but I rather be in FCP. I've done some editing with h264s before and this is the first time I've seen this happen, it kind of reminds me of when I had an editor a few years back digitize video that was drop frame as non-drop.

  • Actionscript 3.0 when button is pressed twice turns on/off

    Alright I am new at actionscript but what I wanna do is when my button it is pressed once it brings up my input text("hiddentext") and when its pressed again it will remove it.
    here is what I got.
    button1_btn.addEventListener(MouseEvent.CLICK, shoot_1);
    function shoot_1(event:MouseEvent):void
              gotoAndStop("hiddentext");{
    and shoot_1 is just the identifier to make them work together.
    Message was edited by: dogmer punchy

    A nice clean way of dealing with this is to put the text inside a movieclip and control the visibility of the movieclip with the button, toggling it to be the opposite of what it currently is.  If you were to assign an instance name to that movieclip like "hiddenText", the code for toggling it could be...
    button1_btn.addEventListener(MouseEvent.CLICK, shoot_1);
    function shoot_1(event:MouseEvent):void
              hiddenText,visible = !hiddenText.visible;
    The use of the " ! " tells it to be what it is not.

  • Saved workspace changes when PS is started again (PS CS6 13.0.1 x64)

    Hello,
    I am having the problem that my saved workspace changes whenever I open Photoshop. I arranged everything as I need it to work and saved this workspace. As soon as I open PS again the basic structure is kept but the sizes of the windows change and therefore not everything is visible.
    This shows my saved workspace:
    And this is the way it looks when PS is opened again:
    I appreciate every idea how to solve this annoying problem. Thanks in advance.
    Oliver

    I hope you've saved the workspace as a custom workspace. What happens when you restart Photoshop and re-load the saved workspace again? Is it still messed up?
    Can you try trashing prefs: http://forums.adobe.com/thread/375776
    -ST

  • How to change an image only when button is pressed

    is there an easy way to make the image in a uiimageview change to a different image while a button is being pressed? then, once the user stops pressing the button, the image view needs to return to the first image.
    thanks in advance!

    Hey , U can handle that with Touches ,
    But in a simply way
    Use Touchupinside to show the pressed image ,
    and use Touchupouside to show the normal image.
    This may give you the same  impression.
    Thanks
    Srikanth

  • Layout changed when I added spacing around images.

    @charset "utf-8";
    body {
    font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
    background: #363;
    margin: 0;
    padding: 0;
    color: #000;
    /* ~~ Element/tag selectors ~~ */
    ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
    padding: 0;
    margin: 0;
    h1, h2, h3, h4, h5, h6, p {
    margin-top: 0;  /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
    padding-right: 15px;
    padding-left: 15px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
    a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
    border: none;
    /* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
    a:link {
    color:#414958;
    text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
    a:visited {
    color: #F00;
    text-decoration: underline;
    a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
    text-decoration: none;
    /* ~~ this container surrounds all other divs giving them their percentage-based width ~~ */
    .container {
    width: 80%;
    max-width: 1260px;/* a max-width may be desirable to keep this layout from getting too wide on a large monitor. This keeps line length more readable. IE6 does not respect this declaration. */
    min-width: 780px;/* a min-width may be desirable to keep this layout from getting too narrow. This keeps line length more readable in the side columns. IE6 does not respect this declaration. */
    background: #FFF;
    margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout. It is not needed if you set the .container's width to 100%. */
    /* ~~ the header is not given a width. It will extend the full width of your layout. It contains an image placeholder that should be replaced with your own linked logo ~~ */
    .header {
    background: #363;
    /* ~~ These are the columns for the layout. ~~
    1) Padding is only placed on the top and/or bottom of the divs. The elements within these divs have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.
    2) No margin has been given to the columns since they are all floated. If you must add margin, avoid placing it on the side you're floating toward (for example: a right margin on a div set to float right). Many times, padding can be used instead. For divs where this rule must be broken, you should add a "display:inline" declaration to the div's rule to tame a bug where some versions of Internet Explorer double the margin.
    3) Since classes can be used multiple times in a document (and an element can also have multiple classes applied), the columns have been assigned class names instead of IDs. For example, two sidebar divs could be stacked if necessary. These can very easily be changed to IDs if that's your preference, as long as you'll only be using them once per document.
    4) If you prefer your nav on the right instead of the left, simply float these columns the opposite direction (all right instead of all left) and they'll render in reverse order. There's no need to move the divs around in the HTML source.
    .sidebar1 {
    float: left;
    width: 20%;
    background: #CF0;
    padding-bottom: 10px;
    .content {
    padding: 15px 15px 15px 15px;
    width: 80%;
    float: left;
    /* ~~ This grouped selector gives the lists in the .content area space ~~ */
    .content ul, .content ol {
    padding: 0 15px 15px 40px; /* this padding mirrors the right padding in the headings and paragraph rule above. Padding was placed on the bottom for space between other elements on the lists and on the left to create the indention. These may be adjusted as you wish. */
    /* ~~ The navigation list styles (can be removed if you choose to use a premade flyout menu like Spry) ~~ */
    ul.nav {
    list-style: none; /* this removes the list marker */
    border-top: 1px solid #666; /* this creates the top border for the links - all others are placed using a bottom border on the LI */
    margin-bottom: 15px; /* this creates the space between the navigation on the content below */
    ul.nav li {
    border-bottom: 1px solid #666; /* this creates the button separation */
    ul.nav a, ul.nav a:visited { /* grouping these selectors makes sure that your links retain their button look even after being visited */
    padding: 5px 5px 5px 15px;
    display: block; /* this gives the link block properties causing it to fill the whole LI containing it. This causes the entire area to react to a mouse click. */
    text-decoration: none;
    background: #390;
    color: #000;
    ul.nav a:hover, ul.nav a:active, ul.nav a:focus { /* this changes the background and text color for both mouse and keyboard navigators */
    background: #6F7D94;
    color: #FFF;
    /* ~~ The footer ~~ */
    .footer {
    padding: 10px 0;
    background: #CF6;
    position: relative;/* this gives IE6 hasLayout to properly clear */
    clear: both; /* this clear property forces the .container to understand where the columns end and contain them */
    /* ~~ miscellaneous float/clear classes ~~ */
    .fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
    float: right;
    margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
    float: left;
    margin-right: 8px;
    .clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the #container) if the #footer is removed or taken out of the #container */
    clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Yellowstone Biologist</title>
    <link href="NationalParks.css" rel="stylesheet" type="text/css" /><!--[if lte IE 7]>
    <style>
    .content { margin-right: -1px; } /* this 1px negative margin can be placed on any of the columns in this layout with the same corrective effect. */
    ul.nav a { zoom: 1; }  /* the zoom property gives IE the hasLayout trigger it needs to correct extra whiltespace between the links */
    </style>
    <![endif]-->
    <script type="text/javascript">
    </script>
    </head>
    <body onload="MM_preloadImages('habitat def.PNG')">
    <div class="container">
      <div class="header"><a href= /><img src="animals.gif" width="878" height="193" alt="bison" /></a>
        <!-- end .header --></div>
      <div class="sidebar1">
        <ul class="nav">
          <li><a href="NationalParks.html"><strong>Home</strong></a></li>
          <li><a href="Park Ranger.html"><strong>Park Ranger</strong></a></li>
          <li><a href="Biologist.html"><strong>Biologist</strong></a></li>
          <li><a href="Geologist.html"><strong>Geologist</strong></a></li>
          <li><a href="Historian.html"><strong>Historian</strong></a></li>
          <li><a href="Games.html"><strong>Games</strong></a></li>
        </ul>
        <p><strong>Definitions (italicized words):</strong> </p>
        <p><em>Habitat</em>:   the natural conditions and environment  in which a plant or animal lives</p>
        <p><br />
          <em>Extermination</em>:  completely destroy or kill</p>
        <p><em>USFWS</em>: United States Fish and Wildlife Service</p>
    <!-- end .sidebar1 --></div>
      <div class="content">
        <h1>Yellowstone Biologist    </h1>
        <h2>Mammals</h2>
       <p> Yellowstone is home to the largest concentration of mammals in the lower 48 states. Sixty-seven different mammals live here, including grizzly bears, black bears, gray wolves, wolverine, lynx, elk, bison, moose, and numerous small mammals.</p>
        <p>Visitors must view all wildlife safely. You must stay at least 100 yards away from bears and wolves and at least 25 yards  away from all other animals—including bison, elk, bighorn sheep, deer, moose, and coyotes.</p>
        <h4>Bears</h4><img src="grizzly.gif" alt="grizzly bear family" width="150" height="115" hspace="15" vspace="15" align="left" />
        <p>Bears may be seen in Yellowstone March through November of each year. Yellowstone is one of the only areas south of Canada that still has large grizzly bears. Grizzly bears are usually seen in the open areas. </p>
        <p> </p>
        <h4>Wolves</h4><img src="wolves.gif" alt="wolves" width="150" height="115" hspace="15" vspace="15" align="left" />
        <p>
    Loss of <em>habitat</em> and <em>extermination</em> programs led to the elimination of wolves throughout most of the United States by early in the 20th century. In 1973, the U.S. Fish and Wildlife Service listed the northern Rocky Mountain wolf  as an endangered species and designated Greater Yellowstone as one of three recovery areas. From 1995 to 1997, 41 wild wolves from Canada and northwest Montana were released in Yellowstone National Park. As expected, wolves from the growing population dispersed to establish territories outside the park. More than 1,600 wolves now reside in Idaho, Montana, and Wyoming. In August 2010, a U.S. district judge ruled against a <em>USFWS</em> 2009 decision to remove the wolf from the endangered species list, so wolves are protected as an endangered species in all three states again.<br />
        </p>
    <h4>Bighorn Sheep<img src="BigHornSheep.gif" alt="bighorn sheep" width="150" height="115" hspace="15" vspace="15" align="left" /></h4>
        <p> Bighorn sheep once numbered in the millions in western United States and were an important food source for humans. They are named for the large, curved horns on the males, or rams. Females, or ewes, also have horns, but they are short with only a slight curve. In the winter of 1981-82, an outbreak of pinkeye occurred among bighorns in the Mt. Everts area. Many sheep were blinded and/or killed on the adjacent park road or by falling from cliffs. Some are now found comfortable around summer road traffic.</p>
        <h4>Bison<img src="bison.gif" alt="bison" width="150" height="115" hspace="15" vspace="15" align="left" /></h4><p>
        Bison are the largest mammals in Yellowstone National Park. They are strictly vegetarian, and they graze on grasslands in the meadows, the foothills, and even the high-elevation areas of Yellowstone. Despite their slow walk, bison are surprisingly fast for animals that weigh more than half a ton.</p>
    <p>Yellowstone is the only place in the lower 48 states where a population of wild bison has survived since prehistoric times, although fewer than 50 native bison remained here in 1902. Fearing extinction, the park imported 21 bison from two privately-owned herds.</p>
        <h4>Bobcats<img src="yellowstone-bobcat.gif" alt="bobcat" width="150" height="115" hspace="15" vspace="15" align="left" /></h4><p>
        Bobcats  are small wild cats with reddish-brown or yellowish-brown coats, streaked with black or dark brown. They have prominent, pointed ears with a tuft of black hair at the tip. </p>
    <p>Unlike lynx, which they resemble, bobcats elsewhere have been highly adaptable to human-caused changes in environmental conditions; some biologists believe that there are more bobcats in the United States today than in colonial times. Yellowstone has many rock outcrops, canyons bordered by rock ledges, conifer forests, and semi-open areas that seem to offer conditions favorable for bobcats--adequate shelter, a variety of rodents, rabbits, hares, birds, and other small animals as well as seasonal carrion, for food.</p>
    <p>Bobcats are known to hole-up and wait out severe winter storms elsewhere. These elusive cats are most active at night, so even those who study them seldom have an opportunity to see one.</p>
        <h4>Coyotes</h4>
        <p>
          Yellowstone's coyotes  are among the largest coyotes in the United States. Adults are about 30 pounds, are less than two feet tall and vary in color from gray to tan with sometimes a reddish tint to its coat.</p>
        <p>Small mammals are an important component of coyotes' diets. In Yellowstone, such prey include microtines or voles, mice , pocket gophers, small birds, and in spring and summer, ground squirrels. They also feed on larger mammal's (elk, deer, bison, moose, pronghorn, and bighorn sheep) calves and fawns shortly after birth and young animals.</p>
        <h4>Elk<img src="elk.gif" alt="elk" width="150" height="115" hspace="15" vspace="15" align="left" /></h4><p>
          Elk  are the most abundant large mammal found in Yellowstone and historical evidence confirms their continuous presence for at least 1,000 years. More than 30,000 elk from 7-8 different herds summer in Yellowstone and approximately 15,000 to 22,000 winter in the park. </p>
    <p>Bulls grow antlers annually from the time they are nearly one year old. When mature, a bull's &quot;rack&quot; may have 6 to 8 points, or tines, on each side and weigh more than 30 pounds.</p>
        <h4>Lynx</h4>
    <p>Adult lynx are about the size of a large domestic cat. Males can weigh up to 30 pounds, while females are smaller. The similarity between lynx and bobcats makes it difficult to determine their status in Yellowstone. A large adult bobcat may be larger than a small adult lynx, so size is not a good characteristic for positive identification.</p>
        <h4>Moose<img src="moose.gif" alt="moose" width="150" height="115" hspace="15" vspace="15" align="left" /></h4><p>
        Moose, the largest member of the deer family, were reportedly very rare in northwest Wyoming when Yellowstone National Park was established in 1872. Moose breed from early September to November and one to three calves are born in May or June. Calves weigh 25 to 35 pounds at birth but grow rapidly; adult females (cows) weigh up to 800 pounds and males (bulls) up to 1300 pounds. </p>
    <h4>Mountain Lion</h4><p>
        The mountain lion, also called the cougar, is the largest member of the cat family living in Yellowstone. Mountain lions can weigh up to 200 pounds, although lions in Yellowstone are thought to range between 140 and 160 pounds for males and around 100 pounds for females.</p>
    <p>Mountain lions are rather secretive, so most visitors are unaware of their existence in Yellowstone. Lions probably live throughout the park in summer. </p>
        <h4>      Amphibians</h4>
        <p>
        Cool, dry conditions limit Yellowstone's amphibians to four species: boreal toad; chorus frog; spotted frog; and the tiger salamander. Population numbers for these  are not known.</p>
        <!-- end .content --></div>
      <div class="footer">
        <p>Sources: <a href="http://www.nps.gov/yell/naturescience/mammals.htm">http://www.nps.gov/yell/naturescience/m ammals.htm</a></p>
        <p><a href="http://www.nps.gov/yell/naturescience/amphibians.htm">http://www.nps.gov/yell/naturescienc e/amphibians.htm</a></p>
        <!-- end .footer --></div>
      <!-- end .container --></div>
    </body>
    </html>
    This has happened before, where everything in my content area has dropped down below the sidebar.It's happended on several pages. I don't know why or how to fix it. It's for a class, so where I've posted it is private, but here's the page and css code.
    HTML

    Murray is right. Padding (and margins) is added to the width. However, when using percentages, you should never use figures that add up to exactly 100%.
    Browsers need to convert the percentages to pixels. Because pixels must be whole numbers, some percentages are rounded up, which results in the final element dropping down below its neighbours. With percentages, it's much safer to use values that add up to 98% (99% often works, but 98% is safer).

  • Why does object frame style change when I re-size the object?

    I am creating a catalog with lots of images that I anchor amidst text.  I have created a simple style that just adds a 1pt black stroke frame, and apply to each. When I later decide to re-size one of the images (primarily by dragging with mouse with CTRL-SHIFT), I notice that the style has been over-ridden, and the frame appears altered. I can then successfully clear the over-ride, but what a pain.  How can I avoid this? Is there a way to "mass" reset many such problems? Like Find/Change, object style, and clear over-ride?

    If you can not see "Adjust Stroke Weight When Scaling" option in the control panel, you will need to enable it first.
    Go to Edit > Menus > Category: Context & Panel Menus > Control Panel Layout Menu and then make sure "Adjust Stroke Weight When Scaling" has an eyeball selected to make this visible.

  • Stop displaying a message when button is pressed more than one

    Hi
    I have a forms with button 'save' and when user pressed this button i do some checks and display a message, what i want is to display the message only the first time user presses the button, if user presses the button again and again, message should not be displayed...but i do not know how to fix this, has someone an idea? Thanks.

    Take a look at About Global Variables. You might also want to bookmark the Oracle Forms Documentation web site.
    Basically, you will use a Global Variable as a counter. In your button code, you check the value of the Global Var to see if it is greater than 1. If it is, you exit. If it is not (in other words the Global is equal to zero) then you add 1 to the variable and you display your message. Pretty basic stuff.
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • N73 Wrong Value When Button '2' Pressed among othe...

    Hi
    I am having problems with my N73 and I need some advice please. A couple of weeks ago, I suddenly found that when I pressed the 2 key, I got a 7 instead. I turned the phone off and then on again and it fixed it, temporarily. I then discovered that other buttons were doing strange things. The * button give *9 and the Cancel button does something very strange.
    Now, even turning the phone off and on doesn't clear it. The other buttons I have not mentioned appear to be unaffected.
    I have since updated the firmware, performed the 3 button reset and almost every other thing I have seen about resetting your phone but with no success.
    If anyone has any idea of what I can do to rectify this, I would be very keen to hear your thoughts.
    Many thanks,
    Peter

    Hello - sounds like the keypad circuit is up the swanny!
    i had the same problem with mine, i took the gamble of buying a used original n73 keypad/toggle thru ebay, fitted it, works fine now!.
    but as always, just coz it worked for me, it may not be the case for you.
    as you have reset/formatted the phone, i dont see what else it could be.
    good luck
    Markkyboy

  • Layout Change when program run in background.

    Hi All,
    I have a layout field on the selection screen. When I run the program in foreground, iam able to see the change in the layout in the output. When I select a layout name and run the report in background, Iam sending a file to the application server. Now, when I give the layout and run the report in background, the file iam sending to the app server should have the same layout which i have selected in the selection screen.
    Please help with some example code.
    Thanks,
    Guru Charan.

    Hi Amit,
    Thanks for the reply. The program can be run both the ways. When it is run in the foreground, Iam changing the layout with the help of REUSE_ALV_GRID_DISPLAY. It is working.
    But when iam running in the background, I have to send a file to application server with the same layout.
    thanks,
    Guru Charan.

  • Document layout changes when creating PDF

    We have the problem of the layout/formatting of documents changing whenever we try to print to PDF from, for instance MS-Word.
    We open a large document of lets say 100 pages in total, then when we choose PRINT and now select ADOBE PDF instead of the default Windows printer, then the document layout/formatting changes and now suddenly htere are only 95 pages.
    It is aboviusly some font setting problem, but we have not been able to find a soultion ourselves. This issue also prevents us from using "create from multiple files" as we cannot trust the final layout (page numberring end up wrong in PDF file)
    Any input will be appreaciated.

    Thx for the input. I am aware of the suggested workaround, but I was looking for at more "permanent" solution, as we need to combine 40-50 files for each job (Word, Excel...and more) and therefore we are trying to avoid having to go through all documents each time we need to convert to PDF.
    Currently we are :
    opening each document individually
    then selecting ADOBE PDF printer
    then checking document formatting/layout
    then printing to PDF.
    finally combining the 40-50 PDF's to one PDF
    This we have to do as we cannot trust the formatting/layout.
    It is off course undesirable when we know we can combine Word, Excel files to one PDF in one "go" without having to open the individual docs. at first.
    Surely, it must be some printer driver setup issue (using printer fonts, enabling/disabling bitmap fonts, use truetypes....etc)? we just can't find the recipe for this ourselves.

  • Layout changed when copy and modify standard pz09 service

    Hi,
    We  have copied the standard PZ09 ITS service (HTML Template, TCode, program) to custom program. Done some changes in custom program and published the service to ITS. But when we test the custom service the the layout looks entirely different. how to get the standard PZ09 layout in custom service. we haven't done any change in html template.
    Thanks & Regards,
    Bala

    Hello Bala,
    Does your original PZ09 service have templates?  You will need those templates (and mimes) to have the same look and feel.  Therefore if your custom service is called ZPZ09 then your system should have a zpz09 directory of templates.  If not then that is the problem, you haven't copied (or published) the PZ09 templates.
    Edgar

  • Re: have two panels, when button is pressed want second panel to show.

    Please help:
    I working with a very simple applet program.
    All I want to do is when I click a button a new panel shows up and the earlier one disappers. Like you see
    when you fill up online forms.
    I am doing this with JPanels with setvisible true/false.
    The program should work but when I click on the button the second panel deos not show up.
    Please tell me what I am doing wrong...
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    <applet code = "PanelTest.class" width=500 height=250>
    </applet>
    public class PanelTest extends JApplet {
    Container cnt;
    JPanel jpanel1, jpanel2;
    JPanel mainjpanel;
    public void init()
    cnt = getContentPane();
    mainjpanel = new JPanel();
    cnt.add(mainjpanel);
    jpanel1 = new JPanel();
    JButton jbutton1 = new JButton("Account information");
    jpanel1.setVisible(true);
    jpanel1.add(jbutton1);
    mainjpanel.add(jpanel1);
    ButtonAction ba = new ButtonAction();
    jbutton1.addActionListener(ba);
    jpanel2 = new JPanel();
    JButton jbutton2 = new JButton("Save");
    jpanel2.setVisible(false);
    jpanel2.add(jbutton2);
    mainjpanel.add(jpanel2);
    class ButtonAction implements ActionListener
    { public void actionPerformed(ActionEvent ae)
    { String name = ((JButton)ae.getSource()).getText();
    if (name.equals("Account information"))
    jpanel1.setVisible(false);
    jpanel2.setVisible(true);
    }

    Hi,
    here is a link http://java.sun.com/docs/books/tutorial/uiswing/layout/card.html
    with an example of using CardLayout and managing more than one component in an applet.
    Hope it helps
    regards

  • Why does the layout change when creating calendars in iPhoto?

    Hi.  How can I stop iPhoto from automatically changing the layout when adding photos to make a calendar?

    Hi.  Latest version of everything.  Picture calendar theme.  Let's say I choose the layout that uses 6 photos.  I begin to drag photos where I want.  Sometimes the layout stays the same, but sometimes the layout of the photos changes positions, even after I have placed a specific photo into a specific place holder.  If I place a photo into a specific place holder, I would like it to stay there and not change positions.  I am not an iPhoto user - I use Aperture, but I cannot create calendars from within Aperture - so it seems to me there ought to be a tick-mark someplace that I need to uncheck so iPhoto stops rearranging photos as I place them into the layout.  I hope this make sense.  Thanks for taking the time with with.  It is appreciated.
    mike

Maybe you are looking for

  • Dvcpro 50 vs regular dv with the HVX200

    what are the advantages with shooting dvcpro or dvcpro 50 vs regular dv with the HVX200? Is the image quality better?

  • 20" Widescreen LCD. Apple and Dell are same LCD screen

    For the detailed look at both monitors see: http://www.anandtech.com/displays/showdoc.aspx?i=2400 If you were wanting to know if the Dell 2005FPW works with your mac, thats what I use exclusively on my mini.

  • How many pages can Muse handle?

    How many pages and/or how big of a site can Muse handle? Thanks, Roddy

  • Doubt in SUBMIT with job

    Hi all, I am confused in one scenario while using submit statement.. In my requirement i have two report programs say "X" and "Y". X calls the report Y with some inputs .......and X is scheduled as a job. Y calls a standard SAP program with some inpu

  • In Trex where does the documents reside ?

    We have Enterprise portal and use TREX for collaboration rooms and document indexing. EP is a java only Netweaver stack on AIX and TREX is on a window box. What I wanted to know is where do the actual documents, which TREX indexes reside? Does Trex r