Menubar does not change when switching apps

Sometimes when I switch applications, the menu bar does not change.
The proper menu bar is there, I can use it, but the text shown is some previously focused application.
Switching apps once or twice fixes the issue, but it is very annoying.
This is a fresh re-install of Lion, but I retained my users and applications.
I have tried removing the systemuiserver plist file and rebooting, but the problem persists.
Any ideas?

A link would be nice but I suspect that you are not gettign the finger (you knwo what I mean) when you roll over the link because your href is  not set to anything.
<a href="" onclick=MM_openBrWindow('images/image.jpg','largeDisplay','scrollbars=yes,resizable=yes,width=100,height=120')
Set your href to "#" or "javascript:;" - the latter is preferred.

Similar Messages

  • Album artwork does not change when switching tv seasons

    With the new iTunes 11, television seasons are now grouped together.  When switching the view from one season to the next, the artwork doesn't change, it remains on the first season.  Is there a way to fix this so that the proper artwork is displayed for the proper season?

    This manual process DOES work to add and save my album artwork. Unfortunately, this is a long process for over 9,000 songs.
    I do not have an Album Artwork folder, but I do have an unknown Album Artwork file, not folder, any thoughts on this? One thing to consider for my situation is two things:
    1. To separate my music files from my regular files, I keep my music files on the D:, away from my Itunes folder on my C:
    2. To conserve space, I do not allow Itunes to make a copy of my files on my C:
    Could either or both of these issues be the source of my problem? Should I remove Itunes and it's contents and reload the software and start from scratch?
    Message was edited by: pullinmyhairout
    Message was edited by: pullinmyhairout

  • TS2771 on i pod touch the orientation does not change when I turn it on it's side when using safari etc.  When viewing youtube it only displays widescreen and will not display portrait , anyone any ideas? is this a fault or do all ipod touch do this?

    On i pod touch the orientation does not change when I turn it on it's side when using safari etc.  When viewing youtube it only displays widescreen and will not display portrait , anyone any ideas? is this a fault or do all ipod touch do this?

    The user guide says:
    Movies viewed in Videos and YouTube appear only in landscape orientation. Street views in Maps
    also appear only in landscape orientation.
    Do you have the scree orientation lock turned on? If on there is a circular arrow icon with a padlock inside next to the battery charge icon in the upper right.

  • How do I check internet usage history? When i use the "History" tab on the tool bar all I see is today's activity & the calendar does not change when I click on it. Thanks

    How do I check internet usage history? When i use the "History" tab on the tool bar all I see is today's activity & the calendar does not change when I click on it. Thanks

    zedzed,
    Here's another thought.
    Navigate to HD > Users > Library > Safari: Make a duplicate of History.plist.
    To duplicate the file, click once to highlight it. Press the Command + D keys.
    Drag the History,plist copy file to the Desktop.
    Highlight it. Press the Command + I keys, to get info.
    Change Open With to TextEdit.
    When you open the file in TextEdit, it will be difficult to read, but you will be able to pick out some sites.
    ali b

  • Tabset in page fragment , the url does not changes when we select tabs...

    Hi
    Thank you for reading my post.
    i noticed that when we use a tabSet in a page fragment , selecting tabs does not change the current URL ,
    is it a correct manner ? I think when we select a tab and it opens another page the url should change.

    HI,
    There is a relevant topic on EA discussion.
    Topic :TabSet in page fragment , selecting a tab open a page but does not change the current browset url
    https://feedbackprograms.sun.com/project/forum/thread.html?cap={3F4DA363-16D3-4D4C-920C-992ECB054B6D}&forid={CC6B8562-F896-4A44-ACB6-4684BDD05E19}&topid={361DBDF0-FFDE-4618-9FC6-86E4903A9565}
    Hope this helps.
    Please post messages related to Creator 2 EA at the feedbacks programs portal. The URL is:
    https://feedbackprograms.sun.com/login.html
    Thanks,
    RK.

  • BOM item qty does not change when header qty changes in Outbound Delivery

    Hi,
    We are using sales BOM and exploding it in Sales Order.  ( Item category of components as TAE )
    I am creating a delivery with reference to  a sales oder ( i have maintained copy controls to copy header and item data). Now when i change BOM header quantity in delivery document system is  not redeterming the components quantity , item quantity of the components does not change.
    Please let me how can i control item qunatity when BOM heade quantity changes in outbound delivery document
    Thanks
    Venkata Rama Reddy.K

    Hello Venkata,
    The components item category is TAE, that means the item category for the header item will be TAQ. Also the pricing will be carried out at the header item level only.
    Now for your query:
    The standard item category controls of TAQ will not have any connection between the header & the item level quantities in the delivery. If you change the quantity of the header item in the sales order, the quantity of the compnenets will be automatically adjusted. But this will not happen in the delivery with the normal settings of TAQ.
    Solution:
    Go to transaction code VOV7 - select TAQ - double click - In the Bill of Material/Configuration section , there is a field "Create Delivery Group" - select "X - Form delivery group with one delivery date".
    Save the settings. Now create a new sales order & then create the delivery & try to change the quantity of the header item, the system will automatically change the quantity of the components. (the system may not change the quantity of the components in the delivery of the old sales order - change it manually)
    With best regards,
    Allabaqsh Patil.
    Idhasoft Ltd.

  • Cursor does not change when hovering over pop-up window link

    I created a text link for a pop-up window. The link does work, but the cursor does not change to a pointy finger, the standard link icon.
    I don't know a lot of javascript, but can figure it out if it's just adding some code.This was done in CS3. Any help would be appreciated! Here's the code:
    function MM_openBrWindow(theURL,winName,features) { //v2.0
      window.open(theURL,winName,features);
    Thanks in advance.
    Todd

    A link would be nice but I suspect that you are not gettign the finger (you knwo what I mean) when you roll over the link because your href is  not set to anything.
    <a href="" onclick=MM_openBrWindow('images/image.jpg','largeDisplay','scrollbars=yes,resizable=yes,width=100,height=120')
    Set your href to "#" or "javascript:;" - the latter is preferred.

  • Safari 5.0 - URL does not change when changing location

    I have noticed this on two Macs running 10.6.3. When moving between pages (eg, clicking on a link within a page, or using the Google search bar to locate and load a new page), the URL in the address bar does not change to the new location. It remains at the
    This applies whether the new page is within the same domain, or is at a different location.
    Specific test: Load http://news.bbc.co.uk in Safari. Towards the top left of the page, there's a link to the BBC home page, which should appear in the status bar as "http://www.bbc.co.uk". Clicking on it will send you to that page, but the URL will remain as the news subdomain. If you click to another tab, then click back, it'll then update correctly.
    Matt

    Hi Matt,
    MIght be corrupted Safari pref files.
    Go to the Safari Menu Bar, click Safari/Preferences. Make note of all the preferences under each tab. Quit Safari. Now go to ~/Library/Preferences and move this file com.apple.safari.plist to the Desktop.
    Relaunch Safari and see if that makes a difference. If not, move the .plist file back to the Preferences folder. If Safari functions as it should, move that .plist file to the Trash.
    If the problem persists, go to ~/Library/Caches. From the com.apple.Safari folder move the "cache.db" file to the Trash. Relaunch Safari.
    Carolyn

  • IPhone speaker does not work when switching call to hands free option

    having problems with IPhone speaker, not working when switching phone calls to speaker mode, any suggestion?

    Same problem - I was on the phone last night and the speaker switched off and can't figure out what happened. I tried to reset the phone, no sound is working.  I can hear a phone call if I hold it up to my ear. Very frustrating as my phone is less than 3 months old. Tracy

  • Home wifi password does not save when switching iPod off and on again

    Hi, when using my home wifi on my ipod touch the password does not save and I have to enter it every time I switch my ipod on. Is there a way around this. It was okay when I first got it. I have tried reseting the network settings, but this has not helped.

    If you do a search of the forums, there appear to be a number of postings regarding iOS6, wi-fi security and random disconnection of wi-fi. It appears, as the posts have discussed, it is connected to the use of WPA2 security. Most of the posting, however, have been related to iPhone 5, not the 4S. As far was what was posted, they say Apple has been made aware of the issue and they are looking for a fix. Not sure if that would help the iPhone 4S, because it does not support both bands as the iPhone 5 does. Just remember that WEP is less secure than WPA2. You might also try restarting your router after changing back to WPA2 on the phone, depending on what the router is set for.

  • :system.cursor_block value does not change when mouse click

    Form created with Forms version 6.0.8.8.0. Consists of a control block that has the toolbar buttons, a filter control block that contains item, and a data block. The filter control block and data block are on a tabbed canvas. There are 3 tabs with corresponding filter control block and data block on each.After the data block is queried, code sets the navigation to the control block with the go_item built-in. The user would use a mouse click on the filter control block on one of the tabs to activate an LOV, code is in a generic when-mouse-click trigger that will determine the item focus with the value in the system variable :system.cursor_block. Works for the first tab. Does not work for 2nd or 3rd tab. On-error trigger does not capture any error. Values for :system.cursor_block for tab 1 show that value before mouse click is 'control.detail' and after mouse click is 'filter.a'. For tabs 2 and 3 the value before mouse lick is 'control.detail' and after mouse click is 'control.detail' instead of 'fiter.b' or 'filter.c'. Verified that the 3 filter blocks are identical. Can anyone shed some light on this anomoly? I have been looking for this solution (many different iterations and changes to trap it) for too long.

    :System.Cursor_Block reports the name of a block, NOT a BlockName.ItemName.
    Use :System.Trigger_Item with your mouse click, or :System.Cursor_Item.

  • Input source selector does not show when switching the input source

    Hi,
    I'm running OS X Mavericks on my late-2013 15" MacBook Pro with Retina Display. I set a key combinations in Keyboard section in System Preferences to "Select the previous input source" and "Select next source in Input menu".
    In my previous MacBook, whenever I use the shortcut to switch my input source, there's a selector (as shown below) appear in the middle of the screen showing what input source I am selecting. Strangely, on this new MacBook, it just doesn't show it.
    I thought that this is a change in Mavericks, but a few days ago, I install Mavericks on my old MacBook and the selector does appear when I am switching the input source using the shortcut. I have search throught all the setting in System Preferences, but there is no option to show or hide the Input source selector when switching the input source. Am I the only one? Am I missing something? Is there any fix?
    Thanks in advance.

    Try troubleshooting the adapter > Apple Portables: Troubleshooting MagSafe adapters

  • Sound Icon does not change when pressing the Mute Key

    Hey guys,
    I have a really annoying problem that only seems to start a few hours after booting my MacBook, it does not happen on a fresh reboot. When I press the mute button on the keyboard it does not mute the sound and the icon in the top bar does not show that the sound has been muted.
    If I go to the control panel for the audio and do the same thing with the panel open it works just fine and the icon shows that the audio has been muted. Do any of you have this issue and how can I report this bug to Apple so they can adress it in their next OS upgrade.
    Best Regards
    Felix
    MacBook Pro 1.83Ghz 1Gig RAM   Mac OS X (10.4.5)  

    I am having the exact same problem. It is even worse because it has happened to me in class before.
    The other day, after coming to class I opened up my MBP from sleep intending to work on some things for class. As a general practice I hit the mute key as soon as I open the Mac. This always worked well with my Powerbook. However the system did not mute and the connection noises from iChat played out. This upset the teacher who glared at me for the rest of the class.
    This is not an isolated incident either. I have had the tool bar and the translucent icon disagree a number of times.
    I have found that if I hit the mute key twice it will generally correct the problem. But it is annoying. I hope someone at Apple is listening (in more than one way it would seem)
    Macbook Pro   Mac OS X (10.4.6)  

  • Yosemite 10.10.1 - DNS cache does not clear when switching between WiFi networks

    Before updating to Yosemite, DNS caches would clear when switching between WiFi networks, as they should.
    For Example, when using an Exchange server, your server name might be something like mail.company.com. Outside of the corporate LAN the IP would resolve to the outside (WAN) address. When you move the laptop inside the corporate LAN, it should clear the cache so mail.company.com resolves to the internal (LAN) address.  This is just one example of a dumb DNS transition not taking place switching from outside to inside (and vice versa).
    Instead, OS X is holding onto the outside DNS record even when moving to the Corporate LAN. The only way to fix is to run the DNS cache command (which is MUCH more convoluted in Yosemite now), or more easily, to quickly turn off then turn on WiFi.
    This is an irritation as I have to perform this action every morning, and every time I come back to my desk from offsite.

    Well, clearing the caches is as simple as this, no?
    Clear MDNS Cache
    sudo discoveryutil mdnsflushcache
    Clear UDNS Cache
    sudo discoveryutil udnsflushcaches
    One other thing: Have you tried 10.10.2? There are many many fixes in 10.10.2 over 10.10.1.

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

Maybe you are looking for