JTextField Focus...Please Help!

Hello,
I have an issue which i hope someone may be able to help me with. What i am trying to do i think is simple but i am still not up to speed on getFocus events so i hope somebody will be able to aid me.
I have two text fields and one button on a form. When a text field is selected and the button pressed i expect to see a letter appear in the text field dep(String) depending on which one has the focus. However i have not been able to fully achieve this funcionality.
The code I have so far:
private void button1_actionPerformed(ActionEvent e)
     if (gf.WHEN_FOCUSED == 0){
       //gf.setFocusable(true);
         gf.gotFocus();
         txt2 = txt2 + txt;
          gf.setText(txt2);
       else if(tf.WHEN_FOCUSED == 0){
         //  tf.setFocusable(true);
             tf.gotFocus();
             txt2 = txt2 + txt;
             tf.setText(txt2);
  }Could someone help me with this?
Thanks

Write your own TextAction. The TextAction keeps track of the last text component to have focus. Here is a simple example:
JButton selectAll = new JButton( new SelectAll() );
class SelectAll extends TextAction
     public SelectAll()
          super("Select All");
     public void actionPerformed(ActionEvent e)
          JTextComponent component = getFocusedComponent();
          component.selectAll();
}

Similar Messages

  • JTextField.setText() please help...

    i have a field in my table that is in date format.
    txtempdate.setText(rsmastempl.getDate("empdate"));
    this produce an error.
    how will i display my date filed in my table in a TextBox?
    thank you for helping.
    killuasoft

    Christ boy! Did that hurt?
    Try txtempdate.setText(String.valueOf(whatever));
    I'm pretty drunk now, so I'm gonna hit the party.
    L8r

  • Hello, the 'Save As' dialog box used to allow the backspace button to go up one level in the directory when the focus is in the folder contents box but it does not work any more, please help.

    Hello, the 'Save As' dialog box used to allow the backspace button to go up one level in the directory when the focus is in the folder contents box but it does not work any more, please help. BTW the same 'Save As' dialog in other applications still allow the backspace button to go up one level in the directory.

    cor-el,
    I kept forgetting and procrastinating about following your instructions, since I have internet access only for limited amounts of time and usually I am busy with important tasks when I am.
    Out of the blue, the problem corrected itself (the Save As box started to open full screen, then shrunk down to a normal size and the edges can now be dragged to a custom size).
    Even the copy and paste problem in the filenaming area seems to have been less troublesome lately even though there have been no updates to Firefox in a few weeks.
    Even though I marked the solution as not helpful, the problem has in fact been resolved. I will save the solution instructions in case the issue returns.

  • How to empty the JTextField automatically? Please HELP me.

    Hello,
    This is my full listing program:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import javax.swing.event.*;
    import javax.swing.border.*;
    public class PortGUI extends JFrame
         private     JButton btOk;
         private JButton btCancel;
         private     JButton btReply;
         private     JLabel lblServIP;
         private     JLabel lblAuth;
         private JLabel lblThrd;
         private JLabel lblAcc;
         private JLabel lblMax;
         private JLabel lblAuthent;
         private JLabel lblAdm;
         private JLabel lblReplServ;
         private JCheckBox chkUsers;
         private JCheckBox chkEnbDbg;
         private JOptionPane pnlErr = new JOptionPane();
         public PortGUI()
              // Create main panel
              JPanel topPanel     = new JPanel();
              topPanel.setLayout(null);
              getContentPane().add( topPanel );
         // Create Server Settings panel
              JPanel panelsett = new JPanel();
              panelsett.setLayout(null);
              panelsett.setBounds(5,5,680, 200);
              // panelsett containers
              final JTextField fldServIP = new JTextField();
              fldServIP.setBounds( 160, 30, 100, 25 );
              fldServIP.setFocusAccelerator( 'v' );
              panelsett.add(fldServIP);
              lblServIP = new JLabel( "Server IP"     );
              lblServIP.setBounds( 20, 30, 100, 25 );
              lblServIP.setLabelFor(     fldServIP );
              panelsett.add(lblServIP);
              final JTextField fldAuth = new JTextField();
              fldAuth.setBounds( 600, 30, 50, 25 );
              fldAuth.setFocusAccelerator( 'v' );
              panelsett.add(fldAuth);
              lblAuth = new JLabel( "Incoming Radius Authentication Port");
              lblAuth.setBounds( 350, 30, 300, 25 );
              lblAuth.setLabelFor(fldAuth);
              panelsett.add(lblAuth);                                        
              final JTextField fldThrd =     new     JTextField();
              fldThrd.setBounds( 160, 60, 50, 25 );
              fldThrd.setFocusAccelerator( 'a' );
              panelsett.add(fldThrd);
              lblThrd = new JLabel( "Worker Threads" );
              lblThrd.setBounds( 20, 60, 100, 25 );
              lblThrd.setLabelFor(fldThrd);
              panelsett.add(lblThrd);
              final JTextField fldAcc =     new     JTextField();
              fldAcc.setBounds( 600, 60, 50, 25 );
              fldAcc.setFocusAccelerator( 'a' );
              panelsett.add( fldAcc );
              lblAcc = new JLabel( "Incoming Radius Accounting Port" );
              lblAcc.setBounds( 350, 60, 300, 25 );
              lblAcc.setLabelFor(     fldAcc );
              panelsett.add( lblAcc );
              final JTextField fldMax =     new     JTextField();
              fldMax.setBounds( 160, 90, 50, 25 );
              fldMax.setFocusAccelerator( 'c' );
              panelsett.add( fldMax );
              lblMax = new JLabel( "Maximum Consoles" );
              lblMax.setBounds( 20, 90, 200, 25 );
              lblMax.setLabelFor(     fldMax );
              panelsett.add(lblMax);
              // Create combo box
              String[] AuthStrings = {"Local Server", "Proxy Server", "Local and Proxy"};
              JComboBox AuthList = new JComboBox(AuthStrings);
              AuthList.setSelectedIndex(2);
              AuthList.setSelectedItem(null);
              AuthList.setBounds(450, 90, 200, 25);
              panelsett.add(AuthList);          
              lblAuthent = new JLabel( "Authenticator" );
              lblAuthent.setBounds( 350, 90, 100, 25 );
              lblAuthent.setLabelFor(     AuthList);
              panelsett.add(lblAuthent);
              final JTextField fldAdm =     new     JTextField();
              fldAdm.setBounds( 160, 120, 50, 25 );
              fldAdm.setFocusAccelerator( 'c' );
              panelsett.add( fldAdm );
              lblAdm = new JLabel( "Admin TCP Port" );
              lblAdm.setBounds( 20, 120, 150, 25 );
              lblAdm.setLabelFor(     fldAdm );
              panelsett.add(lblAdm);
              // create checkbox
              chkUsers = new JCheckBox("Cache Users in Memory");
              chkUsers.setBounds(350, 120, 250, 25);
    chkUsers.setMnemonic('m');
    chkUsers.setSelected(false);
    panelsett.add(chkUsers);
              final JTextField fldReplServ =     new     JTextField();
              fldReplServ.setBounds( 160, 150, 100, 25 );
              fldReplServ.setFocusAccelerator( 'c' );
              panelsett.add( fldReplServ );
              lblReplServ = new JLabel( "Replication Server IP" );
              lblReplServ.setBounds( 20, 150, 200, 25 );
              lblReplServ.setLabelFor(fldReplServ);
              panelsett.add(lblReplServ);
              chkEnbDbg = new JCheckBox("Enable Debug Trace Output");
    chkEnbDbg.setBounds(350, 150, 250, 25);
    chkEnbDbg.setMnemonic('n');
    chkEnbDbg.setSelected(false);
    panelsett.add(chkEnbDbg);
              Border etched;
              etched = BorderFactory.createLoweredBevelBorder();
         TitledBorder title;
         title = BorderFactory.createTitledBorder(etched, "Server Settings");
    title.setTitleJustification(TitledBorder.LEFT);
    panelsett.setBorder(title);
    topPanel.add(panelsett);
              // Create a button
              btOk = new JButton( "OK" );
              btOk.setBorder(BorderFactory.createRaisedBevelBorder());
              btOk.setBounds( 170, 270, 100, 35 );
              btOk.setEnabled(false );
              topPanel.add(btOk);
              btReply = new JButton( "Apply" );
              btReply.setBorder(BorderFactory.createRaisedBevelBorder());
              btReply.setBounds( 300, 270, 100, 35 );
              topPanel.add(btReply);
              btCancel = new JButton( "Cancel" );
              btCancel.setBorder(BorderFactory.createRaisedBevelBorder());
              btCancel.setBounds( 420, 270, 100, 35 );
              btCancel.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
         System.exit(0);
              topPanel.add(btCancel);
              // Action for each components
              fldServIP.getDocument().addDocumentListener(new DocumentListener()
                   public void     insertUpdate( DocumentEvent event )
                        String     sString     = fldServIP.getText();
                        try     
                             int     iValue = Integer.parseInt( sString );
                             btOk.setEnabled( true );
                        catch( NumberFormatException e )
                             if(     fldServIP.getText().length() == 4 )
                   JOptionPane.showMessageDialog(pnlErr,
    "Please try again",
    "Error Message",
    JOptionPane.ERROR_MESSAGE);
    public void removeUpdate( DocumentEvent event )
         // Prevent the user     from entering a blank field
         if(     fldServIP.getText().length() == 0 )
         btOk.setEnabled( false );
         else
              // Do the same error checking as insertUpdate()
              insertUpdate( event );
    public void changedUpdate( DocumentEvent event )
         // Nothing to do here
              fldAuth.getDocument().addDocumentListener(new DocumentListener()
                   public void     insertUpdate( DocumentEvent event )
                        String     sString     = fldAuth.getText();
                        try     
                             int     iValue = Integer.parseInt( sString );
                             btOk.setEnabled( true );
                        catch( NumberFormatException e )
                             if(     fldAuth.getText().length() == 4 )
                   JOptionPane.showMessageDialog(pnlErr,
    "Please try again",
    "Error Message",
    JOptionPane.ERROR_MESSAGE);
    public void removeUpdate( DocumentEvent event )
         // Prevent the user     from entering a blank field
         if(     fldAuth.getText().length() == 0 )
         btOk.setEnabled( false );
         else
              // Do the same error checking as insertUpdate()
              insertUpdate( event );
    public void changedUpdate( DocumentEvent event )
         // Nothing to do here
         fldThrd.getDocument().addDocumentListener(new DocumentListener()
                   public void     insertUpdate( DocumentEvent event )
                        String     sString     = fldThrd.getText();
                        try     
                             int     iValue = Integer.parseInt( sString );
                             btOk.setEnabled( true );
                        catch( NumberFormatException e )
                             if(     fldThrd.getText().length() == 4 )
                   JOptionPane.showMessageDialog(pnlErr,
    "Please try again",
    "Error Message",
    JOptionPane.ERROR_MESSAGE);
    public void removeUpdate( DocumentEvent event )
         // Prevent the user     from entering a blank field
         if(     fldThrd.getText().length() == 0 )
         btOk.setEnabled( false );
         else
              // Do the same error checking as insertUpdate()
              insertUpdate( event );
    public void changedUpdate( DocumentEvent event )
         // Nothing to do here
    fldAcc.getDocument().addDocumentListener(new DocumentListener()
                   public void     insertUpdate( DocumentEvent event )
                        String     sString     = fldAcc.getText();
                        try     
                             int     iValue = Integer.parseInt( sString );
                             btOk.setEnabled( true );
                        catch( NumberFormatException e )
                             if(     fldAcc.getText().length() == 4 )
                   JOptionPane.showMessageDialog(pnlErr,
    "Please try again",
    "Error Message",
    JOptionPane.ERROR_MESSAGE);
    public void removeUpdate( DocumentEvent event )
         // Prevent the user     from entering a blank field
         if(     fldAcc.getText().length() == 0 )
         btOk.setEnabled( false );
         else
              // Do the same error checking as insertUpdate()
              insertUpdate( event );
    public void changedUpdate( DocumentEvent event )
         // Nothing to do here
    fldMax.getDocument().addDocumentListener(new DocumentListener()
                   public void     insertUpdate( DocumentEvent event )
                        String     sString     = fldMax.getText();
                        try     
                             int     iValue = Integer.parseInt( sString );
                             btOk.setEnabled( true );
                        catch( NumberFormatException e )
                             if(     fldMax.getText().length() == 4 )
                   JOptionPane.showMessageDialog(pnlErr,
    "Please try again",
    "Error Message",
    JOptionPane.ERROR_MESSAGE);
    public void removeUpdate( DocumentEvent event )
         // Prevent the user     from entering a blank field
         if(     fldMax.getText().length() == 0 )
         btOk.setEnabled( false );
         else
              // Do the same error checking as insertUpdate()
              insertUpdate( event );
    public void changedUpdate( DocumentEvent event )
         // Nothing to do here
    fldAdm.getDocument().addDocumentListener(new DocumentListener()
                   public void     insertUpdate( DocumentEvent event )
                        String     sString     = fldAdm.getText();
                        try     
                             int     iValue = Integer.parseInt( sString );
                             btOk.setEnabled( true );
                        catch( NumberFormatException e )
                             if(     fldAdm.getText().length() == 4 )
                   JOptionPane.showMessageDialog(pnlErr,
    "Please try again",
    "Error Message",
    JOptionPane.ERROR_MESSAGE);
    public void removeUpdate( DocumentEvent event )
         // Prevent the user     from entering a blank field
         if(     fldAdm.getText().length() == 0 )
         btOk.setEnabled( false );
         else
              // Do the same error checking as insertUpdate()
              insertUpdate( event );
    public void changedUpdate( DocumentEvent event )
         // Nothing to do here
    fldReplServ.getDocument().addDocumentListener(new DocumentListener()
                   public void     insertUpdate( DocumentEvent event )
                        String     sString     = fldReplServ.getText();
                        try     
                             int     iValue = Integer.parseInt( sString );
                             btOk.setEnabled( true );
                        catch( NumberFormatException e )
                             if(     fldReplServ.getText().length() == 4 )
                   JOptionPane.showMessageDialog(pnlErr,
    "Please try again",
    "Error Message",
    JOptionPane.ERROR_MESSAGE);
    public void removeUpdate( DocumentEvent event )
         // Prevent the user     from entering a blank field
         if(     fldReplServ.getText().length() == 0 )
         btOk.setEnabled( false );
         else
              // Do the same error checking as insertUpdate()
              insertUpdate( event );
    public void changedUpdate( DocumentEvent event )
         // Nothing to do here
         public static void main(String[] args)
              //int windowWidth, windowHeight;
              int windowWidth = 700;
    int windowHeight = 400;
              PortGUI window = new PortGUI();
              window.setTitle("");
              Dimension windowSize = window.getSize();
              Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
              window.setSize(windowWidth, windowHeight);
              window.setLocation((screenSize.width - windowWidth) / 2, (screenSize.height - windowHeight) / 2);
              window.setVisible(true);
              window.setResizable(false);
    On that listing program, my problem is in field document listener, that is:
    fldThrd.getDocument().addDocumentListener(new DocumentListener()
                   public void     insertUpdate( DocumentEvent event )
                        String     sString     = fldThrd.getText();
                        try     
                             int     iValue = Integer.parseInt( sString );
                             btOk.setEnabled( true );
                        catch( NumberFormatException e )
                             if(     fldThrd.getText().length() == 4 )
                   JOptionPane.showMessageDialog(pnlErr,
    "Please try again",
    "Error Message",
    JOptionPane.ERROR_MESSAGE);
    if I execute this program, the textfield can only receive integer input. If input is string til 4 times, the dialog panel will display error message. After that, textfield must be empty (delete automatically).
    I want to ask you about how I can emptying that textfield automatically after the dialog panel is appear?
    Please help me to get out from my problem.
    Thank's for your help,
    har

    Hi,
    To empty the text file, use the method setText("").
    eg. fldServIP.setText("");
    fldServIP is one of your textfield. So whereever you are showing the dialog box, use setText("") for the corresponding textfields.
    All the best

  • JWindow class please help me

    sir<br>
    i design a splash window by the use of JWindow class
    i use the following constructor
    public class splash extends JWindow
    //get content pane and set by the setContentPane method
    and add the three panels in it.
    One JPanel have a JTextField
    but JTextField is not accept the input or focus
    means i try to write text in it but it not work
    the code as follows
    //Create Jwindow
    import javax.swing.*;
    import java.awt.*;
    public class SplashScreen extends JWindow
    public static void main(String args[])
    new SplashScreen().setVisible(true);
    //define Variables
    Toolkit tk=Toolkit.getDefaultToolkit();
    Container cp=getContentPane();
    SplashScreenPanel1 p1;
    SplashScreenPanel2 p2;
    SplashScreenPanel3 p3;
    SplashScreen()
    Dimension d=tk.getScreenSize();
    p1=new SplashScreenPanel1(d.getWidth(),d.getHeight());
    p2=new SplashScreenPanel2(d.getWidth(),d.getHeight());
    p3=new SplashScreenPanel3(d.getWidth(),d.getHeight());
    this.setSize(d);
    this.setContentPane(cp);
    this.getContentPane().setLayout(null);
    cp.setBackground(new Color(47,168,122));
    p1.setBounds(new Rectangle(0,(int)(d.getHeight()-100),(int)d.getWidth(),100));
    p2.setBounds(new Rectangle(0,0,(int)d.getWidth(),100));
    p3.setBounds(new Rectangle(0,100,(int)(d.getWidth()),400));
    this.getContentPane().add(p1);
    this.getContentPane().add(p2);
    this.getContentPane().add(p3);
    p1.b1.requestFocus();
    }//end of spalshscreen
    create JPanel
    public class spashscreenpanel3 extends JPanel
    JTextField t=new JTextField();
    splashscreenpanel3
    this.setSize(200,100);
    this.setLayout(null);
    t.setBounds(10,20,100,20);
    this.add(t);
    }//end of JPanel
    Please help me i am very thankful to u

    Some helpful information is here:
    http://java.sun.com/docs/books/tutorial/uiswing/misc/focus.html
    import javax.swing.*;
    import java.awt.*;
    public class hamad extends JFrame
      public static void main(String args[]) 
        new hamad();
      //define Variables
      SplashScreenPanel1 p1;
      SplashScreenPanel2 p2;
      SplashScreenPanel3 p3;
      JWindow window;
      public hamad()
        createWindow(this);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize(300,200);
        setLocation(500,300);
        setVisible(true);
      private void createWindow(JFrame frameReference) {
        window = new JWindow(frameReference);
        Toolkit tk = Toolkit.getDefaultToolkit();
        Dimension d=tk.getScreenSize();
        p1=new SplashScreenPanel1();
        p2=new SplashScreenPanel2();
        p3=new SplashScreenPanel3();
        window.getContentPane().add(p1, "North");
        window.getContentPane().add(p2, "Center");
        window.getContentPane().add(p3, "South");
        window.setSize(d.width/4, d.width/4);
        window.setLocation(100,100);
        window.setVisible(true);
      private class SplashScreenPanel1 extends JPanel
        JTextField field;
        public SplashScreenPanel1()
          setBackground(new Color(200,150,190));
          setPreferredSize(new Dimension(100,50));
          field = new JTextField();
          field.setPreferredSize(new Dimension(100, 20));
          add(field);
      private class SplashScreenPanel2 extends JPanel
        JTextField field;
        public SplashScreenPanel2()
          setBackground(new Color(220,90,180));
          field = new JTextField();
          field.setPreferredSize(new Dimension(75,20));
          add(field);
      //create JPanel
      private class SplashScreenPanel3 extends JPanel
        JTextField t=new JTextField();
        public SplashScreenPanel3()
          setBackground(Color.pink);
          setPreferredSize(new Dimension(100,50));
          setLayout(null);
          t.setBounds(10,20,100,20);
          add(t);
      }//end of JPanel
    }//end of spalshscreen

  • ICloud connection error, iTunes Store not loading, update server not responding. Please Help.

    Please Help! I am in desperate need to access my email. Thank you.
    whenever I sign in iCloud, this happens:
    APPLICATION NAME
    cloudos
    ERROR
    authDidNotConnect
    TYPE
    server
    APP STATECHART
    SC.Statechart:sc915
      initialized: true
      name: cloudos-statechart
      current-states: [
        active.authUI.fieldsEditable
      state-transition:
        active: false
        suspended: false
      handling-event: false
    BUILD NUMBER
    14C.131409
    TIME
    Fri May 02 2014 21:03:39 GMT+1000 (EST)        (1399028619503)
    HOST
    www.icloud.com
    USER AGENT
    Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:28.0) Gecko/20100101 Firefox/28.0
    ENVIRONMENT
    PROD
    RECENT LOG MESSAGES
    Fri, 02 May 2014 10:22:58 GMT:  DEBUG: SC.Module: Attempting to load 'cloudos_foundation/springboard'
    Fri, 02 May 2014 10:22:58 GMT:  DEBUG: SC.Module: Module 'cloudos_foundation/springboard' already loaded.
    Fri, 02 May 2014 10:22:58 GMT:  DEBUG: SC.Module: Evaluating JavaScript for module 'cloudos_foundation/springboard'.
    Fri, 02 May 2014 10:22:58 GMT:  DEBUG: CloudOS.main() already has localized strings, proceeding to run CloudOS.run() now.
    Fri, 02 May 2014 10:22:58 GMT:  DEBUG: Loading localized strings and metrics
    Fri, 02 May 2014 10:22:58 GMT:  DEBUG: -->  Request 1:   GET to /applications/pages/current/info.json,  headers: Content-Type=text/plain,  body: (omitted)
    Fri, 02 May 2014 10:22:58 GMT:  DEBUG: -->  Request 2:   GET to /applications/numbers/current/info.json,  headers: Content-Type=text/plain,  body: (omitted)
    Fri, 02 May 2014 10:22:58 GMT:  DEBUG: -->  Request 3:   GET to /applications/keynote/current/info.json,  headers: Content-Type=text/plain,  body: (omitted)
    Fri, 02 May 2014 10:22:58 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: BEGIN initialize statechart
    Fri, 02 May 2014 10:22:58 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: BEGIN gotoState: __ROOT_STATE__
    Fri, 02 May 2014 10:22:58 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: starting from current state: ---
    Fri, 02 May 2014 10:22:58 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: current states before: ---
    Fri, 02 May 2014 10:22:58 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: --> entering state: __ROOT_STATE__
    Fri, 02 May 2014 10:22:58 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: --> entering state: loading
    Fri, 02 May 2014 10:22:58 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: current states after: loading
    Fri, 02 May 2014 10:22:58 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: END gotoState: __ROOT_STATE__
    Fri, 02 May 2014 10:22:58 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: BEGIN gotoState: validatingAuth
    Fri, 02 May 2014 10:22:58 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: starting from current state: loading
    Fri, 02 May 2014 10:22:58 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: current states before: loading
    Fri, 02 May 2014 10:22:58 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: pivot state = __ROOT_STATE__
    Fri, 02 May 2014 10:22:58 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: <-- exiting state: loading
    Fri, 02 May 2014 10:22:58 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: --> entering state: validatingAuth
    Fri, 02 May 2014 10:22:58 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: --> entering state: validatingAuth.gettingReply
    Fri, 02 May 2014 10:22:58 GMT:  DEBUG: COS: Sending validate POST request to https://setup.icloud.com/setup/ws/1/validate
    Fri, 02 May 2014 10:22:58 GMT:  DEBUG: -->  Request 4:   POST to https://setup.icloud.com/setup/ws/1/validate?clientBuildNumber=14C.131409&client Id=CA53A6CC-FA79-4150-AF39-248318487608,  headers: Content-Type=text/plain,  body: (omitted)
    Fri, 02 May 2014 10:22:58 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: current states after: validatingAuth.gettingReply
    Fri, 02 May 2014 10:22:58 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: END gotoState: validatingAuth
    Fri, 02 May 2014 10:22:58 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: END initialize statechart
    Fri, 02 May 2014 10:22:58 GMT:  DEBUG: Language check: null -> en-us. We WILL relocalize.
    Fri, 02 May 2014 10:22:58 GMT:  DEBUG: SC.Module: Module 'cloudos_foundation/springboard' has completed loading, invoking callbacks.
    Fri, 02 May 2014 10:22:58 GMT:  DEBUG: <--  Response 1:  200  (417ms),  headers: Accept-Ranges=bytes, Cache-Control=no-cache, no-store, private, Connection=keep-alive, Content-Encoding=gzip, Content-Language=en-us, Content-Length=162, Content-Type=application/json, Date=Fri, 02 May 2014 10:22:58 GMT, Etag="b8-4f7da4953c300", Expires=Sat, 02 May 2015 10:22:58 GMT, Last-Modified=Fri, 25 Apr 2014 09:06:52 GMT, Server=Apache, Strict-Transport-Security=max-age=31536000; includeSubDomains, Vary=Accept-Encoding  body: (omitted)
    Fri, 02 May 2014 10:22:58 GMT:  DEBUG: Setting up appInfo for pages
    Fri, 02 May 2014 10:22:58 GMT:  DEBUG: Springboard: A wait condition became satisfied. Still waiting on 1 conditions. Requirement was: dynamic app pages
    Fri, 02 May 2014 10:22:58 GMT:  DEBUG: <--  Response 2:  200  (432ms),  headers: Accept-Ranges=bytes, Cache-Control=no-cache, no-store, private, Connection=keep-alive, Content-Encoding=gzip, Content-Language=en-us, Content-Length=164, Content-Type=application/json, Date=Fri, 02 May 2014 10:22:58 GMT, Etag="bc-4f7da4953c300", Expires=Sat, 02 May 2015 10:22:58 GMT, Last-Modified=Fri, 25 Apr 2014 09:06:52 GMT, Server=Apache, Strict-Transport-Security=max-age=31536000; includeSubDomains, Vary=Accept-Encoding  body: (omitted)
    Fri, 02 May 2014 10:22:58 GMT:  DEBUG: Setting up appInfo for numbers
    Fri, 02 May 2014 10:22:58 GMT:  DEBUG: Springboard: A wait condition became satisfied. Still waiting on 1 conditions. Requirement was: dynamic app numbers
    Fri, 02 May 2014 10:22:58 GMT:  DEBUG: <--  Response 3:  200  (451ms),  headers: Accept-Ranges=bytes, Cache-Control=no-cache, no-store, private, Connection=keep-alive, Content-Encoding=gzip, Content-Language=en-us, Content-Length=165, Content-Type=application/json, Date=Fri, 02 May 2014 10:22:58 GMT, Etag="bc-4f7da4953c300", Expires=Sat, 02 May 2015 10:22:58 GMT, Last-Modified=Fri, 25 Apr 2014 09:06:52 GMT, Server=Apache, Strict-Transport-Security=max-age=31536000; includeSubDomains, Vary=Accept-Encoding  body: (omitted)
    Fri, 02 May 2014 10:22:58 GMT:  DEBUG: Setting up appInfo for keynote
    Fri, 02 May 2014 10:22:58 GMT:  DEBUG: Springboard: A wait condition became satisfied. Still waiting on 1 conditions. Requirement was: dynamic app keynote
    Fri, 02 May 2014 10:22:59 GMT:  DEBUG: SC.Module: Prefetching module 'cloudkit/error_catcher'.
    Fri, 02 May 2014 10:22:59 GMT:  DEBUG: SC.Module: Loading CSS file in 'cloudkit/error_catcher' -> '/system/cloudos/14C.131409/cloudkit/error_catcher/14C.131409/en-us/stylesheet. css'
    Fri, 02 May 2014 10:22:59 GMT:  DEBUG: SC.Module: Loading JavaScript file in 'cloudkit/error_catcher' -> '/system/cloudos/14C.131409/cloudkit/error_catcher/14C.131409/en-us/javascript- strings.js'
    Fri, 02 May 2014 10:22:59 GMT:  DEBUG: SC.Module: Prefetching module 'cloudos_foundation/language'.
    Fri, 02 May 2014 10:22:59 GMT:  DEBUG: SC.Module: Loading JavaScript file in 'cloudos_foundation/language' -> '/system/cloudos/14C.131409/cloudos_foundation/language/14C.131409/en-us/javasc ript-strings.js'
    Fri, 02 May 2014 10:22:59 GMT:  DEBUG: SC.Module: Prefetching module 'coreweb/date_formatter'.
    Fri, 02 May 2014 10:22:59 GMT:  DEBUG: SC.Module: Loading JavaScript file in 'coreweb/date_formatter' -> '/system/cloudos/14C.131409/coreweb/date_formatter/14C.131409/en-us/javascript- strings.js'
    Fri, 02 May 2014 10:22:59 GMT:  DEBUG: SC.Module: Prefetching module 'cloudos_foundation/alarms'.
    Fri, 02 May 2014 10:22:59 GMT:  DEBUG: SC.Module: Loading CSS file in 'cloudos_foundation/alarms' -> '/system/cloudos/14C.131409/cloudos_foundation/alarms/14C.131409/en-us/styleshe et.css'
    Fri, 02 May 2014 10:22:59 GMT:  DEBUG: SC.Module: Loading JavaScript file in 'cloudos_foundation/alarms' -> '/system/cloudos/14C.131409/cloudos_foundation/alarms/14C.131409/en-us/javascri pt-strings.js'
    Fri, 02 May 2014 10:22:59 GMT:  DEBUG: SC.Module: Module 'cloudkit/error_catcher' finished loading.
    Fri, 02 May 2014 10:22:59 GMT:  DEBUG: SC.Module: Module 'cloudkit/error_catcher' was prefetched, not evaluating until needed.
    Fri, 02 May 2014 10:22:59 GMT:  DEBUG: SC.Module: Module 'cloudos_foundation/language' finished loading.
    Fri, 02 May 2014 10:22:59 GMT:  DEBUG: SC.Module: Module 'cloudos_foundation/language' was prefetched, not evaluating until needed.
    Fri, 02 May 2014 10:22:59 GMT:  DEBUG: SC.Module: Module 'coreweb/date_formatter' finished loading.
    Fri, 02 May 2014 10:22:59 GMT:  DEBUG: SC.Module: Module 'coreweb/date_formatter' was prefetched, not evaluating until needed.
    Fri, 02 May 2014 10:22:59 GMT:  DEBUG: SC.Module: Module 'cloudos_foundation/alarms' finished loading.
    Fri, 02 May 2014 10:22:59 GMT:  DEBUG: SC.Module: Module 'cloudos_foundation/alarms' was prefetched, not evaluating until needed.
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: <--  Response 4:  0  (timed out),  headers:   body: (empty)
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: COS: invoking validateDidFail
    Fri, 02 May 2014 10:23:28 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: BEGIN sendEvent: 'authDidNotConnect'
    Fri, 02 May 2014 10:23:28 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: validatingAuth.gettingReply: will handle event 'authDidNotConnect'
    Fri, 02 May 2014 10:23:28 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: BEGIN gotoState: active.authUI
    Fri, 02 May 2014 10:23:28 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: starting from current state: validatingAuth.gettingReply
    Fri, 02 May 2014 10:23:28 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: current states before: validatingAuth.gettingReply
    Fri, 02 May 2014 10:23:28 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: pivot state = __ROOT_STATE__
    Fri, 02 May 2014 10:23:28 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: <-- exiting state: validatingAuth.gettingReply
    Fri, 02 May 2014 10:23:28 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: <-- exiting state: validatingAuth
    Fri, 02 May 2014 10:23:28 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: --> entering state: active
    Fri, 02 May 2014 10:23:28 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: --> entering state: active.authUI
    Fri, 02 May 2014 10:23:28 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: --> entering state: active.authUI.downloadingAuthModule
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: SC.Module: Attempting to load 'cloudkit/auth_ui'
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: SC.Module: Module 'cloudkit/auth_ui' is not loaded, loading now.
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: SC.Module: 'cloudkit/auth_ui' depends on 'cloudkit/photo', loading dependency…
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: SC.Module: Attempting to load 'cloudkit/photo'
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: SC.Module: Module 'cloudkit/photo' is not loaded, loading now.
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: SC.Module: Loading JavaScript file in 'cloudkit/photo' -> '/system/cloudos/14C.131409/cloudkit/photo/14C.131409/en-us/javascript.js'
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: SC.Module: Loading CSS file in 'cloudkit/auth_ui' -> '/system/cloudos/14C.131409/cloudkit/auth_ui/14C.131409/en-us/[email protected] '
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: SC.Module: Loading JavaScript file in 'cloudkit/auth_ui' -> '/system/cloudos/14C.131409/cloudkit/auth_ui/14C.131409/en-us/javascript-string s.js'
    Fri, 02 May 2014 10:23:28 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: current states after: active.authUI.downloadingAuthModule
    Fri, 02 May 2014 10:23:28 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: END gotoState: active.authUI
    Fri, 02 May 2014 10:23:28 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: END sendEvent: 'authDidNotConnect'
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: SC.Module: Module 'cloudkit/photo' finished loading.
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: SC.Module: Evaluating and invoking callbacks for 'cloudkit/photo'.
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: SC.Module: Module 'cloudkit/photo' has completed loading, invoking callbacks.
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: SC.Module: Module 'cloudkit/auth_ui' finished loading.
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: SC.Module: Evaluating and invoking callbacks for 'cloudkit/auth_ui'.
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: SC.Module: Module 'cloudkit/auth_ui' has completed loading, invoking callbacks.
    Fri, 02 May 2014 10:23:28 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: BEGIN gotoState: active.authUI.fieldsEditable
    Fri, 02 May 2014 10:23:28 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: starting from current state: active.authUI.downloadingAuthModule
    Fri, 02 May 2014 10:23:28 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: current states before: active.authUI.downloadingAuthModule
    Fri, 02 May 2014 10:23:28 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: pivot state = active.authUI
    Fri, 02 May 2014 10:23:28 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: <-- exiting state: active.authUI.downloadingAuthModule
    Fri, 02 May 2014 10:23:28 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: --> entering state: active.authUI.fieldsEditable
    Fri, 02 May 2014 10:23:28 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: current states after: active.authUI.fieldsEditable
    Fri, 02 May 2014 10:23:28 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: END gotoState: active.authUI.fieldsEditable
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: Preloading background images, but every image was already loaded. Running callback immediately.
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: At long last, SpringboardView is now allowed to generate button instances!
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: Springboard: A wait condition became satisfied. Still waiting on 9 conditions. Requirement was: initial set of buttons
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: Springboard: A wait condition became satisfied. Still waiting on 8 conditions. Requirement was: Button for mail
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: Springboard: A wait condition became satisfied. Still waiting on 7 conditions. Requirement was: Button for contacts
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: Springboard: A wait condition became satisfied. Still waiting on 6 conditions. Requirement was: Button for notes
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: Springboard: A wait condition became satisfied. Still waiting on 5 conditions. Requirement was: Button for reminders
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: Springboard: A wait condition became satisfied. Still waiting on 4 conditions. Requirement was: Button for find
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: Springboard: A wait condition became satisfied. Still waiting on 3 conditions. Requirement was: Button for pages
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: Springboard: A wait condition became satisfied. Still waiting on 2 conditions. Requirement was: Button for numbers
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: Springboard: A wait condition became satisfied. Still waiting on 1 conditions. Requirement was: Button for keynote
    Fri, 02 May 2014 10:23:28 GMT:  DEBUG: Springboard: Springboard View has become ready to show! All of its wait conditions have been satisfied.
    Fri, 02 May 2014 10:23:36 GMT:  DEBUG: Sending stats to feedbackws
    Fri, 02 May 2014 10:23:36 GMT:  DEBUG: -->  Request 5:   POST to https://feedbackws.icloud.com/reportStats,  headers: Content-Type=text/plain,  body: (omitted)
    Fri, 02 May 2014 10:23:51 GMT:  DEBUG: Sending stats to feedbackws
    Fri, 02 May 2014 10:23:51 GMT:  DEBUG: -->  Request 6:   POST to https://feedbackws.icloud.com/reportStats,  headers: Content-Type=text/plain,  body: (omitted)
    Fri, 02 May 2014 10:24:54 GMT:  DEBUG: <--  Response 5:  200  (78147ms),  headers: Cache-Control=no-cache, no-store, private, Content-Type=application/json; charset=UTF-8  body: (omitted)
    Fri, 02 May 2014 10:24:54 GMT:  INFO:  Successfully sent stats to feedbackws
    Fri, 02 May 2014 10:24:58 GMT:  DEBUG: <--  Response 6:  200  (66699ms),  headers: Cache-Control=no-cache, no-store, private, Content-Type=application/json; charset=UTF-8  body: (omitted)
    Fri, 02 May 2014 10:24:58 GMT:  INFO:  Successfully sent stats to feedbackws
    Fri, 02 May 2014 10:29:18 GMT:  DEBUG: CloudOS window received focus event
    Fri, 02 May 2014 10:29:40 GMT:  DEBUG: CloudOS window received focus event
    Fri, 02 May 2014 10:30:34 GMT:  DEBUG: CloudOS window received focus event
    Fri, 02 May 2014 10:30:41 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: BEGIN sendEvent: 'userDidSubmit'
    Fri, 02 May 2014 10:30:41 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: active.authUI.fieldsEditable: will handle event 'userDidSubmit'
    Fri, 02 May 2014 10:30:41 GMT:  DEBUG: CloudKit: Sending login POST request to https://setup.icloud.com/setup/ws/1/login
    Fri, 02 May 2014 10:30:41 GMT:  DEBUG: -->  Request 7:   POST to https://setup.icloud.com/setup/ws/1/login?clientBuildNumber=14C.131409&clientId= CA53A6CC-FA79-4150-AF39-248318487608,  headers: Content-Type=text/plain,  body: (omitted)
    Fri, 02 May 2014 10:30:41 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: BEGIN gotoState: active.authUI.attemptIsSubmitted
    Fri, 02 May 2014 10:30:41 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: starting from current state: active.authUI.fieldsEditable
    Fri, 02 May 2014 10:30:41 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: current states before: active.authUI.fieldsEditable
    Fri, 02 May 2014 10:30:41 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: pivot state = active.authUI
    Fri, 02 May 2014 10:30:41 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: <-- exiting state: active.authUI.fieldsEditable
    Fri, 02 May 2014 10:30:41 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: --> entering state: active.authUI.attemptIsSubmitted
    Fri, 02 May 2014 10:30:41 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: current states after: active.authUI.attemptIsSubmitted
    Fri, 02 May 2014 10:30:41 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: END gotoState: active.authUI.attemptIsSubmitted
    Fri, 02 May 2014 10:30:41 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: END sendEvent: 'userDidSubmit'
    Fri, 02 May 2014 10:31:00 GMT:  DEBUG: CloudOS window received focus event
    Fri, 02 May 2014 10:31:11 GMT:  DEBUG: <--  Response 7:  0  (timed out),  headers:   body: (empty)
    Fri, 02 May 2014 10:31:11 GMT:  DEBUG: COS: invoking loginDidFail
    Fri, 02 May 2014 10:31:11 GMT:  WARN:  Auth: No auth bag or recognized status code
    Fri, 02 May 2014 10:31:11 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: BEGIN sendEvent: 'authDidNotConnect'
    Fri, 02 May 2014 10:31:11 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: active.authUI.attemptIsSubmitted: will handle event 'authDidNotConnect'
    Fri, 02 May 2014 10:31:11 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: END sendEvent: 'authDidNotConnect'
    Fri, 02 May 2014 10:31:19 GMT:  DEBUG: Sending stats to feedbackws
    Fri, 02 May 2014 10:31:19 GMT:  DEBUG: -->  Request 8:   POST to https://feedbackws.icloud.com/reportStats,  headers: Content-Type=text/plain,  body: (omitted)
    Fri, 02 May 2014 10:31:24 GMT:  DEBUG: CloudOS window received focus event
    Fri, 02 May 2014 10:32:05 GMT:  DEBUG: <--  Response 8:  200  (46127ms),  headers: Cache-Control=no-cache, no-store, private, Content-Type=application/json; charset=UTF-8  body: (omitted)
    Fri, 02 May 2014 10:32:05 GMT:  INFO:  Successfully sent stats to feedbackws
    Fri, 02 May 2014 10:34:54 GMT:  DEBUG: CloudOS window received focus event
    Fri, 02 May 2014 10:37:33 GMT:  DEBUG: CloudOS window received focus event
    Fri, 02 May 2014 10:37:35 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: BEGIN gotoState: active.authUI.fieldsEditable
    Fri, 02 May 2014 10:37:35 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: starting from current state: active.authUI.attemptIsSubmitted
    Fri, 02 May 2014 10:37:35 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: current states before: active.authUI.attemptIsSubmitted
    Fri, 02 May 2014 10:37:35 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: pivot state = active.authUI
    Fri, 02 May 2014 10:37:35 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: <-- exiting state: active.authUI.attemptIsSubmitted
    Fri, 02 May 2014 10:37:35 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: --> entering state: active.authUI.fieldsEditable
    Fri, 02 May 2014 10:37:35 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: current states after: active.authUI.fieldsEditable
    Fri, 02 May 2014 10:37:35 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: END gotoState: active.authUI.fieldsEditable
    Fri, 02 May 2014 10:37:35 GMT:  DEBUG: CloudKit: ErrorCatcher dialog invoked.
    Fri, 02 May 2014 10:37:36 GMT:  DEBUG: SC.Module: Attempting to load 'cloudkit/error_catcher'
    Fri, 02 May 2014 10:37:36 GMT:  DEBUG: SC.Module: Module 'cloudkit/error_catcher' already loaded.
    Fri, 02 May 2014 10:37:36 GMT:  DEBUG: SC.Module: Evaluating JavaScript for module 'cloudkit/error_catcher'.
    Fri, 02 May 2014 10:37:36 GMT:  DEBUG: SC.Module: Module 'cloudkit/error_catcher' has completed loading, invoking callbacks.
    Fri, 02 May 2014 10:37:43 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: BEGIN sendEvent: 'userDidSubmit'
    Fri, 02 May 2014 10:37:43 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: active.authUI.fieldsEditable: will handle event 'userDidSubmit'
    Fri, 02 May 2014 10:37:43 GMT:  DEBUG: CloudKit: Sending login POST request to https://setup.icloud.com/setup/ws/1/login
    Fri, 02 May 2014 10:37:43 GMT:  DEBUG: -->  Request 9:   POST to https://setup.icloud.com/setup/ws/1/login?clientBuildNumber=14C.131409&clientId= CA53A6CC-FA79-4150-AF39-248318487608,  headers: Content-Type=text/plain,  body: (omitted)
    Fri, 02 May 2014 10:37:43 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: BEGIN gotoState: active.authUI.attemptIsSubmitted
    Fri, 02 May 2014 10:37:43 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: starting from current state: active.authUI.fieldsEditable
    Fri, 02 May 2014 10:37:43 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: current states before: active.authUI.fieldsEditable
    Fri, 02 May 2014 10:37:43 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: pivot state = active.authUI
    Fri, 02 May 2014 10:37:43 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: <-- exiting state: active.authUI.fieldsEditable
    Fri, 02 May 2014 10:37:43 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: --> entering state: active.authUI.attemptIsSubmitted
    Fri, 02 May 2014 10:37:43 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: current states after: active.authUI.attemptIsSubmitted
    Fri, 02 May 2014 10:37:43 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: END gotoState: active.authUI.attemptIsSubmitted
    Fri, 02 May 2014 10:37:43 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: END sendEvent: 'userDidSubmit'
    Fri, 02 May 2014 10:37:43 GMT:  DEBUG: Sending stats to feedbackws
    Fri, 02 May 2014 10:37:43 GMT:  DEBUG: -->  Request 10:   POST to https://feedbackws.icloud.com/reportStats,  headers: Content-Type=text/plain,  body: (omitted)
    Fri, 02 May 2014 10:37:55 GMT:  DEBUG: CloudOS window received focus event
    Fri, 02 May 2014 10:37:59 GMT:  DEBUG: autoUpdate: Running latest build, 14C.131409
    Fri, 02 May 2014 10:38:03 GMT:  DEBUG: CloudOS window received focus event
    Fri, 02 May 2014 10:38:14 GMT:  DEBUG: <--  Response 9:  0  (timed out),  headers:   body: (empty)
    Fri, 02 May 2014 10:38:14 GMT:  DEBUG: COS: invoking loginDidFail
    Fri, 02 May 2014 10:38:14 GMT:  WARN:  Auth: No auth bag or recognized status code
    Fri, 02 May 2014 10:38:14 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: BEGIN sendEvent: 'authDidNotConnect'
    Fri, 02 May 2014 10:38:14 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: active.authUI.attemptIsSubmitted: will handle event 'authDidNotConnect'
    Fri, 02 May 2014 10:38:14 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: END sendEvent: 'authDidNotConnect'
    Fri, 02 May 2014 10:38:18 GMT:  DEBUG: <--  Response 10:  200  (34469ms),  headers: Cache-Control=no-cache, no-store, private, Content-Type=application/json; charset=UTF-8  body: (omitted)
    Fri, 02 May 2014 10:38:18 GMT:  INFO:  Successfully sent stats to feedbackws
    Fri, 02 May 2014 10:38:22 GMT:  DEBUG: Sending stats to feedbackws
    Fri, 02 May 2014 10:38:22 GMT:  DEBUG: -->  Request 11:   POST to https://feedbackws.icloud.com/reportStats,  headers: Content-Type=text/plain,  body: (omitted)
    Fri, 02 May 2014 10:38:25 GMT:  DEBUG: <--  Response 11:  200  (3398ms),  headers: Cache-Control=no-cache, no-store, private, Content-Type=application/json; charset=UTF-8  body: (omitted)
    Fri, 02 May 2014 10:38:25 GMT:  INFO:  Successfully sent stats to feedbackws
    Fri, 02 May 2014 10:38:37 GMT:  DEBUG: CloudOS window received focus event
    Fri, 02 May 2014 10:39:47 GMT:  DEBUG: CloudOS window received focus event
    Fri, 02 May 2014 10:42:58 GMT:  DEBUG: CloudOS window received focus event
    Fri, 02 May 2014 10:43:45 GMT:  DEBUG: CloudOS window received focus event
    Fri, 02 May 2014 10:44:12 GMT:  DEBUG: CloudOS window received focus event
    Fri, 02 May 2014 10:52:58 GMT:  DEBUG: autoUpdate: Running latest build, 14C.131409
    Fri, 02 May 2014 10:59:09 GMT:  DEBUG: CloudOS window received focus event
    Fri, 02 May 2014 11:03:38 GMT:  DEBUG: CloudOS window received focus event
    Fri, 02 May 2014 11:03:39 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: BEGIN gotoState: active.authUI.fieldsEditable
    Fri, 02 May 2014 11:03:39 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: starting from current state: active.authUI.attemptIsSubmitted
    Fri, 02 May 2014 11:03:39 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: current states before: active.authUI.attemptIsSubmitted
    Fri, 02 May 2014 11:03:39 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: pivot state = active.authUI
    Fri, 02 May 2014 11:03:39 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: <-- exiting state: active.authUI.attemptIsSubmitted
    Fri, 02 May 2014 11:03:39 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: --> entering state: active.authUI.fieldsEditable
    Fri, 02 May 2014 11:03:39 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: current states after: active.authUI.fieldsEditable
    Fri, 02 May 2014 11:03:39 GMT:  INFO:  SC.Statechart<cloudos-statechart, sc915>: END gotoState: active.authUI.fieldsEditable
    Fri, 02 May 2014 11:03:39 GMT:  DEBUG: CloudKit: ErrorCatcher dialog invoked.
    Fri, 02 May 2014 11:03:39 GMT:  DEBUG: SC.Module: Attempting to load 'cloudkit/error_catcher'
    Fri, 02 May 2014 11:03:39 GMT:  DEBUG: SC.Module: Module 'cloudkit/error_catcher' already loaded.

    I click on the iTunes store button and it comes up with the loading bar at the top of the screen where the song time marker would be, but nothing ever happens. It just loads and loads and loads, I don't even get an error message...
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • Please help. ipod will not show up and i have tried everything

    i got my ipod two days ago. ipod nano 4gb.
    when i plug it into my computer it comes up with 'do not disconnect' and occasionally a small circle icon in the top left-hand corner. the computer recognises that there is a 'mass storage device' connected, but the ipod doesnt appear in itunes or my computer.
    when i unplug the ipod it displays the apple symbol and then goes to the language selection menu. after i disconnect it i also get a message saying that the file could not be saved to the drive because it was interrupeted or something like that and i should try storing it somewhere else.
    so thinking that maybe this was it being updated, i let it plugged in all day while i was at school because surely that would be plenty of time for anything to load onto it. But when i got home today it did the same thing.
    I have two computers and the same thing happens on both.
    I have tried it using my sisters usb cable, still nothing works.
    Any ideas? Oh on one of my computers it doesnt let me uninstall itunes as well.
    And when I try to open the updater to restore the ipod it freezes the application and i have to do controlaltdelete and close it.
    I am SO angry about it right now.
    Since i only bought it a few days ago do you think i could get a repleacement from the store where i got it or will i have to go all the way through apple.
    I havnt been able to use it once and it is making me very frustrated, please help me if you have any ideas.
    x
      Windows XP Pro  

    Sally,
    OK since you using 2 computers, we will first focus on the one that will not uninstall iTunes, afterwareds we will get the ipod working on one PC first.
    On the PC that will not uninstall iTUnes, goto control panel>add and remove and try if you can to uninstall iTUnes AND quicktime. Then go here and roll down to "Clean up iTunes installer files on the computer" http://docs.info.apple.com/article.html?artnum=93976
    Once done disable any antivirus or security programs, then goto apple.com to download and install the latest iTUnes.
    Also on BOTH pcs make sure you have "ipod updater 06-28-2006" you can download and install it here http://www.apple.com/ipod/download/
    Once iTunes is properly installed on this PC, you need to only connect your nano to the main PC you use for now so we can get it working, then we'll focus on the other PC if needed

  • HT4972 I have ipad 1 . And i want to update it from ios 4.3.5 to ios 7 but i can't why ?? Please help me becouse i can't download apps from app store !!!!!   I would suggust:  1 to create a big camera for i pads and ipods and iphones so we can put it in a

    I have ipad 1 . And i want to update it from ios 4.3.5 to ios 7 but i can't why ?? Please help me becouse i can't download apps from app store !!!!!
    I would suggust:
    1 to create a big camera for i pads and ipods and iphones so we can put it in another ipad or ipod or iphone and it has a zoom lens
    2 when i downloaded photos and music from a computer to my ipad , i cant delete them now plese do the itunes like samsung becuz samsung have an easier way to download thing from computer
    I hope to help me with my poblome and fix it please !!??
    And i hope to take my suggusts and make me happy becouse apple it is cooler from samsung
    Apple the best
    H.M

    The iPad 1 can't run the newer operating systems. It'd be like trying to play a bluray disc in your 6 year old dvd player....it simply lacks the hardware to make the software run.
    No suggestion about the camera, but given that Apple's attitude seems to be to focus more on the more mobile devices for photography (the iPhone and Touch cameras got features, the iPad and mini didn't), that is highly unlikely. You can tell Apple what you want, but you'd probably be money ahead to get a digital camera.
    as to the photos, anything put on via iTunes has to come off via iTunes.Your main alternative would be to look for photo apps that offer file exchange that may give you more functionality.

  • Please help me in creating a form using Swing.

    (I m sorry if I've posted similar post in some other thread.I am new to this forum..:))
    There are several problems which I am facing while coding a form.
    1. In the form I have one JComboBox
    of Country and other of State. Now I want it in such a way that when
    I select a country from the Country JComboBox ,the corresponding states
    automatically appears in the State JComboBox.
    2. I need to add picture frame in the 6th tab so that the picture shows up when clicked browse and open.
    3.I need to add tables in 1st and 5th tab which shows up the details through database when added through several textboxes and combo boxes.
    so please help me!
    Here's my code
    ==========================================================
    import javax.swing.JFrame;
    import javax.swing.JTabbedPane;
    import javax.swing.JPanel;
    import javax.swing.JButton;
    import javax.swing.JLabel;
    import javax.swing.JCheckBox;
    import javax.swing.border.*;
    import javax.swing.table.*;
    import javax.swing.Box;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Design extends JFrame
    public Design()
    super("Tenant Form");
    setLayout(new BorderLayout());
    JTabbedPane tabbedPane=new JTabbedPane(); //creating tabbed buttons
    //<--------coding for first tab--------->
    JPanel panel1=new JPanel();
    tabbedPane.addTab("Detail of Landlord",null,panel1,"first tab"); //here panel1 is created for tab1
    GridBagConstraints gbc=new GridBagConstraints();
    gbc.insets=new Insets(2,2,2,2);
    gbc.anchor=GridBagConstraints.WEST;
    JPanel jp11 = new JPanel(); //1st panel in 1st tab for top labels and buttons
    jp11.setLayout(new GridBagLayout());
    JLabel l241 = new JLabel("Name Of LandLord");
    jp11.add(l241,gbc);
    JComboBox jc01=new JComboBox();
    jc01.addItem("Select");
    jc01.addItem("Mr.");
    jc01.addItem("Mrs.");
    gbc.gridx=1;
    jp11.add(jc01,gbc);
    JTextField f01=new JTextField(10);
    gbc.gridx=2;
    jp11.add(f01,gbc);
    JLabel l251 = new JLabel("Sex");
    gbc.gridx=5;
    gbc.insets=new Insets(2,20,2,2);
    jp11.add(l251,gbc);
    JComboBox jc11=new JComboBox();
    jc11.addItem("Select");
    jc11.addItem("Male");
    jc11.addItem("Female");
    gbc.gridx=6;
    gbc.insets=new Insets(2,2,2,2);
    jp11.add(jc11,gbc);
    JLabel l261 = new JLabel("Age(Yrs)");
    gbc.gridx=8;
    gbc.insets=new Insets(2,20,2,2);
    jp11.add(l261,gbc);
    JTextField f11=new JTextField(3);
    gbc.gridx=9;
    gbc.insets=new Insets(2,2,2,2);
    jp11.add(f11,gbc);
    JLabel l271 = new JLabel("Occupation");
    gbc.gridx= 11;
    gbc.insets=new Insets(2,20,2,2);
    jp11.add(l271,gbc);
    JComboBox jc21=new JComboBox();
    jc21.addItem("Select");
    jc21.addItem("Engineer");
    jc21.addItem("Business");
    gbc.gridx=12;
    gbc.insets=new Insets(2,2,2,2);
    jp11.add(jc21,gbc);
    JButton ab1=new JButton("ADD");
    gbc.gridx=14;
    gbc.insets=new Insets(2,20,2,2);
    jp11.add(ab1,gbc);
    panel1.add(jp11);
    //<--coding for adding table with scroll pane #yet to be coded#-->
    JTable jtab1=new JTable();
    //start of p21 panel. 1st of two titledborder panels in tab 1
    JPanel jp21=new JPanel();
    jp21.setBorder(new TitledBorder("Address Of Landlord Property"));
    jp21.setLayout(new GridBagLayout());
    JLabel l11=new JLabel("Property/House/Building Address");
    gbc.gridx=0;
    gbc.gridy=0;
    jp21.add(l11,gbc);
    JTextArea ta11=new JTextArea(3,15);
    ta11.setLineWrap(true);
    int v=ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
    int h=ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER;
    JScrollPane scroll11=new JScrollPane(ta11,v,h);
    gbc.gridx=1;
    jp21.add(scroll11);
    jp21.add(ta11,gbc);
    JLabel l21=new JLabel("Land Mark");
    gbc.gridx=0;
    gbc.gridy=1;
    gbc.ipady=0;
    gbc.gridheight=1;
    jp21.add(l21,gbc);
    JTextField tf21=new JTextField(15);
    gbc.gridx=1;
    gbc.gridy=1;
    jp21.add(tf21,gbc);
    JLabel l31=new JLabel("Country");
    gbc.gridx=0;
    gbc.gridy=2;
    jp21.add(l31,gbc);
    JComboBox c11=new JComboBox();
    c11.addItem("India");
    c11.addItem("US");
    c11.addItem("Australia");
    gbc.gridx=1;
    gbc.gridy=2;
    jp21.add(c11,gbc);
    JLabel l41=new JLabel("State");
    gbc.gridx=0;
    gbc.gridy=3;
    jp21.add(l41,gbc);
    JComboBox c21=new JComboBox();
    c21.addItem("Rajasthan");
    c21.addItem("Delhi");
    c21.addItem("Maharastra");
    gbc.gridx=1;
    gbc.gridy=3;
    jp21.add(c21,gbc);
    JLabel l51=new JLabel("District");
    gbc.gridx=0;
    gbc.gridy=4;
    jp21.add(l51,gbc);
    JComboBox c31=new JComboBox();
    c31.addItem("jaipur");
    c31.addItem("ajmer");
    c31.addItem("alwar");
    gbc.gridx=1;
    gbc.gridy=4;
    jp21.add(c31,gbc);
    JLabel l61=new JLabel("City/Town");
    gbc.gridx=0;
    gbc.gridy=5;
    jp21.add(l61,gbc);
    JTextField tf31=new JTextField(15);
    gbc.gridx=1;
    gbc.gridy=5;
    jp21.add(tf31,gbc);
    JLabel l71=new JLabel("Police District");
    gbc.gridx=0;
    gbc.gridy=6;
    jp21.add(l71,gbc);
    JComboBox c41=new JComboBox();
    c41.addItem("Jaipur");
    c41.addItem("Alwar");
    c41.addItem("Ajmer");
    gbc.gridx=1;
    gbc.gridy=6;
    jp21.add(c41,gbc);
    JLabel l81=new JLabel("Police Circle");
    gbc.gridx=0;
    gbc.gridy=7;
    jp21.add(l81,gbc);
    JComboBox c51=new JComboBox();
    c51.addItem("India");
    c51.addItem("US");
    c51.addItem("Australia");
    gbc.gridx=1;
    gbc.gridy=7;
    jp21.add(c51,gbc);
    JLabel l91=new JLabel("Police station");
    gbc.gridx=0;
    gbc.gridy=8;
    jp21.add(l91,gbc);
    JComboBox c61=new JComboBox();
    c61.addItem("Bani Park");
    c61.addItem("Raja Park");
    c61.addItem("Malviya Nagar");
    gbc.gridx=1;
    gbc.gridy=8;
    jp21.add(c61,gbc);
    JLabel l101=new JLabel("Pin No.");
    gbc.gridx=0;
    gbc.gridy=9;
    jp21.add(l101,gbc);
    JTextField tf41=new JTextField(15);
    gbc.gridx=1;
    gbc.gridy=9;
    jp21.add(tf41,gbc);
    JLabel l111=new JLabel("Phone No.(R)");
    gbc.gridx=0;
    gbc.gridy=10;
    jp21.add(l111,gbc);
    JTextField tf51=new JTextField(15);
    gbc.gridx=1;
    gbc.gridy=10;
    jp21.add(tf51,gbc);
    //start of p31.2nd of two titledborder panels in tab 1
    JPanel jp31=new JPanel();
    jp31.setBorder(new TitledBorder("Address Of Landlord Office"));
    jp31.setLayout(new GridBagLayout());
    JLabel l121=new JLabel("Office Address");
    gbc.gridx=0;
    gbc.gridy=0;
    jp31.add(l121,gbc);
    JTextArea ta61=new JTextArea(3,15);
    ta61.setLineWrap(true);
    JScrollPane scroll2=new JScrollPane(ta61);
    gbc.gridx=1;
    gbc.gridy=0;
    jp31.add(ta61,gbc);
    JLabel l131=new JLabel("Country");
    gbc.gridx=0;
    gbc.gridy=1;
    gbc.gridheight=1;
    jp31.add(l131,gbc);
    JComboBox c12=new JComboBox();
    c12.addItem("India");
    c12.addItem("US");
    c12.addItem("Australia");
    gbc.gridx=1;
    gbc.gridy=1;
    jp31.add(c12,gbc);
    JLabel l141=new JLabel("State");
    gbc.gridx=0;
    gbc.gridy=2;
    jp31.add(l141,gbc);
    JComboBox c22=new JComboBox();
    c22.addItem("Rajasthan");
    c22.addItem("Delhi");
    c22.addItem("Maharastra");
    gbc.gridx=1;
    gbc.gridy=2;
    jp31.add(c22,gbc);
    JLabel l151=new JLabel("District");
    gbc.gridx=0;
    gbc.gridy=3;
    jp31.add(l151,gbc);
    JComboBox c32=new JComboBox();
    c32.addItem("jaipur");
    c32.addItem("ajmer");
    c32.addItem("alwar");
    gbc.gridx=1;
    gbc.gridy=3;
    jp31.add(c32,gbc);
    JLabel l161=new JLabel("City/Town");
    gbc.gridx=0;
    gbc.gridy=4;
    jp31.add(l161,gbc);
    JTextField tf71=new JTextField(15);
    gbc.gridx=1;
    gbc.gridy=4;
    jp31.add(tf71,gbc);
    JLabel l171=new JLabel("Police District");
    gbc.gridx=0;
    gbc.gridy=5;
    jp31.add(l171,gbc);
    JComboBox c42=new JComboBox();
    c42.addItem("Jaipur");
    c42.addItem("Alwar");
    c42.addItem("Ajmer");
    gbc.gridx=1;
    gbc.gridy=5;
    jp31.add(c42,gbc);
    JLabel l181=new JLabel("Police Circle");
    gbc.gridx=0;
    gbc.gridy=6;
    jp31.add(l181,gbc);
    JComboBox c52=new JComboBox();
    c52.addItem("India");
    c52.addItem("US");
    c52.addItem("Australia");
    gbc.gridx=1;
    gbc.gridy=6;
    jp31.add(c52,gbc);
    JLabel l191=new JLabel("Police station");
    gbc.gridx=0;
    gbc.gridy=7;
    jp31.add(l191,gbc);
    JComboBox c62=new JComboBox();
    c62.addItem("Bani Park");
    c62.addItem("Raja Park");
    c62.addItem("Malviya Nagar");
    gbc.gridx=1;
    gbc.gridy=7;
    jp31.add(c62,gbc);
    JLabel l201=new JLabel("Pin No.");
    gbc.gridx=0;
    gbc.gridy=8;
    jp31.add(l201,gbc);
    JTextField tf81=new JTextField(15);
    gbc.gridx=1;
    gbc.gridy=8;
    jp31.add(tf81,gbc);
    JLabel l211=new JLabel("Phone No.(O)");
    gbc.gridx=0;
    gbc.gridy=9;
    jp31.add(l211,gbc);
    JTextField tf91=new JTextField(15);
    gbc.gridx=1;
    gbc.gridy=9;
    jp31.add(tf91,gbc);
    JLabel l221=new JLabel("Phone No.(M)");
    gbc.gridx=0;
    gbc.gridy=10;
    gbc.gridheight=1;
    jp31.add(l221,gbc);
    JTextField tf101=new JTextField(15);
    gbc.gridx=1;
    gbc.gridy=10;
    jp31.add(tf101,gbc);
    JLabel l231=new JLabel("E-mail");
    gbc.gridx=0;
    gbc.gridy=11;
    gbc.gridheight=1;
    jp31.add(l231,gbc);
    JTextField tf111=new JTextField(15);
    gbc.gridx=1;
    gbc.gridy=11;
    jp31.add(tf111,gbc);
    JPanel jp41=new JPanel(); //adding above two panels p21 and p31 to p41 panel.
    jp41.setLayout(new BoxLayout(jp41,BoxLayout.X_AXIS));
    jp41.add(jp21);
    jp41.add(Box.createHorizontalStrut(50));
    jp41.add(jp31);
    panel1.add(jp41); //adding p41 panel to panel1
    //<--------coding for second tab--------->
    JPanel panel2 = new JPanel();
    tabbedPane.addTab("Id of Landlord",null,panel2,"second tab");
    panel2.setLayout(new FlowLayout());
    //adding radiobutton above TitledBorder panel
    JPanel jp02=new JPanel();
    JLabel l12=new JLabel("Identity Known");
    JRadioButton jrb12=new JRadioButton("Yes");
    JRadioButton jrb22=new JRadioButton("No");
    ButtonGroup bg12=new ButtonGroup();
    bg12.add(jrb12);
    bg12.add(jrb22);
    jp02.add(l12);
    jp02.add(jrb12);
    jp02.add(jrb22);
    //adding TitledBorder panel
    JPanel jp12=new JPanel();
    jp12.setBorder(new TitledBorder("Identity Detail"));
    jp12.setLayout(new GridBagLayout());
    gbc.insets=new Insets(5,5,5,5);
    JLabel l22=new JLabel("Identity Card");
    gbc.gridx=0;
    gbc.gridy=0;
    jp12.add(l22,gbc);
    JTextField jtf12=new JTextField(10);
    gbc.gridx=1;
    jp12.add(jtf12,gbc);
    JLabel l32=new JLabel("Date of Issue");
    gbc.gridx=0;
    gbc.gridy=1;
    jp12.add(l32,gbc);
    JTextField jtf22=new JTextField(10);
    gbc.insets=new Insets(5,5,5,25);
    gbc.gridx=1;
    jp12.add(jtf22,gbc);
    JLabel l42=new JLabel("Identity Number");
    gbc.insets=new Insets(5,5,5,5);
    gbc.gridx=2;
    jp12.add(l42,gbc);
    JTextField jtf32=new JTextField(10);
    gbc.gridx=3;
    jp12.add(jtf32,gbc);
    JLabel l52=new JLabel("Name Of Issuer");
    gbc.gridx=0;
    gbc.gridy=2;
    jp12.add(l52,gbc);
    JTextField jtf42=new JTextField(10);
    gbc.insets=new Insets(5,5,5,25);
    gbc.gridx=1;
    jp12.add(jtf42,gbc);
    JLabel l62= new JLabel("Place Of Issuer");
    gbc.insets=new Insets(5,5,5,5);
    gbc.gridx=2;
    jp12.add(l62,gbc);
    JTextField jtf52=new JTextField(10);
    gbc.gridx=3;
    jp12.add(jtf52,gbc);
    gbc.gridx=0;
    gbc.gridy=2;
    Box b12 =Box.createVerticalBox(); //adding both panels to vertica box and adding it to panel2
    b12.add(jp02);
    b12.add(jp12);
    panel2.add(b12);
    //<--------coding for third tab--------->
    JPanel panel3 = new JPanel();
    tabbedPane.addTab("Detail of Tenant",null,panel3,"third tab");
    //adding panel for top data
    JPanel jp13=new JPanel(); //jp13 panel for details above 3 TitledBorder panels
    jp13.setLayout(new GridBagLayout());
    JLabel l13=new JLabel("Name");
    gbc.insets=new Insets(2,2,2,2);
    gbc.gridx=0;
    gbc.gridy=0;
    jp13.add(l13,gbc);
    JComboBox c13=new JComboBox();
    c13.addItem("Select");
    c13.addItem("Mr.");
    c13.addItem("Mrs.");
    gbc.gridx=1;
    jp13.add(c13,gbc);
    JTextField jtf13=new JTextField(16);
    gbc.gridx=2;
    gbc.gridwidth=2;
    jp13.add(jtf13,gbc);
    JLabel l23=new JLabel("Sex");
    gbc.insets=new Insets(2,20,2,2);
    gbc.gridx=4;
    gbc.gridwidth=1;
    jp13.add(l23,gbc);
    JComboBox c23=new JComboBox();
    c23.addItem("Select");
    c23.addItem("Male");
    c23.addItem("Female");
    gbc.insets=new Insets(2,2,2,2);
    gbc.gridx=5;
    jp13.add(c23,gbc);
    JLabel l33=new JLabel("Father/Mother/Husband's Name");
    gbc.gridy=1;
    gbc.gridx=0;
    jp13.add(l33,gbc);
    JComboBox c33=new JComboBox();
    c33.addItem("Select");
    c33.addItem("Mr.");
    c33.addItem("Mrs.");
    gbc.gridx=1;
    jp13.add(c33,gbc);
    JComboBox c43=new JComboBox();
    c43.addItem("Select");
    c43.addItem("Mr.");
    c43.addItem("Mrs.");
    gbc.gridx=2;
    jp13.add(c43,gbc);
    JTextField jtf23=new JTextField(10);
    gbc.gridx=3;
    jp13.add(jtf23,gbc);
    JLabel l43=new JLabel("Age(Yrs)");
    gbc.insets=new Insets(2,20,2,2);
    gbc.gridx=4;
    jp13.add(l43,gbc);
    JTextField jtf33=new JTextField(3);
    gbc.insets=new Insets(2,2,2,2);
    gbc.gridx=5;
    jp13.add(jtf33,gbc);
    JLabel l53=new JLabel("Citizenship");
    gbc.gridy=2;
    gbc.gridx=0;
    jp13.add(l53,gbc);
    JComboBox c53=new JComboBox();
    c53.addItem("Select");
    c53.addItem("Indian");
    c53.addItem("Australian");
    gbc.gridx=1;
    gbc.gridwidth=2;
    jp13.add(c53,gbc);
    JLabel l63=new JLabel("Occupation");
    gbc.insets=new Insets(2,20,2,2);
    gbc.gridx=4;
    gbc.gridwidth=1;
    jp13.add(l63,gbc);
    JComboBox c63=new JComboBox();
    c63.addItem("Select");
    c63.addItem("Engineer");
    c63.addItem("Doctor");
    gbc.insets=new Insets(2,2,2,2);
    gbc.gridx=5;
    jp13.add(c63,gbc);
    panel3.add(jp13);
    JPanel jp23=new JPanel(); //first of 3 TitledBorder panels
    jp23.setBorder(new TitledBorder("Local Address"));
    jp23.setLayout(new GridBagLayout());
    JLabel l73=new JLabel("Local Address");
    gbc.gridx=0;
    gbc.gridy=0;
    jp23.add(l73,gbc);
    JTextArea ta43=new JTextArea(3,10);
    ta43.setLineWrap(true);
    JScrollPane scroll13=new JScrollPane(ta43);
    gbc.gridx=1;
    gbc.gridy=0;
    jp23.add(ta43,gbc);
    JLabel l83=new JLabel("Country");
    gbc.gridx=0;
    gbc.gridy=1;
    gbc.gridheight=1;
    jp23.add(l83,gbc);
    JComboBox c73=new JComboBox();
    c73.addItem("India");
    c73.addItem("US");
    c73.addItem("Australia");
    gbc.gridx=1;
    gbc.gridy=1;
    jp23.add(c73,gbc);
    JLabel l93=new JLabel("State");
    gbc.gridx=0;
    gbc.gridy=2;
    jp23.add(l93,gbc);
    JComboBox c83=new JComboBox();
    c83.addItem("Rajasthan");
    c83.addItem("Delhi");
    c83.addItem("Maharastra");
    gbc.gridx=1;
    gbc.gridy=2;
    jp23.add(c83,gbc);
    JLabel l103=new JLabel("District");
    gbc.gridx=0;
    gbc.gridy=3;
    jp23.add(l103,gbc);
    JComboBox c93=new JComboBox();
    c93.addItem("jaipur");
    c93.addItem("ajmer");
    c93.addItem("alwar");
    gbc.gridx=1;
    gbc.gridy=3;
    jp23.add(c93,gbc);
    JLabel l113=new JLabel("City/Town");
    gbc.gridx=0;
    gbc.gridy=4;
    jp23.add(l113,gbc);
    JTextField tf53=new JTextField(10);
    gbc.gridx=1;
    gbc.gridy=4;
    jp23.add(tf53,gbc);
    JLabel l123=new JLabel("Police District");
    gbc.gridx=0;
    gbc.gridy=5;
    jp23.add(l123,gbc);
    JComboBox c103=new JComboBox();
    c103.addItem("Jaipur");
    c103.addItem("Alwar");
    c103.addItem("Ajmer");
    gbc.gridx=1;
    gbc.gridy=5;
    jp23.add(c103,gbc);
    JLabel l133=new JLabel("Police Circle");
    gbc.gridx=0;
    gbc.gridy=6;
    jp23.add(l133,gbc);
    JComboBox c113=new JComboBox();
    c113.addItem("India");
    c113.addItem("US");
    c113.addItem("Australia");
    gbc.gridx=1;
    gbc.gridy=6;
    jp23.add(c113,gbc);
    JLabel l143=new JLabel("Police station");
    gbc.gridx=0;
    gbc.gridy=7;
    jp23.add(l143,gbc);
    JComboBox c123=new JComboBox();
    c123.addItem("Bani Park");
    c123.addItem("Raja Park");
    c123.addItem("Malviya Nagar");
    gbc.gridx=1;
    gbc.gridy=7;
    jp23.add(c123,gbc);
    JLabel l153=new JLabel("Pin No.");
    gbc.gridx=0;
    gbc.gridy=8;
    jp23.add(l153,gbc);
    JTextField tf63=new JTextField(10);
    gbc.gridx=1;
    gbc.gridy=8;
    jp23.add(tf63,gbc);
    JLabel l163=new JLabel("Phone No.(R)");
    gbc.gridx=0;
    gbc.gridy=9;
    jp23.add(l163,gbc);
    JTextField tf73=new JTextField(10);
    gbc.gridx=1;
    gbc.gridy=9;
    jp23.add(tf73,gbc);
    JLabel l173=new JLabel("E-mail");
    gbc.gridx=0;
    gbc.gridy=10;
    gbc.gridheight=1;
    jp23.add(l173,gbc);
    JTextField tf83=new JTextField(10);
    gbc.gridx=1;
    gbc.gridy=10;
    jp23.add(tf83,gbc);
    JPanel jp33=new JPanel(); //second of 3 TitledBorder panels
    jp33.setBorder(new TitledBorder("Permanent Address"));
    jp33.setLayout(new GridBagLayout());
    JLabel l183=new JLabel("Perm. Address");
    gbc.gridx=0;
    gbc.gridy=0;
    jp33.add(l183,gbc);
    JTextArea ta93=new JTextArea(5,10);
    JScrollPane scroll23=new JScrollPane(ta43);
    ta93.setLineWrap(true);
    gbc.gridx=1;
    gbc.gridy=0;
    jp33.add(ta43,gbc);
    JLabel l193=new JLabel("Country");
    gbc.gridx=0;
    gbc.gridy=1;
    gbc.gridheight=1;
    jp33.add(l193,gbc);
    JComboBox c133=new JComboBox();
    c133.addItem("India");
    c133.addItem("US");
    c133.addItem("Australia");
    gbc.gridx=1;
    gbc.gridy=1;
    jp33.add(c133,gbc);
    JLabel l203=new JLabel("State");
    gbc.gridx=0;
    gbc.gridy=2;
    jp33.add(l203,gbc);
    JComboBox c143=new JComboBox();
    c143.addItem("Rajasthan");
    c143.addItem("Delhi");
    c143.addItem("Maharastra");
    gbc.gridx=1;
    gbc.gridy=2;
    jp33.add(c143,gbc);
    JLabel l213=new JLabel("District");
    gbc.gridx=0;
    gbc.gridy=3;
    jp33.add(l213,gbc);
    JComboBox c153=new JComboBox();
    c153.addItem("jaipur");
    c153.addItem("ajmer");
    c153.addItem("alwar");
    gbc.gridx=1;
    gbc.gridy=3;
    jp33.add(c153,gbc);
    JLabel l223=new JLabel("City/Town");
    gbc.gridx=0;
    gbc.gridy=4;
    jp33.add(l223,gbc);
    JTextField tf103=new JTextField(10);
    gbc.gridx=1;
    gbc.gridy=4;
    jp33.add(tf103,gbc);
    JLabel l233=new JLabel("Police District");
    gbc.gridx=0;
    gbc.gridy=5;
    jp33.add(l233,gbc);
    JComboBox c163=new JComboBox();
    c163.addItem("Jaipur");
    c163.addItem("Alwar");
    c163.addItem("Ajmer");
    gbc.gridx=1;
    gbc.gridy=5;
    jp33.add(c163,gbc);
    JLabel l243=new JLabel("Police Circle");
    gbc.gridx=0;
    gbc.gridy=6;
    jp33.add(l243,gbc);
    JComboBox c173=new JComboBox();
    c173.addItem("India");
    c173.addItem("US");
    c173.addItem("Australia");
    gbc.gridx=1;
    gbc.gridy=6;
    jp33.add(c173,gbc);
    JLabel l253=new JLabel("Police station");
    gbc.gridx=0;
    gbc.gridy=7;
    jp33.add(l253,gbc);
    JComboBox c183=new JComboBox();
    c183.addItem("Bani Park");
    c183.addItem("Raja Park");
    c183.addItem("Malviya Nagar");
    gbc.gridx=1;
    gbc.gridy=7;
    jp33.add(c183,gbc);
    JLabel l263=new JLabel("Pin No.");
    gbc.gridx=0;
    gbc.gridy=8;
    jp33.add(l263,gbc);
    JTextField tf113=new JTextField(10);
    gbc.gridx=1;
    gbc.gridy=8;
    jp33.add(tf113,gbc);
    JLabel l273=new JLabel("Phone No.(R)");
    gbc.gridx=0;
    gbc.gridy=9;
    jp33.add(l273,gbc);
    JTextField tf123=new JTextField(10);
    gbc.gridx=1;
    gbc.gridy=9;
    jp33.add(tf123,gbc);
    JLabel l283=new JLabel("phone No.(M)");
    gbc.gridx=0;
    gbc.gridy=10;
    gbc.gridheight=1;
    jp33.add(l283,gbc);
    JTextField tf133=new JTextField(10);
    gbc.gridx=1;
    gbc.gridy=10;
    jp33.add(tf133,gbc);
    JPanel jp43=new JPanel(); //third of 3 TitledBorder panels
    jp43.setBorder(new TitledBorder("Ex-Home Address"));
    jp43.setLayout(new GridBagLayout());
    JLabel l293=new JLabel("Address");
    gbc.gridx=0;
    gbc.gridy=0;
    jp43.add(l293,gbc);
    JTextArea ta143=new JTextArea(3,10);
    ta143.setLineWrap(true);
    JScrollPane scroll33=new JScrollPane(ta143);
    gbc.gridx=1;
    gbc.gridy=0;
    jp43.add(ta143,gbc);
    JLabel l303=new JLabel("Country");
    gbc.gridx=0;
    gbc.gridy=1;
    gbc.gridheight=1;
    jp43.add(l303,gbc);
    JComboBox c193=new JComboBox();
    c193.addItem("India");
    c193.addItem("US");
    c193.addItem("Australia");
    gbc.gridx=1;
    gbc.gridy=1;
    jp43.add(c193,gbc);
    JLabel l313=new JLabel("State");
    gbc.gridx=0;
    gbc.gridy=2;
    jp43.add(l313,gbc);
    JComboBox c203=new JComboBox();
    c203.addItem("Rajasthan");
    c203.addItem("Delhi");
    c203.addItem("Maharastra");
    gbc.gridx=1;
    gbc.gridy=2;
    jp43.add(c203,gbc);
    JLabel l323=new JLabel("District");
    gbc.gridx=0;
    gbc.gridy=3;
    jp43.add(l323,gbc);
    JComboBox c213=new JComboBox();
    c213.addItem("jaipur");
    c213.addItem("ajmer");
    c213.addItem("alwar");
    gbc.gridx=1;
    gbc.gridy=3;
    jp43.add(c213,gbc);
    JLabel l333=new JLabel("City/Town");
    gbc.gridx=0;
    gbc.gridy=4;
    jp43.add(l333,gbc);
    JTextField tf153=new JTextField(10);
    gbc.gridx=1;
    gbc.gridy=4;
    jp43.add(tf153,gbc);
    JLabel l343=new JLabel("Police District");
    gbc.gridx=0;
    gbc.gridy=5;
    jp43.add(l343,gbc);
    JComboBox c223=new JComboBox();
    c223.addItem("Jaipur");
    c223.addItem("Alwar");
    c223.addItem("Ajmer");
    gbc.gridx=1;
    gbc.gridy=5;
    jp43.add(c223,gbc);
    JLabel l353=new JLabel("Police Circle");
    gbc.gridx=0;
    gbc.gridy=6;
    jp43.add(l353,gbc);
    JComboBox c233=new JComboBox();
    c233.addItem("India");
    c233.addItem("US");
    c233.addItem("Australia");
    gbc.gridx=1;
    gbc.gridy=6;
    jp43.add(c233,gbc);
    JLabel l363=new JLabel("Police station");
    gbc.gridx=0;
    gbc.gridy=7;
    jp43.add(l363,gbc);
    JComboBox c243=new JComboBox();
    c243.addItem("Bani Park");
    c243.addItem("Raja Park");
    c243.addItem("Malviya Nagar");
    gbc.gridx=1;
    gbc.gridy=7;
    jp43.add(c123,gbc);
    JLabel l373=new JLabel("Pin No.");
    gbc.gridx=0;
    gbc.gridy=8;
    jp43.add(l373,gbc);
    JTextField tf163=new JTextField(10);
    gbc.gridx=1;
    gbc.gridy=8;
    jp43.add(tf163,gbc);
    JLabel l383=new JLabel("Phone");
    gbc.gridx=0;
    gbc.gridy=9;
    jp43.add(l383,gbc);
    JTextField tf173=new JTextField(10);
    gbc.gridx=1;
    gbc.gridy=9;
    jp43.add(tf173,gbc);
    JLabel l393=new JLabel("Leaving Date");
    gbc.gridx=0;
    gbc.gridy=10;
    gbc.gridheight=1;
    jp43.add(l393,gbc);
    JTextField tf183=new JTextField(10);
    gbc.gridx=1;
    gbc.gridy=10;
    jp43.add(tf183,gbc);
    /*JCheckBox cb13=new JCheckBox("Approx");
    gbc.gridx=2;
    gbc.gridy=10;
    jp43.add(cb13);*/
    JPanel jp53=new JPanel(); //panel for addin all 3 TitledBorder panels
    jp53.setLayout(new BoxLayout(jp53,BoxLayout.X_AXIS));
    jp53.add(jp23);
    jp53.add(Box.createHorizontalStrut(30)); //giving space between each TitledBorder panel
    jp53.add(jp33);
    jp53.add(Box.createHorizontalStrut(30));
    jp53.add(jp43);
    panel3.add(jp53); //adding panel which contains all 3 TitledBorder panels to panel3
    JPanel jp63=new JPanel(); //jp63 panel for bottom data
    jp63.setBorder(new TitledBorder("Tennancy Start/End"));
    JLabel l403=new JLabel("From Date");
    jp63.add(l403);
    JTextField jtf193=new JTextField(12);
    jp63.add(jtf193);
    JCheckBox jcb23=new JCheckBox("Approx");
    jp63.add(jcb23);
    JLabel l413=new JLabel("To Date");
    jp63.add(l413);
    JTextField jtf203=new JTextField(12);
    jp63.add(jtf203);
    JCheckBox jcb33=new JCheckBox("Approx");
    jp63.add(jcb33);
    panel3.add(jp63); //adding bottom details panel jp63 to panel3
    //<--------coding for fourth tab--------->
    JPanel panel4 = new JPanel();
    tabbedPane.addTab("Id of Tenant",null,panel4,"fourth tab");
    panel4.setLayout(new FlowLayout());
    //adding radiobutton above TitledBorder panel jp14
    JPanel jp04=new JPanel();
    JLabel l14=new JLabel("Identity Known");
    JRadioButton jrb14=new JRadioButton("Yes");
    JRadioButton jrb24=new JRadioButton("No");
    ButtonGroup bg14=new ButtonGroup();
    bg14.add(jrb14);
    bg14.add(jrb24);
    jp04.add(l14);
    jp04.add(jrb14);
    jp04.add(jrb24);
    //adding TitledBorder panel jp14
    JPanel jp14=new JPanel();
    jp14.setBorder(new TitledBorder("Identity Detail"));
    jp14.setLayout(new GridBagLayout());
    gbc.insets=new Insets(5,5,5,5);
    JLabel l24=new JLabel("Identity Card");
    gbc.gridx=0;
    gbc.gridy=0;
    jp14.add(l24,gbc);
    JTextField jtf14=new JTextField(10);
    gbc.gridx=1;
    jp14.add(jtf14,gbc);
    JLabel l34=new JLabel("Date of Issue");
    gbc.gridx=0;
    gbc.gridy=1;
    jp14.add(l34,gbc);
    JTextField jtf24=new JTextField(10);
    gbc.insets=new Insets(5,5,5,25);
    gbc.gridx=1;
    jp14.add(jtf24,gbc);
    JLabel l44=new JLabel("Identity Number");
    gbc.insets=new Insets(5,5,5,5);
    gbc.gridx=2;
    jp14.add(l44,gbc);
    JTextField jtf34=new JTextField(10);
    gbc.gridx=3;
    jp14.add(jtf34,gbc);
    JLabel l54=new JLabel("Name Of Issuer");
    gbc.gridx=0;
    gbc.gridy=2;
    jp14.add(l54,gbc);
    JTextField jtf44=new JTextField(10);
    gbc.insets=new Insets(5,5,5,25);
    gbc.gridx=1;
    jp14.add(jtf44,gbc);
    JLabel l64=new JLabel("Place Of Issuer");
    gbc.insets=new Insets(5,5,5,5);
    gbc.gridx=2;
    jp14.add(l64,gbc);
    JTextField jtf54=new JTextField(10);
    gbc.gridx=3;
    jp14.add(jtf54,gbc);
    gbc.gridx=0;
    gbc.gridy=2;
    Box b14=Box.createVerticalBox(); //adding both panels to panel4 in vertical box
    b14.add(jp04);
    b14.add(jp14);
    panel4.add(b14);
    //<--------coding for fifth tab--------->
    JPanel panel5 = new JPanel();
    tabbedPane.addTab("Info Of Other Members",null,panel5,"fifth tab");
    JPanel jp15=new JPanel(); //top panel jp15 for details above add delete buttons
    jp15.setLayout(new GridBagLayout());
    JLabel l15=new JLabel("Name");
    gbc.gridx=0;
    gbc.gridy=0;
    gbc.insets=new Insets(10,10,10,10);
    jp15.add(l15,gbc);
    JTextField jtf15=new JTextField(10);
    gbc.gridx=1;
    jp15.add(jtf15,gbc);
    JLabel l25=new JLabel("Sex");
    gbc.gridx=2;
    gbc.insets=new Insets(10,80,10,10);
    jp15.add(l25,gbc);
    JComboBox jcb15=new JComboBox();
    jcb15.addItem("Male");
    jcb15.addItem("Female");
    gbc.gridx=3;
    gbc.insets=new Insets(10,10,10,10);
    jp15.add(jcb15,gbc);
    JLabel l35=new JLabel("Relation");
    gbc.gridx=0;
    gbc.gridy=1;
    gbc.insets=new Insets(10,10,40,10);
    jp15.add(l35,gbc);
    JTextField jtf25=new JTextField(10);
    gbc.gridx=1;
    jp15.add(jtf25,gbc);
    JLabel l45=new JLabel("Age");
    gbc.gridx=2;
    gbc.insets=new Insets(10,80,40,10);
    jp15.add(l45,gbc);
    JTextField jtf35 =new JTextField(10);
    gbc.gridx=3;
    gbc.insets=new Insets(10,10,40,10);
    jp15.add(jtf35,gbc);
    JPanel jp25=new JPanel(); //middle panel jp25 for adding "add" and "delete" buttons
    JButton jb15=new JButton("Add");
    JButton jb25=new JButton("Delete");
    jp25.add(jb15);
    jp25.add(jb25);
    //adding table #yet to be coded#
    Box b15=Box.createVerticalBox();
    b15.add(jp15);
    b15.add(jp25);
    panel5.add(b15); //adding jp15 and jp25 to panel5 in vertical box
    //<--------coding for sixth tab--------->
    JPanel panel6 = new JPanel();
    tabbedPane.addTab("Related To Office",null,panel6,"sixth tab");
    panel6.setLayout(new GridBagLayout());
    //adding 4 labels and textfields vertically
    JLabel l16=new JLabel("Investigation Officer");
    gbc.gridx=0;
    gbc.gridy=0;
    gbc.insets=new Insets(40,40,20,10);
    panel6.add(l16,gbc);
    JTextField jtf16 =new JTextField(10);
    gbc.gridx=1;
    gbc.insets=new Insets(40,20,20,40);
    panel6.add(jtf16,gbc);
    JLabel l26=new JLabel("S.No.");
    gbc.gridx=0;
    gbc.gridy=1;
    gbc.insets=new Insets(10,40,20,10);
    panel6.add(l26,gbc);
    JTextField jtf26 =new JTextField(10);
    gbc.gridx=1;
    gbc.insets=new Insets(10,20,20,40);
    panel6.add(jtf26,gbc);
    JLabel l36=new JLabel("Page No.");
    gbc.gridx=0;
    gbc.gridy=2;
    gbc.insets=new Insets(10,40,20,10);
    panel6.add(l36,gbc);
    JTextField jtf36 =new JTextField(10);
    gbc.gridx=1;
    gbc.insets=new Insets(10,20,20,40);
    panel6.add(jtf36,gbc);
    JLabel l46=new JLabel("Date");
    gbc.gridx=0;
    gbc.gridy=3;
    gbc.insets=new Insets(10,40,20,10);
    panel6.add(l46,gbc);
    JTextField jtf46=new JTextField(10);
    gbc.gridx=1;
    gbc.insets=new Insets(10,20,20,40);
    panel6.add(jtf46,gbc);
    /* Canvas c16=new Canvas(); //creating a rectangle frame for adding image
    Image i16=c.createImage(200,100);
    gbc.gridx=2;
    gbc.gridy=0;
    gbc.insets=new Insets(40,20,20,40);
    gbc.gridheight=3;
    panel6.add(i16,gbc);*/
    JButton jb16=new JButton("Browse"); //adding "browse" and "save" buttons
    gbc.insets=new Insets(10,20,20,40);
    gbc.gridy=3;
    panel6.add(jb16,gbc);
    JButton jb26=new JButton("Save");
    gbc.insets=new Insets(50,20,20,40);
    gbc.gridy=4;
    panel6.add(jb26,gbc);
    //<-------end of sixth tab------->
    add(tabbedPane);
    //lower panel for cancel button
    JPanel jp1=new JPanel();
    jp1.setLayout(new FlowLayout(FlowLayout.RIGHT));
    JButton can=new JButton("Cancel"); //initialising cancel button
    jp1.add(can);
    add(jp1,BorderLayout.SOUTH);
    class Blistener implements ActionListener // class for action listener
    public void actionPerformed(ActionEvent ae)
    Object obj=ae.getSource();
    try{
    if(obj == can) //condition for cancel button
    System.exit(0);
    }catch(Exception e)
    {System.out.println(e);
    public class Project
    public static void main(String args[]) //main method for the program
    Design tabbedwin= new Design();
    tabbedwin.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    tabbedwin.setSize(900,700);
    tab

    First things first. Next time please use the code formating tags when posting your code.
    Secondly, we cant help you do your entire project or more specifically we cant do it for you. We can probably help you with one section at a time.
    Thirdly, do not post your entire code. Create a Short, Self Contained, Compilable Example (SSCCE) that demonstrates the problem section, and that is independent of any third party libraries and can compiled instantly and tested.
    Now, lets see if we can answer one problem here.
    Ques 1. In the form I have one JComboBox of Country and other of State. Now I want it in such a way that whenI select a country from the Country JComboBox ,the corresponding states automatically appears in the State JComboBox.
    Ans 1: Use an ItemListener or an ActionListener (javax.swing.event) for this. Once an item is selected, the event will be fired and then you populate your ComboBox with the requried data.
    Ques 2. I need to add picture frame in the 6th tab so that the picture shows up when clicked browse and open.
    Ans 2: You haven't created the JButton for the browse action, nor have you created the JLabel to show the picture in. Create the JButton, then the JLabel, attach an ActionListener to the button to listen for the button click, open a JFileChooser, select the image file, create an ImageIcon and pass the File object returned to it. Then call the JLabel.setIcon( the ImageIcon) to display the picture. You'll have to store the picture File information some where so can reference it when saving.
    Ques 3.I need to add tables in 1st and 5th tab which shows up the details through database when added through several textboxes and combo boxes.
    You need to do some reading. The Swing Tutorial has everything you need, from How to use Tables to How to connect to databases. There are also some examples in your JDK installation folder, ie, jdk/demos/jfc/tableExample. Here is the link to the swing tutorial on how to use Tables: http://java.sun.com/docs/books/tutorial/uiswing/components/table.html. You find other useful links there.
    ICE

  • 'Your computer restarted because of a problem' - PLEASE help

    Hi
    I need some help with my MacbookPro. It keeps crashing when trying to work at Photoshop CS5 or when opening video on Skype call! I have OS X version 10.8.2.  Processor 2.4 GHz Intel Core i5 and Memory 8GB. It's about 2 years old. I use WD My Passport external drives. I use it for work and Photoshop is a crucial part of my everyday work and im UNABLE to use it at the moment.
    I took it to Milton Keynes Apple Genius store in September 2012 where they emptied and reinstalled the whole operating system. Full clean up.
    After that, my macbook pro worked ok but recently started to crash and auto-restart AGAIN saying 'Your computer restarted because of a problem'.
    Please help with some advice what to do. Do I really have to do a full clean up again??? Can't possibly keep doing this.
    Is it possible that the new OS doesnt like Photoshop CS5 and Skype video?
    Many thanks in advance
    Eneka
    The report I get is:
    Sun Nov 25 14:19:52 2012
    panic(cpu 2 caller 0xffffff7f961a8b25): NVRM[0/1:0:0]: Read Error 0x00000100: CFG 0x0a2910de 0x00100000 0x00000000, BAR0 0xd2000000 0xffffff812975d000 0x0a5480a2, D0, P3/4
    Backtrace (CPU 2), Frame : Return Address
    0xffffff81067837e0 : 0xffffff8015a1d626
    0xffffff8106783850 : 0xffffff7f961a8b25
    0xffffff81067838e0 : 0xffffff7f962a24b3
    0xffffff8106783940 : 0xffffff7f962a2527
    0xffffff81067839b0 : 0xffffff7f965b7853
    0xffffff8106783af0 : 0xffffff7f962c8659
    0xffffff8106783b20 : 0xffffff7f961b28da
    0xffffff8106783bd0 : 0xffffff7f961adfac
    0xffffff8106783dc0 : 0xffffff7f961af9ba
    0xffffff8106783ea0 : 0xffffff7f961431c4
    0xffffff8106783ef0 : 0xffffff7f97c5e71f
    0xffffff8106783f40 : 0xffffff7f97c5d8e7
    0xffffff8106783f60 : 0xffffff8015a3dcde
    0xffffff8106783fb0 : 0xffffff8015ab26b7
          Kernel Extensions in backtrace:
             com.apple.NVDAResman(8.0)[A4C53A36-22B6-3075-82B9-9DE612A9C015]@0xffffff7f96141 000->0xffffff7f96443fff
                dependency: com.apple.iokit.IOPCIFamily(2.7.2)[B1B77B26-7984-302F-BA8E-544DD3D75E73]@0xffff ff7f960af000
                dependency: com.apple.iokit.IONDRVSupport(2.3.5)[86DDB71C-A73A-3EBE-AC44-0BC9A38B9A44]@0xff ffff7f9612d000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.5)[803496D0-ADAD-3ADB-B071-8A0A197DA53D]@0 xffffff7f960ea000
             com.apple.nvidia.nv50hal(8.0)[9F3D09B5-3158-3D9E-BDA3-E71576AAD3B7]@0xffffff7f9 6451000->0xffffff7f96773fff
                dependency: com.apple.NVDAResman(8.0.0)[A4C53A36-22B6-3075-82B9-9DE612A9C015]@0xffffff7f961 41000
                dependency: com.apple.iokit.IOPCIFamily(2.7.2)[B1B77B26-7984-302F-BA8E-544DD3D75E73]@0xffff ff7f960af000
             com.apple.driver.AGPM(100.12.69)[FBC949AC-F94D-39CD-96A0-C6F121EA7546]@0xffffff 7f97c5c000->0xffffff7f97c6bfff
                dependency: com.apple.iokit.IOPCIFamily(2.7.2)[B1B77B26-7984-302F-BA8E-544DD3D75E73]@0xffff ff7f960af000
                dependency: com.apple.driver.IOPlatformPluginFamily(5.2.0d16)[41B414E9-EC1E-3724-A158-14FD4 8712B0C]@0xffffff7f96c01000
                dependency: com.apple.iokit.IONDRVSupport(2.3.5)[86DDB71C-A73A-3EBE-AC44-0BC9A38B9A44]@0xff ffff7f9612d000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.5)[803496D0-ADAD-3ADB-B071-8A0A197DA53D]@0 xffffff7f960ea000
    BSD process name corresponding to current thread: kernel_task
    Mac OS version:
    12C60
    Kernel version:
    Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64
    Kernel UUID: 69A5853F-375A-3EF4-9247-478FD0247333
    Kernel slide:     0x0000000015800000
    Kernel text base: 0xffffff8015a00000
    System model name: MacBookPro6,2 (Mac-F22586C8)
    System uptime in nanoseconds: 125680379050688
    last loaded kext at 78226882012098: com.apple.filesystems.smbfs          1.8 (addr 0xffffff7f97d9c000, size 229376)
    last unloaded kext at 65629767394996: com.apple.driver.AppleUSBCDC          4.1.22 (addr 0xffffff7f97d99000, size 12288)
    loaded kexts:
    com.apple.filesystems.smbfs          1.8
    com.apple.driver.AppleHWSensor          1.9.5d0
    com.apple.driver.AudioAUUC          1.60
    com.apple.iokit.IOBluetoothSerialManager          4.0.9f33
    com.apple.driver.AGPM          100.12.69
    com.apple.filesystems.autofs          3.0
    com.apple.driver.AppleMikeyHIDDriver          122
    com.apple.driver.AppleHDA          2.3.1f2
    com.apple.GeForce          8.0.0
    com.apple.driver.AppleMikeyDriver          2.3.1f2
    com.apple.driver.AppleUpstreamUserClient          3.5.10
    com.apple.iokit.IOUserEthernet          1.0.0d1
    com.apple.Dont_Steal_Mac_OS_X          7.0.0
    com.apple.iokit.BroadcomBluetoothHCIControllerUSBTransport          4.0.9f33
    com.apple.driver.ApplePolicyControl          3.2.11
    com.apple.driver.AppleSMCPDRC          1.0.0
    com.apple.driver.AppleSMCLMU          2.0.2d0
    com.apple.driver.AppleMCCSControl          1.0.33
    com.apple.driver.AppleIntelHDGraphics          8.0.0
    com.apple.driver.AppleMuxControl          3.2.11
    com.apple.driver.ACPI_SMC_PlatformPlugin          1.0.0
    com.apple.driver.AppleLPC          1.6.0
    com.apple.driver.AppleIntelHDGraphicsFB          8.0.0
    com.apple.driver.SMCMotionSensor          3.0.2d6
    com.apple.driver.AppleUSBTCButtons          235.4
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless          1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib

    Eneka wrote:
    It keeps crashing when trying to work at Photoshop CS5 or when opening video on Skype call! I have OS X version 10.8.2
    Skype seems to have no problems with 10.8.2, but PhotoShop CS5 most certainly does.
    Adobe is the one to address for your issues, apparantly they want you to upgrade to CS6 which has no issues in 10.8.
    Your problem is two fold, one it's Apple's fault for their rapid OS X upgrade cycle that is freindly to Apple selling hardware and to consumers, but severly unfriendly to professional users who need consistancy in their "tools" to remain functional.
    Adobe and other developers capitalizes on Apple's rapid OS X upgrade cycle to force more money out of users.
    My suggestion is too consider very carefully BEFORE upgrading OS X so your third party programs are functional, make clones of your previous machine so you have a means to revert in case the upgrade doesn't go as smoothly as anticipated.
    Most commonly used backup methods
    Your options at this point seems to be to consult on the ADOBE forums and find out if and when a update to CS5 will (or will not) be made as to work with 10.8 and if not your options at upgrading to CS6.
    Apple is a consumer products company, if you require more stability in your hardware, operating systems and purchased programs, you may want to consider switching to a Windows 7 tower, which are still available if you look for them. Windows 7 will get support and updated until 2020, OS X only for a year then your forced to upgrade it yet again.
    Apple is becoming less and less of a professionals choice for computing, and quite frankly that's how they publically have stated is their agenda, to focus on only the consumer tech gadget market.

  • Please help me with my problem, urgently worried and tired. Cant seem to find a solution!

    I was just doing my website and doing my css stylings. Suddenly, when i create a css rule, it stopped showing in my live view or browser. It still appears the way i want in design view. I have no idea why, i am only a beginner and i am struggling with this. My assignment is due soon and i have not finished, I am feeling so stressed now i have resort to asking here. Please please help me, this means so much to me...i know its really messy i just need all my css to work. The textarea and form parts are not working. any new css created from this stage doesnt work too.
    Here is my html code:
    <!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>
    <script src="js/jquery-1.10.2.min.js"></script>
    <script src="js/lightbox-2.6.min.js"></script>
    <script src="SpryAssets/SpryEffects.js" type="text/javascript"></script>
    <link href="css/lightbox.css" rel="stylesheet" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <link href="css/gallerystyle.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    #apDiv1 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 1;
              left: -9px;
              top: 75px;
    #apDiv2 {
              position: absolute;
              width: 754px;
              height: 115px;
              z-index: 1;
              left: 262px;
              top: 28px;
    a {
              font-weight: bold;
    a:link {
              text-decoration: none;
    a:visited {
              text-decoration: none;
    a:hover {
              text-decoration: none;
    a:active {
              text-decoration: none;
              font-weight: bold;
              color: #000;
    body,td,th {
              color: #000;
    #apDiv3 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 2;
              left: 31px;
              top: 27px;
    #apDiv4 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 21;
              top: 199px;
              left: 35px;
    #apDiv5 {
              position: absolute;
              width: px;
              height: 150px;
              z-index: 21;
              top: 145px;
              left: 8px;
    #apDiv6 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 22;
    #apDiv7 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 22;
    #apDiv8 {
              position: absolute;
              width: 269px;
              height: 332px;
              z-index: 22;
              left: 285px;
              top: 175px;
    #apDiv9 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 22;
              left: 271px;
              top: 107px;
    #apDiv10 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 23;
              left: 588px;
              top: 106px;
    #apDiv11 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 24;
              left: 909px;
              top: 105px;
    #apDiv12 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 25;
              left: 273px;
              top: 497px;
    #apDiv13 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 26;
              left: 590px;
              top: 494px;
    #apDiv14 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 27;
              left: 910px;
              top: 498px;
    #apDiv15 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 28;
              left: 275px;
              top: 886px;
    #apDiv16 {
              position: absolute;
              width: 200px;
              height: 115px;
              z-index: 22;
              left: 435px;
              top: 145px;
    #apDiv17 {
              position: absolute;
              width: 439px;
              height: 115px;
              z-index: 22;
              left: 267px;
              top: 156px;
    </style>
    <script type="text/javascript">
    function MM_effectAppearFade(targetElement, duration, from, to, toggle)
              Spry.Effect.DoFade(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    </script>
    </head>
    <body onload="MM_preloadImages('images/GalleryTOPS/STRIPEY/3.jpg','images/GalleryTOPS/LONG/3.jp g','images/GalleryTOPS/vneck/3.jpg','images/GalleryTOPS/pink/3.jpg','images/GalleryTOPS/ss /3.jpg')">
    <div id="apDiv5">
       <section class="ac-container">
                                            <div>
                                                      <input id="ac-1" name="accordion-1" type="checkbox" />
                                              <label for="ac-1">New Arrivals</label></li>
                                            <div>
                                                      <input id="ac-2" name="accordion-1" type="checkbox" />
                                              <label for="ac-2">Tops</label>
                                                      <article class="ac-medium"><a href="blouse.html" class="linkstyle"><span class="linkk"> <span class="ac-medium">Blouse
                                                      </span><br />
    <a href="#" class="linkk">Printed Tops</a><br />
    <a href="#" class="linkk"> Basics</a></article>
                                            </div>
                                            <div>
                                                      <input id="ac-3" name="accordion-1" type="checkbox" />
    <label for="ac-3">Bottoms</label>
                                                      <article class="ac-small">
                          <a href="#" class="linkk">Pants</a>
                      <a href="#"> <li class="linkk" id="active">Skirts</li></a>
                      <span class="linkk"></span></article>
                                                      <div>
                                                      <input id="ac-4" name="accordion-1" type="checkbox" />
                                                      <label for="ac-4">Dresses</label>
                                            </div>
                                                            <div>
                                                      <input id="ac-5" name="accordion-1" type="checkbox" />
                                                      <label for="ac-5">Bags & Accessories</label>
                                                      <article class="ac-large">
                          <span class="linkk"><a href="#" class="linkk"><span class="ac-large">Bags </span></a><span class="ac-large"><br />
                          <a href="#" class="linkk">Clutches</a>
    <br />
    <a href="#" class="linkk">Necklaces & Bracelets</a><br />
    <a href="#" class="linkk">Eyewear</a></span></span> </article>
                        </div>
                                                                <div>
                                                      <input id="ac-6" name="accordion-1" type="checkbox" />
                                                      <label for="ac-6">Shoes</label>
                                                      <article class="ac-large">
                          <span class="linkk"><a href="#" class="linkk"><span class="ac-large">Flats</span></a>          <span class="ac-large"><br />
                          <a href="#" class="linkk">Heels</a>
    <br />
    <a href="#" class="linkk">Boots</a></span></span></article>                   
    </section>
    </div>
    <div id="apDiv2">
    <ul id="menu">
      <li><a href="#">Home</a></li>
      <li id="active"><a href="#">Shop</a></li>
              <li><a href="#">Blog</a></li>
              <li><a href="#">About</a></li>
              <li><a href="#">FAQ</a></li>
        <li><a href="#">Contact</a></li>
    </ul>
    </div>
    <div id="apDiv3"><img src="images/images/images/dolce_03.png" width="172" height="62" /></div>
    </body>
    </html>
    HERE IS MY CSS CODE:
    @charset "utf-8";
    /* CSS Document */
    #menu{
              width: 100%;
              margin: 0;
              padding: 10px 0 0 0;
              list-style: none; 
              background: none;
    #menu li{
              float: left;
              padding: 0 0 10px 0;
              position: relative;
              font-weight: bold;
    #menu a{
              float: left;
              height: 25px;
              padding: 0 34px;
              color: #CCC;
              text-transform: uppercase;
              font: bold 14px/27px Arial, Helvetica;
              text-decoration: none;
    #active a{float: left;
              height: 25px;
              padding: 0 34px;
              color: #000;
              text-transform: uppercase;
              font: bold 14px/27px Arial, Helvetica;
              text-decoration: none;}
    #menu li:hover > a{
              color: #000;
              transition:.30s ease-in-out;
              -moz-transition: .30s ease-in-out;
              -webkit-transition: .30s ease-in-out;
    /* Sub-menu */
    /* Clear floated elements */
    #menu:after{
              visibility: hidden;
              display: block;
              font-size: 0;
              content: " ";
              clear: both;
              height: 0;
    * html #menu             { zoom: 1; } /* IE6 */
    *:first-child+html #menu { zoom: 1; } /* IE7 */
    .ac-container{
              width: 200px;
              margin: 10px auto 30px auto;
              text-align: left;
    .ac-container label{
              font-family: Arial, Helvetica, sans-serif;
              padding: 5px 20px;
              position: relative;
              z-index: 20;
              display: block;
              height: 30px;
              cursor: pointer;
              color: #000;
              line-height: 33px;
              font-size: 13px;
              box-shadow: 1px  0px #333;
              filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ffffff',GradientType=0 );
              font-weight: bold;
    .ac-container label:hover{
              color: #ccc;
              background-image:
    .ac-container input:checked + label,
    .ac-container input:checked + label:hover{
              background: #FFF;
              color: #F1C97E;
              text-shadow: 0px 1px 1px rgba(255,255,255, 0.6);
    .ac-container label:hover:after,
    .ac-container input:checked + label:hover:after{
              content: '';
              position: absolute;
              width: 24px;
              height: 24px;
              right: 13px;
              top: 7px;
    .ac-container input:checked + label:hover:after{
    .ac-container input{
              display: none;
    .ac-container article{
              margin-top: -1px;
              overflow: hidden;
              height: 0px;
              position: relative;
              z-index: 10;
              -webkit-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
              -moz-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
              -o-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
              -ms-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
              transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
              padding-left:60px;
    .ac-container input:checked ~ article{
              -webkit-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
              -moz-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
              -o-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
              -ms-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
              transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
    .ac-container input:checked ~ article.ac-small{
              height: 30px;
              padding-left:60px;
    .ac-container input:checked ~ article.ac-medium{
              height: 50px;
              padding-left:60px;
    .ac-container input:checked ~ article.ac-large{
              height: 90px;
              padding-left:60px;
    .linkk {
              font-family: Arial, Helvetica, sans-serif;
              font-size: 12px;
              color: #000;
    .linktext {
              font-family: Arial, Helvetica, sans-serif;
              font-size: 13px;
              color: #333;
    .accordion {  
         width:830px; 
         overflow:hidden;  
         margin:10px auto;  
         color:#;  
         padding:10px;  
    .accordion section{  
          float:left; 
          overflow:hidden;  
          color:#;  
          cursor:pointer;  
          margin:3px;  
    .accordion section:hover { 
          background:; 
    .accordion section p {  
          display:none;  
    .accordion section:after{ 
          position:relative; 
          font-size:24px; 
          color:#000; 
          font-weight:bold; 
    .accordion section:nth-child(1):after{ content:'1'; } 
    .accordion section:nth-child(2):after{ content:'2'; } 
    .accordion section:nth-child(3):after{ content:'3'; } 
    .accordion section:nth-child(4):after{ content:'4'; } 
    .accordion section:nth-child(5):after{ content:'5'; } 
    .accordion section:target {  
          background:#FFF;  
          padding:10px; 
    .accordion section:target:hover {  
          background:#FFF;  
    .accordion section:target h2 { 
          width:100%; 
    .accordion section:target h2 a{  
          color:;  
          padding:0; 
    .accordion section:target p { 
          display:block; 
    .accordion section h2 a{ 
          padding:8px 10px; 
          display:block;  
          font-size:16px;  
          font-weight:normal; 
          color:  
          text-decoration:none;  
    .vertical section{  
         width:100%;  
         height:40px;  
         -webkit-transition:height 0.2s ease-out; 
         -moz-transition:height 0.2s ease-out; 
         -o-transition:height 0.2s ease-out; 
         transition:height 0.2s ease-out; 
    /*Set height of the slide*/ 
    .vertical :target{  
         height:250px;  
         width:97%; 
    .vertical section h2 {  
         position:relative;  
         left:0;  
         top:-15px;  
    /*Set position of the number on the slide*/ 
    .vertical section:after{  
          top:-50px; 
          left:810px; 
    .vertical section:target:after{  
          left:-9999px; 
    .item {
              width: 490px;
              height: 30px;
              /* height = total height of A child element */
              overflow: hidden;
              margin-bottom: 3px;
              transition: height ease-in-out 500ms; /* css3 transition */
              -o-transition: height ease-in-out 500ms;
              -moz-transition: height ease-in-out 500ms;
              -webkit-transition: height ease-in-out 500ms;
              font-family: Arial, Helvetica, sans-serif;
              font-size: 12px;
              color: #000;
              padding-bottom:1px;
    #accordion div:target {
              height: 150px;
              transition: background .30s ease-in-out;
              -moz-transition: background .30s ease-in-out;
              -webkit-transition: background .30s ease-in-out; /* height = total height of A and P child elements */
    #accordion a {
        display: block;
        height: 20px;
        background: #fff;
              -webkit-transition: height ease-in-out 500ms;
              font-family: Georgia, "Times New Roman", Times, serif;
              font-size: 24px;
              font-style: italic;
              font-weight: bold;
              color: #333;
              text-decoration: underline;
        padding: 1px;
    #accordion a:hover {
        display: block;
        height: 20px;
        background: #fff;
              -webkit-transition: height ease-in-out 500ms;
              font-family: Georgia, "Times New Roman", Times, serif;
              font-size: 24px;
              font-style: italic;
              font-weight: bold;
              color: #f1c97e;
              text-decoration: underline;
        padding: 1px;
              transition:.30s ease-in-out;
              -moz-transition:  .30s ease-in-out;
              -webkit-transition:.30s ease-in-out;}
    #accordion div:hover a:before {    color: #F1c97e;
              content:url(../images/images/aa_03.png)
    #accordion p {
        height: 380px;
        padding: 5px;
    .enqhead {
              font-family: "Arial Black", Gadget, sans-serif;
              font-size: 16px;
              font-style: normal;}
    .enquhead {
              font-family: Georgia, "Times New Roman", Times, serif;
              font-size: 18px;
              font-weight: bold;
              color: #333;
              border: 3px solid #333;
              position: absolute;
    .embox {
              border-top-color: #000;
    .enqq {
              font-family: Georgia, "Times New Roman", Times, serif;
              font-weight: bold;
              font-style: italic;

    I'll 2nd Chris's comments about position:absolute.  It is definitely not needed for 98% of page layouts and in most cases should be avoided because it makes a complete mess of things. 
    You also have quite a few coding errors which mucks things up in browsers.  While I'm not certain what all you're trying to do with those labels, But I think you can simplify things enormously by using a very basic CSS layout and simple jQuery Accordion panels. 
    Copy & paste the following code into a new, blank document.  SaveAs test.html and preview in browsers.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 Document with Accordion Panels</title>
    <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    <script src="http://code.jquery.com/jquery-latest.min.js"> </script>
    <style>
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    img { vertical-align: baseline }
    body {
        width: 960px; /**adjust width as needed**/
        margin: 0 auto; /**with width, this is centered**/
        padding:0;
        background: #69F;
        font: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif;
        font-size: 100%;
        color: #000;
    /**global text links**/
    a img { border: none }
    a {
        font-weight: bold;
        text-decoration: none
    a:link { color: #069; }
    a:visited { color: #69F }
    a:hover, a:active, a:focus {
        text-decoration: underline;
        color: #000;
        outline: none;
    header {
        margin:0;
        padding:0;
        overflow: hidden;/*float containment**/
        width: 100%;
    header:after {
        /**clear floats**/
        content: '';
        visibility: hidden;
        display: block;
        clear: both;
    footer {
        margin:0;
        padding:0;
        width: 100%;
        color: #FFF;
        text-align: center
    article {
        margin:0;
        background: #FFF;
        padding: 2%;
    /**top navigation**/
    nav {
        margin:0;
        padding:0;
        float: right;
        width: 75%;
        overflow:hidden;
    #menu {
        width: 100%;
        margin: 0;
        padding: 10px 0 0 0;
        list-style: none;
    #menu li {
        float: left;
        padding: 0 0 10px 0;
        position: relative;
        font-weight: bold;
    #menu li a {
        display: block;
        padding: 0 34px;
        color: #CCC;
        text-transform: uppercase;
        font: bold 14px/27px Arial, Helvetica;
        text-decoration: none;
    #menu li:hover > a {
        color: #000;
        transition: .30s ease-in-out;
        -moz-transition: .30s ease-in-out;
        -webkit-transition: .30s ease-in-out;
    /* Clear floated elements */
    #menu:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    * html #menu { zoom: 1; } /* IE6 */
    *:first-child+html #menu { zoom: 1; } /* IE7 */
    /**accordion panels**/
    .accordion { margin: 50px; }
    .accordion dt {
        background: #DDD;
        line-height: 50px;
        padding: 10px;
        border: 1px solid #000;
        border-bottom: 0;
    .accordion dd {
        min-height: 100px;
        margin-left: 0;
        padding: 20px;
        border: 1px solid #ccc;
    .accordion dd &:last-of-type {
    border-top: 1px solid white;
    position: relative;
    top: -1px;
    .accordion dt a {
        display: block;
        font-weight: bold;
    </style>
    </head>
    <body>
    <header> <img src="http://placehold.it/172x62" height="62" width="172" alt="logo" >
    <nav>
    <ul id="menu">
    <li><a href="#">Home</a></li>
    <li><a href="#">Shop</a></li>
    <li><a href="#">Blog</a></li>
    <li><a href="#">About</a></li>
    <li><a href="#">FAQ</a></li>
    <li><a href="#">Contact</a></li>
    </ul>
    </nav>
    </header>
    <article> <h2>New Arrivals &gt; Tops</h2>
    <dl class="accordion">
    <dt><a href="">Blouses</a></dt>
    <dd><a href="#">Printed Tops</a>  |  <a href="#" >Basics</a></dd>
    <dt><a href="">Bottoms</a></dt>
    <dd><a href="#">Pants</a> |   <a href="#">Skirts</a></dd>
    <dt><a href="">Dresses</a></dt>
    <dd>Something here... |   something here... |  something here...</dd>
    <dt><a href="">Bags &amp; Accessories</a></dt>
    <dd>Bags  |   Clutches  |   Necklaces &amp; Bracelets |  
    Eyewear</dd>
    <dt><a href="">Shoes</a></dt>
    <dd><a href="#">Flats</a> |   <a href="#">Heels</a> |   <a href="#">Boots</a></dd>
    </dl>
    <!--end accordion panels-->
    </article>
    <footer> <small>© 2013 XYZ Company. All rights reserved. </small> </footer>
    <script>
    //jQuery Accordion Panels//
    (function($) {
      var allPanels = $('.accordion > dd').hide();
      $('.accordion > dt > a').click(function() {
          $this = $(this);
          $target =  $this.parent().next();
          if(!$target.hasClass('active')){
             allPanels.removeClass('active').slideUp();
             $target.addClass('active').slideDown();
        return false;
    })(jQuery);
    </script>
    </body>
    </html>
    ❄  ☃  ❄Nancy O.

  • Spry Menu rendering improperly in Firefox - PLEASE HELP

    Hello:
    I have searched the forums and the web and can't find the
    solution to the following problem.
    I have a vertical spray menu with flyouts (CS3). Works great
    in IE, in Firefox, the flyouts go to the far right of the page.
    They used to be OFF the page, but I fixed that, I just can't figure
    out the final fix.
    Can someone please help? TIA!
    URL:
    http://www.yourhonor.com
    Code for Menu bar:
    @charset "UTF-8";
    /* SpryMenuBarVertical.css - Revision: Spry Preview Release
    1.4 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights
    reserved. */
    LAYOUT INFORMATION: describes box model, positioning, z-order
    /* The outermost container of the Menu Bar, a fixed width box
    with no margin or padding */
    ul.MenuBarVertical
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 85%;
    cursor: default;
    width: 130px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
    font-weight: bold;
    /* Set the active Menu Bar with this class, currently setting
    z-index to accomodate IE rendering bug:
    http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html
    ul.MenuBarActive
    z-index: 1000;
    background-image: url(../images/Images/ButtonMaroon.png);
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarVertical ul li
    width: 130px;
    /* Submenus should appear slightly overlapping to the right
    (95%) and up (-5%) with a higher z-index, but they are initially
    off the left side of the screen (-1000em) */
    ul.MenuBarVertical ul
    margin: -5% 0 0 95%;
    padding: 0;
    list-style-type: none;
    font-size: 85%;
    position: absolute;
    z-index: 1020;
    cursor: default;
    width: 130px;
    font-family: Arial, Helvetica, sans-serif;
    left: -1000em;
    /* Submenu that is showing with class designation
    MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen
    ul.MenuBarVertical ul.MenuBarSubmenuVisible
    left: 0;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Outermost menu container has borders on all sides */
    ul.MenuBarVertical
    border: 1px solid #CCC;
    /* Submenu containers have borders on all sides */
    ul.MenuBarVertical ul
    border: 1px solid #CCC;
    /* Menu items are a light gray block with padding and no text
    decoration */
    ul.MenuBarVertical a
    display: block;
    cursor: pointer;
    padding: 0.5em 0.5em;
    color: #000000;
    text-decoration: none;
    background-image: url(../images/ButtonGold.png);
    /* Menu items that have mouse over or focus have a blue
    background and white text */
    ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus
    color: #663300;
    background-image: url(../images/ButtonBronze.png);
    /* Menu items that are open with submenus are set to
    MenuBarItemHover with a blue background and white text */
    ul.MenuBarVertical a.MenuBarItemHover, ul.MenuBarVertical
    a.MenuBarItemSubmenuHover, ul.MenuBarVertical
    a.MenuBarSubmenuVisible
    color: #660000;
    SUBMENU INDICATION: styles if there is a submenu under a
    given menu item
    /* Menu items that have a submenu have the class designation
    MenuBarItemSubmenu and are set to use a background image positioned
    on the far left (95%) and centered vertically (50%) */
    ul.MenuBarVertical a.MenuBarItemSubmenu
    background-image: url(../images/ButtonGold.png);
    background-repeat: repeat-y;
    background-position: 95% 50%;
    /* Menu items that are open with submenus have the class
    designation MenuBarItemSubmenuHover and are set to use a "hover"
    background image positioned on the far left (95%) and centered
    vertically (50%) */
    ul.MenuBarVertical a.MenuBarItemSubmenuHover
    background-image: url(../images/ButtonBronze.png);
    background-repeat: repeat-y;
    background-position: 95% 50%;
    BROWSER HACKS: the hacks below should not be changed unless
    you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form
    controls, we underlay each submenu with an iframe */
    ul.MenuBarVertical iframe
    position: absolute;
    z-index: 1010;
    /* HACK FOR IE: to stabilize appearance of menu items; the
    slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
    ul.MenuBarVertical li.MenuBarItemIE
    f\loat: left;
    display: inline;
    width: 130px;

    Hi,
    You have made too many changes to the original stylesheet.
    Please have a look at my remarks here.
    I hope this helps.
    Ben

  • Please help... I've come full circle

    Hello Everyone
    I've made a mountain out of a mole hill with this navigation bar.
    This is what I am trying to achieve
    fig 1
    I want the main level nav to consist of 4 different custom buttons with out any spacing or padding or margins. the nav bar is is a FLUID  layout.
    The image below was created in Fireworks and then I ran into so many problems with it I wanted to go back to a Spry menu set up
    fig 2
    fig 3
    I was able to get those images set up with the parameters I needed before I went off the deep end with the sub menu items and then everything fell apart and I messed up my CSS style .You can see the mess in the sub menu items
    This is the style sheet for fig 3
      @charset "UTF-8";
    /* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */ fig 3
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    LAYOUT INFORMATION: describes box model, positioning, z-order
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
        margin: 0;
        list-style-type: none;
        font-size: 100%;
        cursor: default;
        width: auto;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
        z-index: 1000;
        padding: 0px;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
        margin: 0;
        list-style-type: none;
        position: relative;
        text-align: left;
        cursor: pointer;
        width: auto;
        float: left;
        padding: 0;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        z-index: 1020;
        cursor: default;
        width: 180px;
        position: absolute;
        left: -1000em;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
        left: auto;
        padding: 0px;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
        width: 180px;
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
        position: absolute;
        margin-top: -5%;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 95%;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
        left: auto;
        top: 0;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Submenu containers have borders on all sides */
    ul.MenuBarHorizontal ul
        border: 1px solid #CCC;
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
        display: block;
        cursor: pointer;
        background-color: #000;
        color: #FFF;
        text-decoration: none;
        font-family: Arial, Helvetica, sans-serif;
        height: auto;
        padding-top: 0.5em;
        padding-right: 0.75em;
        padding-bottom: 0.5em;
        padding-left: 0.75em;
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
        background-color: #FF0000;
        color: #FFF;
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
        background-color: #6a2726;
        color: #FFF;
        padding: 0px;
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
        background-image: url(file:///C|/Users/blairp/Desktop/SpryAssets/SpryMenuBarDown.gif);
        background-repeat: no-repeat;
        background-position: 95% 50%;
        padding: 0px;
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
        background-image: url(file:///C|/Users/blairp/Desktop/SpryAssets/SpryMenuBarRight.gif);
        background-repeat: no-repeat;
        background-position: 95% 50%;
        padding: 0px;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
        background-image: url(file:///C|/Users/blairp/Desktop/SpryAssets/SpryMenuBarDownHover.gif);
        background-repeat: no-repeat;
        background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
        background-image: url(file:///C|/Users/blairp/Desktop/SpryAssets/SpryMenuBarRightHover.gif);
        background-repeat: no-repeat;
        background-position: 95% 50%;
        background-color: #F00;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
        position: absolute;
        z-index: 1010;
        filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
        ul.MenuBarHorizontal li.MenuBarItemIE
            display: inline;
            f\loat: left;
            background: #FFF;
    The sub menus on this went completely wonky on me and I can't seem to figure out how to fix them.I've gone back through my css styles sheets to try and recreate it but to no avail.
    So I've loaded a clean Spry menu css file and I've got to this point
    fig 4.
    this is the style sheet for fig 4
    @charset "UTF-8";
    /* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    LAYOUT INFORMATION: describes box model, positioning, z-order
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        cursor: default;
        width: auto;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
        z-index: 1000;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        position: relative;
        text-align: left;
        cursor: pointer;
        width: auto;
        float: left;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        z-index: 1020;
        cursor: default;
        width: 180px;
        position: absolute;
        left: -1000em;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
        left: auto;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
        width: 200px;
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
        position: absolute;
        margin: -5% 0 0 95%;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
        left: auto;
        top: 0;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Submenu containers have borders on all sides */
    ul.MenuBarHorizontal ul
        border: 1px solid #CCC;
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
        display: block;
        cursor: pointer;
        background-color: #000;
        padding: 0.5em 0.75em;
        color: #FFF;
        text-decoration: none;
        font-family: Arial, Helvetica, sans-serif;
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
        background-color: #FF0000;
        color: #FFF;
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
        background-color: #6a2726;
        color: #FFF;
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
        background-image: url(SpryMenuBarDown.gif);
        background-repeat: no-repeat;
        background-position: 95% 50%;
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
        background-image: url(SpryMenuBarRight.gif);
        background-repeat: no-repeat;
        background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
        background-image: url(SpryMenuBarDownHover.gif);
        background-repeat: no-repeat;
        background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
        background-image: url(SpryMenuBarRightHover.gif);
        background-repeat: no-repeat;
        background-position: 95% 50%;
        background-color: #F00;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
        position: absolute;
        z-index: 1010;
        filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
        ul.MenuBarHorizontal li.MenuBarItemIE
            display: inline;
            f\loat: left;
            background: #FFF;
    I do not want the black borders/padding around the main button and they need to line up flush to each other. At this point all  I need to do is get that to work.
    Can anyone please help me?

    The following is a quick mockup of what you are looking for.
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Menu Bar Example</title>
    <link href="http://labs.adobe.com/technologies/spry/widgets/menubar/SpryMenuBarHorizontal.css" rel="stylesheet">
    <style>
         padding: 0;
         margin: 0;
    body {
         width: 960px;
         margin: auto;
    #nav {
         height: 71px;
         background: url(http://www.southlandtrailers.com/images/NMNAVBAR/tile.jpg) repeat-x;
    ul.MenuBarHorizontal li {
         width: 150px;
    ul.MenuBarHorizontal li#home {
         /*width: 250px;*/ /* This should be adjusted once the images have been unified */
         margin-right: 100px; /* temporary addition */
    ul.MenuBarHorizontal a {
         padding: 1.65em 0.75em;
         color: transparent;
    ul.MenuBarHorizontal #home a {
         background: url(http://www.southlandtrailers.com/Final%20Nav%20Files/F_navbar/F_NAVBAR_r1_c2.jpg) no-repeat;
    ul.MenuBarHorizontal #trailers a {
         background: url(http://www.southlandtrailers.com/Final%20Nav%20Files/F_navbar/F_NAVBAR_r1_c4.jpg) no-repeat;
    ul.MenuBarHorizontal #renn a {
         background: url(http://www.southlandtrailers.com/Final%20Nav%20Files/F_navbar/F_NAVBAR_r1_c6.jpg) no-repeat;
    ul.MenuBarHorizontal #royal a {
         background: url(http://www.southlandtrailers.com/Final%20Nav%20Files/F_navbar/F_NAVBAR_r1_c8.jpg) no-repeat;
    ul.MenuBarHorizontal #home ul li a, ul.MenuBarHorizontal #trailers ul li a, ul.MenuBarHorizontal #renn ul li a, ul.MenuBarHorizontal #royal ul li a {
         padding: 0.5em 0.75em;
         background: #EEE;
         color: #333;
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus, ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible {
         color: transparent;
    </style>
    </head>
    <body>
    <div id="nav">
      <ul id="MenuBar1" class="MenuBarHorizontal">
        <li id="home"><a class="MenuBarItemSubmenu" href="#">Home</a>
          <ul>
            <li><a href="#">Item 1.1</a></li>
            <li><a href="#">Item 1.2</a></li>
            <li><a href="#">Item 1.3</a></li>
          </ul>
        </li>
        <li id="trailers"><a href="#">Trailers</a></li>
        <li id="renn"><a class="MenuBarItemSubmenu" href="#">Renn</a>
          <ul>
            <li><a class="MenuBarItemSubmenu" href="#">Item 3.1</a>
              <ul>
                <li><a href="#">Item 3.1.1</a></li>
                <li><a href="#">Item 3.1.2</a></li>
              </ul>
            </li>
            <li><a href="#">Item 3.2</a></li>
            <li><a href="#">Item 3.3</a></li>
          </ul>
        </li>
        <li id="royal"><a href="#">Royal</a></li>
      </ul>
    </div>
    <script src="http://labs.adobe.com/technologies/spry/includes_minified/SpryMenuBar.js"></script>
    <script>var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1");</script>
    </body>
    </html>
    You will notice that I have not got the complete image for the first manu item. I suggest that you do that by combining the three images into one. Also it is advisable to make the images a GIF or better still a PNG file so that you can will have a transparent background rather that the background of the menu bar. This will allow the menu bar background to continue instead of being interupted by the button image.
    If you have any more problems, please come back here.
    Gramps

  • Please help me to avoid this Exception.

    I have a JTextField which will accept only non-negative integer. To get the Document roll_doc for the constructor of JTextField
    I have a class maxLengthText which will make sure that the JTextfield accepts only non-negative integer.
    I have a problem while resetting the content of the JTextField. As I have made sure that only integers are allowed in my text field.
    So while using setText(" "). The code executes the exception in my actionListener. I don't want this exceptuion to get executed when I reset the content of my JTextField using setText(String).
    Please help. Suggest any workaround for this. Thanks in advance
    The code is as follows:
    package marksheet;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.BorderFactory;
    import javax.swing.*;
    import javax.swing.text.*;
    public class SpringApplet1 extends JApplet implements ActionListener {
         JLabel l_instruction1;
         JLabel l_instruction2;
         JLabel l_instruction3;
         JLabel l_instruction4;
         JLabel l_instruction5;
         JLabel l_instruction6;
         JLabel l_instruction7;
         JLabel l_instruction8;
         JLabel l_space;
         JLabel label1;
         JLabel label2;
         JLabel label3;
         JLabel label4;
         JTextField text1;
         JTextField text2;
         JTextField text3;
         JTextField text4;
         JLabel l_name;
         JLabel l_fname;     
         JLabel l_course;
         JLabel l_specialization;
         JLabel l_batch;
         JLabel l_semester;
         JLabel l_rollno;
         JLabel l_enrolno;
         JTextField t_name;
         JTextField t_fname;
         JTextField t_rollno;
         JTextField t_enrollno;
         JComboBox cb_course;
         JComboBox cb_branch;
         JComboBox cb_batch;
         JComboBox cb_semester;
         JCheckBox c_parttime;
         JCheckBox c_fulltime;
         JButton Submit;
         JButton enterMarks;
         JButton reset;
         JTextField txtInt;
         JPanel p;
         JPanel p1;
         JPanel p2;
         JPanel p3;
         public void init () {
         l_space = new JLabel(" ");
         Document roll_doc = new maxLengthText(5); // set maximum length to 5
         Document enroll_doc = new maxLengthText(6); // set maximum length to 6
         t_rollno= new JTextField(roll_doc, "", 6);
         t_enrollno= new JTextField(enroll_doc, "", 7);
         Document name_doc = new maxLengthAlpha(15); // set maximum length to 15
         t_name = new JTextField(name_doc, "", 7);
         l_instruction1 = new JLabel("All names should be alphabets",JLabel.LEFT);
         l_instruction1.setForeground(Color.blue);
         l_instruction1.setVisible(false);
         l_instruction1.setVisible(true);
         l_instruction2 = new JLabel("Name can not be greater than 15 characters",JLabel.LEFT);
         l_instruction2.setForeground(Color.blue);
         l_instruction2.setVisible(false);
         l_instruction2.setVisible(true);
         l_instruction3 = new JLabel("Seperate firstname and last name with a 'space'",JLabel.LEFT);
         l_instruction3.setForeground(Color.blue);
         l_instruction3.setVisible(false);
         l_instruction3.setVisible(true);
         l_instruction4 = new JLabel("All marks are out of 100, Marks obtained are non-negative integers",JLabel.LEFT);
         l_instruction4.setForeground(Color.blue);
         l_instruction4.setVisible(false);
         l_instruction4.setVisible(true);
         l_instruction8 = new JLabel("Marks obtained can not be greater than 100 ",JLabel.LEFT);
         l_instruction8.setForeground(Color.blue);
         l_instruction8.setVisible(false);
         l_instruction8.setVisible(true);
         l_instruction5 = new JLabel("Roll number should be of length 5 and only numeric",JLabel.LEFT);
         l_instruction5.setForeground(Color.blue);
         l_instruction5.setVisible(false);
         l_instruction5.setVisible(true);
         l_instruction6 = new JLabel("Enrolment number should be of length 6 and only numeric",JLabel.LEFT);
         l_instruction6.setForeground(Color.blue);
         l_instruction6.setVisible(false);
         l_instruction6.setVisible(true);
         l_instruction7 = new JLabel("All fields are Mandatory",JLabel.LEFT);
         l_instruction7.setForeground(Color.blue);
         l_instruction7.setVisible(false);
         l_instruction7.setVisible(true);
         l_name = new JLabel("Name",JLabel.LEFT);
         l_name.setForeground(Color.blue);
         l_fname = new JLabel("Father's Name",JLabel.LEFT);
         l_fname.setForeground(Color.blue);
         l_course = new JLabel("Course",JLabel.LEFT);
         l_course.setForeground(Color.blue);
         l_specialization = new JLabel("Specialization",JLabel.LEFT);
         l_specialization.setForeground(Color.blue);
         l_batch = new JLabel("Batch",JLabel.LEFT);
         l_batch.setForeground(Color.blue);
         l_semester = new JLabel("Semester",JLabel.LEFT);
         l_semester.setForeground(Color.blue);
         l_rollno = new JLabel("Roll Number",JLabel.LEFT);
         l_rollno.setForeground(Color.blue);
         l_enrolno = new JLabel("Enrolment Number",JLabel.LEFT);
         l_enrolno.setForeground(Color.blue);
         //t_name = new JTextField(20);
         t_name.setEditable(true);
    //     t_name.setBackground(Color.YELLOW);
         t_fname = new JTextField(20);
         t_fname.setEditable(true);
    //     t_fname.setBackground(Color.YELLOW);
         //t_rollno = new JTextField(20);
         t_rollno.setEditable(true);
    //     t_rollno.setBackground(Color.YELLOW);
         //t_enrollno = new JTextField(20);
         t_enrollno.setEditable(true);
    //     t_enrollno.setBackground(Color.YELLOW);
         label1 = new JLabel("Data Structures",JLabel.LEFT);
         label1.setForeground(Color.blue);
         label1.setVisible(true);
         label2 = new JLabel("Compiler Design",JLabel.LEFT);
         label2.setForeground(Color.blue);
         label2.setVisible(true);
         label3 = new JLabel("Numerical Analysis",JLabel.LEFT);
         label3.setForeground(Color.blue);
         label3.setVisible(true);
         label4 = new JLabel("Discrete Matehmatics",JLabel.LEFT);
         label4.setForeground(Color.blue);
         label4.setVisible(true);
         text1 = new JTextField(20);
         text1.setEditable(false);
    //     text1.setBackground(Color.green);
         text1.setVisible(true);
         text2 = new JTextField(20);
         text2.setEditable(false);
    //     text2.setBackground(Color.green);
         text2.setVisible(true);
         text3 = new JTextField(20);
         text3.setEditable(false);
    //     text3.setBackground(Color.green);
         text3.setVisible(true);
         text4 = new JTextField(20);
         text4.setEditable(false);
    //     text4.setBackground(Color.green);
         text4.setVisible(true);
         String a_course[] =
              {" ","BE","MCA"};
         String a_branch[] =
              {" ","Computer Science","Electronics"};
         String a_batch[] =
              {" ","2000-2001","2001-2002","2002-2003","2003-2004","2004-2005"};
         String a_semester[] =
              {" ","I","II","III","IV","V","VI","VII","VIII"};
         cb_course = new JComboBox(a_course);
         cb_branch = new JComboBox(a_branch);
         cb_batch = new JComboBox(a_batch);
         cb_semester = new JComboBox(a_semester);
         c_parttime = new JCheckBox("Part Time");
         c_fulltime = new JCheckBox("Full Time");
         Submit = new JButton ("Generate Marksheet");
         Submit.setVisible(true);
    //     Submit.addActionListener(this);
         enterMarks = new JButton ("Enter Marks");
         enterMarks.setVisible(true);
    // enterMarks.addActionListener(this);
         reset= new JButton ("Reset");
         reset.setVisible(true);
    //reset.addActionListener(this);
         p = new JPanel(new GridLayout(5,2,2,2));
    p.setBorder(BorderFactory.createTitledBorder("Student Details"));
         p.add(l_name);
         p.add(t_name);
    p.add(l_fname);
         p.add(t_fname);
    p.add(l_rollno);
         p.add(t_rollno);
    p.add(l_enrolno);
         p.add(t_enrollno);
         p.add(l_space);
         p.add(l_space);
         p1 = new JPanel(new GridLayout(0,2,2,2));
         p1.setBorder(BorderFactory.createTitledBorder("Course Details"));
         p1.add(l_course);
         p1.add(cb_course);
         p1.add(l_specialization);
         p1.add(cb_branch);
         p1.add(l_batch);
         p1.add(cb_batch);
         p1.add(l_semester);
         p1.add(cb_semester);
         p1.add(c_parttime);
         p1.add(c_fulltime);
         p1.add(reset);
         p1.add(enterMarks);
         p2 = new JPanel(new GridLayout(0,2,2,2));
         p2.setBorder(BorderFactory.createTitledBorder("Marks Details"));
         p2.add(label1);
         p2.add(text1);
         p2.add(label2);
         p2.add(text2);
         p2.add(label3);
         p2.add(text3);
         p2.add(label4);
         p2.add(text4);
         p2.add(Submit);
         p2.setVisible(true);
         p3 = new JPanel(new GridLayout(0,1,2,2));
         p3.setBorder(BorderFactory.createTitledBorder("Instructions"));
         p3.add(l_instruction1);
         p3.add(l_instruction2);
         p3.add(l_instruction3);
         p3.add(l_instruction4);
         p3.add(l_instruction8);
         p3.add(l_instruction5);
         p3.add(l_instruction6);
         p3.add(l_instruction7);
         JFrame f = new JFrame("Student Marksheet System");
    f.getContentPane().setLayout(new GridLayout(2,2,3,3));
    f.getContentPane().add(p3);
         f.getContentPane().add(p);
    f.getContentPane().add(p1);
         f.getContentPane().add(p2);
         enterMarks.addActionListener(new ActionListener()
              public void actionPerformed(ActionEvent e)
                   String message = "Are you sure all information is correct";
                   String get_text1;
                   String title = "Confirmation";
                   int getcourseindex;
                   int getbranchindex;
                   int getsemesterindex;
                   int getbatchindex;
                   getcourseindex = cb_course.getSelectedIndex();
                   getbranchindex = cb_branch.getSelectedIndex();
                   getsemesterindex = cb_semester.getSelectedIndex();
                   getbatchindex = cb_branch.getSelectedIndex();
                   if (c_fulltime.isSelected() == false && c_parttime.isSelected() == false)
                        JOptionPane.showMessageDialog(null,"Atleast one mandatory field is missing","TextField",1);
                             return;
                   if(getcourseindex == 0)
                             JOptionPane.showMessageDialog(null,"Atleast one mandatory field is missing","TextField",1);
                             return;
                   if(getbranchindex == 0)
                             JOptionPane.showMessageDialog(null,"Atleast one mandatory field is missing","TextField",1);
                             return;
                   if(getsemesterindex == 0)
                             JOptionPane.showMessageDialog(null,"Atleast one mandatory field is missing","TextField",1);
                             return;
                   if(getbatchindex == 0)
                             JOptionPane.showMessageDialog(null,"Atleast one mandatory field is missing","TextField",1);
                             return;
                   int n = JOptionPane.showConfirmDialog(null,message,title, JOptionPane.YES_NO_OPTION);
                   if(n==0)
                        get_text1 = t_name.getText();
                        t_name.setEditable(false);
                        t_fname.setEditable(false);
                        t_rollno.setEditable(false);
                        t_enrollno.setEditable(false);     
                        cb_course.setEnabled(false);     
                        cb_branch.setEnabled(false);     
                        cb_batch.setEnabled(false);     
                        cb_semester.setEnabled(false);
                        reset.setEnabled(false);
         reset.addActionListener(new ActionListener()
              public void actionPerformed(ActionEvent e)
                   String message = "Are you sure to reset the fields";
                   String title = "Confirmation";
                   int n = JOptionPane.showConfirmDialog(null,message,title, JOptionPane.YES_NO_OPTION);
                   if(n==0)
                        Submit.setEnabled(true);
                        cb_course.setSelectedIndex(0);
                        cb_branch.setSelectedIndex(0);
                        cb_batch.setSelectedIndex(0);
                        cb_semester.setSelectedIndex(0);
                        t_rollno.setText("");
         Submit.addActionListener(new ActionListener()
              public void actionPerformed(ActionEvent e)
                   String message = "Confirmation will generate the marksheet";
                   String title = "Confirmation";
                   int n = JOptionPane.showConfirmDialog(null,message,title, JOptionPane.YES_NO_OPTION);
                   if(n==0)
                        Submit.setEnabled(true);
         c_parttime.addActionListener(new ActionListener()
              public void actionPerformed(ActionEvent e)
                   if (c_fulltime.isSelected() == true)
                        c_fulltime.setSelected(false);
         c_fulltime.addActionListener(new ActionListener()
              public void actionPerformed(ActionEvent e)
                   if (c_parttime.isSelected() == true)
                        c_parttime.setSelected(false);
    f.pack();
    f.setVisible(true);
         public void paint(Graphics g) {
         //Draw a Rectangle around the applet's display area.
    g.drawRect(0, 0, size().width - 1, size().height - 1);
         public void actionPerformed(ActionEvent event){
         package marksheet;
         import javax.swing.*;
         import javax.swing.text.*;
         import java.awt.*;
         public class maxLengthText extends PlainDocument
              int maxVal=0;
              public maxLengthText(int maxLength)
                   maxVal = maxLength;
              publ1ic void insertString(int offset, String str, AttributeSet a) throws BadLocationException
                   if (getLength() + str.length() > maxVal)
                        return;
                   else
                        try
                             if(!Double.isNaN(Double.parseDouble(str)))
                                  super.insertString(offset, str, a);
                        catch(Exception e)
                             JOptionPane.showMessageDialog(null,"Numbers Only","TextField",1);
                             offset=0;
         }

    When you post code, please use the [co[i]de][co[i]de] tags. There is a code button above the message textfield.

  • Please Help.JTable insert styled text

    Hi all java guru,
    on post http://forum.java.sun.com/thread.jsp?forum=57&thread=485469 i've depicted my scenario in which i have a JTable where i want to add styled text.
    i've implemented a CustomTableModel that maintains information about text style, in such way that when renderer cell, i can rebuild exact text with its style....same method is adopted for CellEditor.
    It is possible to have more than one JTable in my application....then to correctly handle all JTables ' put them in a vector and during editing and rendering i find current focusable/selected JTable and edit/render it.
    Clearly i maintain information about style of text when i insert it, that is when i insert text, i update my CustomTableModel...same thing must be done when i delete text from JTable...that is, i must update CustomTableModel too in this case.
    Because my CellEditor is a JEditorPane component (extend it) i've registered document associated to it to a DocumentListener that notify every time that a remove operation is happens.
    What is the problem now???problem is that when i finish to edit a cell and click on another cell i've got a removeUpdate(DocumenEvent e) event, and i can't distinguish it.....it seems a real remove event....
    In this case(when i change cell) the code that is executes returns wrong result and invalidate all the rest.
    I think error is where i register celleditor , now i do it in CustomCellRenderer class that extend JEditorPane and implements TableCellRenderer.
    Please help me...this is a great trouble that invalidate all my work :(
    Any new idea is welcome.
    regards,
    anti-shock

    Hi stanislav, of course i can...you're a myth :)
    public class CustomCellEditor extends AbstractCellEditor implements TableCellEditor {
           CellEditor cellArea;
         JTable table;
         public CustomCellEditor(JTable ta) {
              super();
              table = ta;
              // this component relies on having this renderer for the String class
              MultiLineCellRenderer renderer = new MultiLineCellRenderer();
              table.setDefaultRenderer(String.class,renderer);
         public Object getCellEditorValue() {
              return cellArea.getText();
         public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected,     int row, int column) {
              int start = 0;
              int end = 0;
                                               // Get current selected table
              TableEditor tb = (TableEditor) TableEditor.getSelectedTable();
              TableModel model = (TableModel) tb.getModel();
              Vector fontInfo = model.getFontFor(row,column);
              CellEditor cellArea = (CellEditor) ((CustomCellEditor)tb.getCellEditor (row,column)).getCellEditor();
              Document doc = cellArea.getDocument();
              String content = tb.getValueAt(row,column).toString();     
              if (doc!=null && fontInfo.size()>0 && !content.equals("")) {
                                                     // This method reads from model and get right style info
                                                     // for current text, and restore them
                                                     restoreFontWithAttributes(doc,fontInfo,content);
              else
                   cellArea.setText(tb.getValueAt(row,column).toString());
              cellArea.rowEditing = row;
              cellArea.columnEditing = column;
              cellArea.lastPreferredHeight = cellArea.getPreferredSize().height;
              return cellArea;
          * @return
         public CellEditor getCellEditor() {
              return cellArea;
         public class CellEditor extends JEditorPane {
              private CellStyledEditorKit k;
              public CellEditor() {
                    super("text/plain","");
                    k = new CellStyledEditorKit();
                    setEditorKit(k);
                    // I tried to add document here, but i have had wrong behavior
                   doc = new DocumentListener() {
                   public void removeUpdate(DocumentEvent e) {
                      // Get current selected table
                      TableEditor tb = (TableEditor) TableEditor.getSelectedTable();
                      TableModel model = (TableModel) tb.getModel();
                      model.updateFontInfo();
                   getDocument().addDocumentListener(doc);
    }Ok, stan...this is my CustomCellRenderer class....as i have already said, i have some style text info mainteined by CustomTableModel associated with JTable.
    I update CustomTableModel every time that an insert and remove operation happens.
    If i add a DocumentListener to CellEditor (that rapresents editor cell of my table) happens that, if i remove some character from an editing cell, i got a removeUpdate event.....and this is right!!! But if i change cell (e.g. supposing editing cell(1,1), click on cell(2,1) then stop edit cell(1,1) and start edit cell(2,1)) i got a removeUpdate event, that I don't wait for to me..
    Look at this:
    empty cell | some text
    cell 0 ------- cell1
    supposing you're in cell1 and you have finished to insert "some text".Then click on cell0, that is empty....then document associated with CellArea(extend JEditorPane) before of the click on cell0 had some text, but after click have no text, then for it a removeUpdate is happens.....and is that one i got..
    it's as if an unique document is associated to all cells, while should be one document for each cell (i hope this is right).
    Clearly, i've same code for renderer, in such way that i can restore style of text on rendering.
    Hope is clear....if U have any idea or suggestion please give to me.
    Tnx a lot Stanislav..
    regards,
    anti-shock

  • Problem in comparision of two strings.please help..

    I am retriving a string password from database and another string from html(user entered one).when i am printing those two strings its printing same strings.But whenever i am comparing strings and printing its not showing equal it is printing as false.what might be the reason.please help me regarding this.Thank you in advance.My cosing is as follows:
    while(rs.next())
    pwd=rs.getString("password");
    System.out.println("pmfg is..."+pwd);
    System.out.println("first string..."+pwd);
    System.out.println("second string..."+loginpwd);
    if(pwd.equals(loginpwd))
    System.out.println("true.....");
    else
    System.out.println("false....");

    once you got two string objects ......forget for where they are comming (database or html0 ....focus on those objects ....do the following
    1) use trim() function on both strings which removes the whitespaces from front and end
    2) use equalsIgnoreCase
    if the problem still persists ....then forget your code and sue the SUN people

Maybe you are looking for

  • Ram compatibility for White Macbook 2006

    Want to upgrade RAM and note Apple specs say RAM Type: PC2-5300 SO-DIMM 200 pin Someone local to me is selling the following 2007 Two x 1 GB PC2-5300 S)-CIMM/CL5 laptop ram # Memory Type: DDR2 667 SDRAM (MicroDIMM) # Capacity: 1GB # Bus Speed: 667MHz

  • How can I change the country setting of my account? I don't live in the US and cannot change this!

    could somebody provide me with practical information or assist me in doing this? I have checked all online information but nothing is helpful unfortunately.

  • Upgrade to 11g - DBUA can't retrieve the version

    Hello, I'm upgrading 10.2.0.4 version to 11.2.0.2 and I have problem at the beginning. Immediately after the start of DBUA in the I get the error, that the version of the database can' be retrieved. Somewhere in the logs I have found: connect /******

  • Powerbook or iBook?

    I will be getting a laptop soon and I need to know whether to get a 14 in iBook or a 15.4 in Powerbook (or MacBookPro). I will be -typing papers and make Pages documents -making Keynote presentations -surfing the internet/using email -organizing by 2

  • Cost of iMac HD Replacement

    I think my HD is fried. I do not have apple care, does anyone know the cost of new HD and labor at the Apple store/Genius bar?