Usage of keyword static at different places in a Java Class File

Hi i am Raj,
i just wanted to know where all i can use keyword "static" and what does tht usage mean?
For example,
what do you mean when you declare a class static,
what do you mean when you declare a method static,
what do you mean when you declare a variable static.
could anyone comeup with clear explanation on the above, and it would be great if any links are provided which has some readup on this thing.
Thank you,
Raj.

BINU_KOLATHU wrote:
• Java does not allow global variables. The closest thing we can get to a global variable
in Java is to make the instance variable in the class static.
• The effect of doing this is that when we create multiple objects of that class, every object
shares the same instance variable that was declared to be static.
• To make an instance variable static we simply precede the declaration with the static
keyword :
e.g. public static int anInstanceVar = 0;
• In effect what we are really doing is saying that this instance variable, no matter how
many objects are created should always reside in the same memory location regardless
of the object. This then simulates a “global variable” of sorts.
• We usually make a variable declared to be final, static as well since it makes sense to only
have the one instance of a constant.
• Note, some people refer to static instance variables as “class variables”.Please stop resurrecting ancient threads

Similar Messages

  • Where to place an xml file that is read by  java class file  dir structure

    Hello all,
    I have an xml file that I am using in lieu of a database to track conference rooms . This is a small file. I need to read this file from my java class file which is used by a jsp. Currently I have an absolute path C://logger/conference.xml. All works fine but I need to deploy to a different machine soon and so I need to place this file somewhere in the project directory structure (created by netbeans) so that it will be included in the war file and can be read by the java class file.
    Also what would be the relative path to this suggested directory.
    TIA!!!

    public class DOMconference {
        /** Creates a new instance of DOMconference */
        public DOMconference() { }
        //private final static String XML_FILE_NAME = "/opt/conference.xml";//set the output file and location
        public String XML_FILE_NAME = "";
        private final static String FIRST_CONF_ID = "8200";//set the initial conference number
        static Document document;
        public void getFilePath(String path)
            XML_FILE_NAME = path.replaceAll("\\\\","/");
            System.out.println("XML==============="+XML_FILE_NAME);
        File file = new File(XML_FILE_NAME);
        *generic method that returns a Document object
       public Document getDocument() throws SAXException, ParserConfigurationException,
               IOException
           DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
           factory.setIgnoringComments(true);
           factory.setCoalescing(true);
           factory.setNamespaceAware(false);
           factory.setValidating(false);
           DocumentBuilder builder = factory.newDocumentBuilder();
           document = builder.parse(file);   //HERE IS WHERE THE ERROR POINT S TO
           return document;
       }Here is the complete error:
    INFO: Server startup in 1282 ms
    XML===============C:/Documents and Settings/gforte/agi/build/web/WEB-INF/conference.xml
    [Fatal Error] bin:1:1: Content is not allowed in prolog.
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:264)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
    at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:172)
    at agi.DOMconference.getDocument(DOMconference.java:91)
    at agi.DOMconference.getLdapConferences(DOMconference.java:466)
    at agi.Ldap.getConferences(Ldap.java:243)
    at org.apache.jsp.test_jsp._jspService(test_jsp.java:111)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:595)
    [Fatal Error] bin:1:1: Content is not allowed in prolog.
    NotifyUtil::java.net.SocketException: Software caused connection abort: recv failed
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:129)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
    at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:606)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:554)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:571)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:936)
    at org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(NotifyUtil.java:248)
    So if I change my code to this (note that all I change is how the constant XML_FILE_NAME is set and I copy and paste the path that is derived from getFilePath after the String.replaceAll call.):
    public class DOMconference {
        /** Creates a new instance of DOMconference */
        public DOMconference() { }
        private final static String XML_FILE_NAME = "C:/Documents and Settings/gforte/agi/build/web/WEB-INF/conference.xml";//set the output file and location
        //public String XML_FILE_NAME = "";
        private final static String FIRST_CONF_ID = "8200";//set the initial conference number
        static Document document;
        public void getFilePath(String path)
            //XML_FILE_NAME = path;//.replaceAll("\\\\","/");
            System.out.println("XML==============="+XML_FILE_NAME);
        File file = new File(XML_FILE_NAME);
        *generic method that returns a Document object
       public Document getDocument() throws SAXException, ParserConfigurationException,
               IOException
           DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
           factory.setIgnoringComments(true);
           factory.setCoalescing(true);
           factory.setNamespaceAware(false);
           factory.setValidating(false);
           DocumentBuilder builder = factory.newDocumentBuilder();
           document = builder.parse(file);
           return document;
       }All is fine..
    Just in case, here is my xml file contents copy and paste from notepad.
    <?xml version="1.0"?><conf_rooms><conf_room><conf_id>8200</conf_id><conf_name>Conference room 1</conf_name></conf_room><conf_room><conf_id>8201</conf_id><conf_name>Conference Room 2</conf_name></conf_room><conf_room><conf_id>8202</conf_id><conf_name>dufus</conf_name></conf_room></conf_rooms>Thanks for hanging in there with me on this.
    Graham

  • Having Problem With "static" When Running a Stand Alone Java Class

    I have a Java class that recursively builds a 'tree' . This Java class works as I expected without problem. I am able to write out this 'tree" to the console "line by line" with proper indentation.
    The problem occurs when I try to iterate through this 'tree' in the public static void main(String[] arg) method -- Each line in the tree is an Array. And I have to declare this Array (called titleArray in my code) non-static; otherwise, I end up with picking up the very last line of my hard-coded data.
    Besides, I also have to declare the List (called recursiveTextArray in my code) non-static; otherwise, I end up with picking up the first Array that I ever build and run into endless iterations till the heap size is exhausted. Note that each element of that List is an Array object.
    Then, this non-static Array and this non-static List cannot be accessed in the public static void main(String[] arg) method.
    What should I do?
    Here is my code that works without problem (the one I do not access the 'titleArray' in the main(String[] arg) method):
    import java.util.Iterator;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Date;
    import java.awt.Color;
    import com.aspose.words.*;
    public class OplanPhase
         public static void main( String[] args)
              OplanPhase root = new OplanPhase( "", "Oplan 50XX - Phase I" );
              OplanPhase objective1 = new OplanPhase( "OO-3.1", "Destroy enemy conventional ground forces" );
              OplanPhase objective2 = new OplanPhase( "OO-3.2", "Destroy enemy conventional air forces" );          
              OplanPhase objective3 = new OplanPhase( "OO-3.3", "Destroy enemy conventional naval forces" );
              OplanPhase objective4 = new OplanPhase( "OO-3.4", "Influence opposition groups within enemy areas to support friendly forces" );
              OplanPhase effect1 = new OplanPhase( "TgtObj-3.1", "Locate, identify, and destroy key enemy C2 nodes" );
              OplanPhase effect2 = new OplanPhase( "TgtObj-3.2", "Locate, identify, and destroy key enemy C2 nodes" );          
              OplanPhase effect3 = new OplanPhase( "CFSOCC-3.2", "influence enemy opposition groups to support friendly forces campaign objectives" );
              OplanPhase effect4 = new OplanPhase( "JFMECC-3.3", "Destroy SLOC interdiction vessels" );
              OplanPhase effect5 = new OplanPhase( "CFSOCC-3.4", "Influence enemy opposition groups to support friendly forces campaign objectives" );     
              OplanPhase moe1 = new OplanPhase( "MOE-TO-3.1", "Conduct surveillance to locate and identify key enemy C2 nodes" );
              OplanPhase moe2 = new OplanPhase( "MOE-JFSOC-3.1", "Degree of cooperative effort with area opposition groups" );
              OplanPhase moe3 = new OplanPhase( "MOE-JFSOC-3.2", "Number of combined missions successfully completed with opposition groups" );
              OplanPhase moe4 = new OplanPhase( "MOE-JFSOC-3.3", "Number of combined missions successfully completed with opposition groups" );
              OplanPhase task1 = new OplanPhase( "TASK-TO-3.1", "Destroy key enemy C2 nodes" );
              OplanPhase task2 = new OplanPhase( "TASK-TO-3.2", "Conduct surveillance to locate and identify key enemy C2 nodes" );
              OplanPhase task3 = new OplanPhase( "TASK-TO-3.3", "Destroy key enemy C2 nodes" );
              OplanPhase task4 = new OplanPhase( "TASK-JFSOC-3.1", "Degree of cooperative effort with area opposition groups" );
              root.addSubLevel( objective1 );
              root.addSubLevel( objective2 );
              root.addSubLevel( objective3 );
              root.addSubLevel( objective4 );
              objective1.addSubLevel( effect1 );
              objective2.addSubLevel( effect2 );
              objective2.addSubLevel( effect3 );
              objective3.addSubLevel( effect4 );
              objective4.addSubLevel( effect5 );
              effect1.addSubLevel( moe1 );
              effect1.addSubLevel( task1 );
              effect2.addSubLevel( task2 );
              effect2.addSubLevel( task3 );
              effect3.addSubLevel( moe2 );
              effect3.addSubLevel( moe3 );
              effect5.addSubLevel( task4 );
              effect5.addSubLevel( moe4 );
              root.outputAllWithIndentation( 0 );
         private String[] titleArray = { "", "", "" };
         private int indentation = 0;
         private List<OplanPhase> subLevels = new ArrayList<OplanPhase>();
         private List recursiveTextArray = new ArrayList();
         public OplanPhase( String foo, String bar )
              titleArray[1] = foo;
              titleArray[2] = bar;
         public void addSubLevel( OplanPhase op )
              subLevels.add( op );
         public void outputAllWithIndentation( int level )
              indentation = level;
              titleArray[0] = indentString( indentation );
             System.out.println( titleArray[0] + "[" + titleArray[1] + "] " + titleArray[2] );
             recursiveTextArray.add( titleArray );
              for ( int i = 0; i < subLevels.size(); i++ )
                   ( ( OplanPhase )subLevels.get( i ) ).outputAllWithIndentation( level + 1 );
         private static String indentString( int count )
              String blank = "";
              for ( int i = 0; i < count; i++ )
                   blank = blank.concat( "   " );
              return blank;
    }And the code below gives me the static and non-static problem:
    import java.util.Iterator;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Date;
    import java.awt.Color;
    import com.aspose.words.*;
    public class OplanPhase
         public static void main( String[] args)
              OplanPhase root = new OplanPhase( "", "Oplan 50XX - Phase I" );
              OplanPhase objective1 = new OplanPhase( "OO-3.1", "Destroy enemy conventional ground forces" );
              OplanPhase objective2 = new OplanPhase( "OO-3.2", "Destroy enemy conventional air forces" );          
              OplanPhase objective3 = new OplanPhase( "OO-3.3", "Destroy enemy conventional naval forces" );
              OplanPhase objective4 = new OplanPhase( "OO-3.4", "Influence opposition groups within enemy areas to support friendly forces" );
              OplanPhase effect1 = new OplanPhase( "TgtObj-3.1", "Locate, identify, and destroy key enemy C2 nodes" );
              OplanPhase effect2 = new OplanPhase( "TgtObj-3.2", "Locate, identify, and destroy key enemy C2 nodes" );          
              OplanPhase effect3 = new OplanPhase( "CFSOCC-3.2", "influence enemy opposition groups to support friendly forces campaign objectives" );
              OplanPhase effect4 = new OplanPhase( "JFMECC-3.3", "Destroy SLOC interdiction vessels" );
              OplanPhase effect5 = new OplanPhase( "CFSOCC-3.4", "Influence enemy opposition groups to support friendly forces campaign objectives" );     
              OplanPhase moe1 = new OplanPhase( "MOE-TO-3.1", "Conduct surveillance to locate and identify key enemy C2 nodes" );
              OplanPhase moe2 = new OplanPhase( "MOE-JFSOC-3.1", "Degree of cooperative effort with area opposition groups" );
              OplanPhase moe3 = new OplanPhase( "MOE-JFSOC-3.2", "Number of combined missions successfully completed with opposition groups" );
              OplanPhase moe4 = new OplanPhase( "MOE-JFSOC-3.3", "Number of combined missions successfully completed with opposition groups" );
              OplanPhase task1 = new OplanPhase( "TASK-TO-3.1", "Destroy key enemy C2 nodes" );
              OplanPhase task2 = new OplanPhase( "TASK-TO-3.2", "Conduct surveillance to locate and identify key enemy C2 nodes" );
              OplanPhase task3 = new OplanPhase( "TASK-TO-3.3", "Destroy key enemy C2 nodes" );
              OplanPhase task4 = new OplanPhase( "TASK-JFSOC-3.1", "Degree of cooperative effort with area opposition groups" );
              root.addSubLevel( objective1 );
              root.addSubLevel( objective2 );
              root.addSubLevel( objective3 );
              root.addSubLevel( objective4 );
              objective1.addSubLevel( effect1 );
              objective2.addSubLevel( effect2 );
              objective2.addSubLevel( effect3 );
              objective3.addSubLevel( effect4 );
              objective4.addSubLevel( effect5 );
              effect1.addSubLevel( moe1 );
              effect1.addSubLevel( task1 );
              effect2.addSubLevel( task2 );
              effect2.addSubLevel( task3 );
              effect3.addSubLevel( moe2 );
              effect3.addSubLevel( moe3 );
              effect5.addSubLevel( task4 );
              effect5.addSubLevel( moe4 );
              root.outputAllWithIndentation( 0 );
              try
                  Iterator it = recursiveTextArray.iterator(); //compilation error
                  while ( it.hasNext() )
                       for ( int i=0; i<titleArray.length; i++ ) //compilation error
                            if ( i == 0 )
                                 System.out.println( titleArray[0] ); //compilation error
                            } else if ( i == 1 )
                                 System.out.println( "[" + titleArray[1] + "] " ); //compilation error                             
                            } else if ( i == 2 )
                                 System.out.println( titleArray[2] ); //compilation error
              } catch (Exception e)
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         private String[] titleArray = { "", "", "" };
         private int indentation = 0;
         private List<OplanPhase> subLevels = new ArrayList<OplanPhase>();
         private List recursiveTextArray = new ArrayList();
         public OplanPhase( String foo, String bar )
              titleArray[1] = foo;
              titleArray[2] = bar;
         public void addSubLevel( OplanPhase op )
              subLevels.add( op );
         public void outputAllWithIndentation( int level )
              indentation = level;
              titleArray[0] = indentString( indentation );
             System.out.println( titleArray[0] + "[" + titleArray[1] + "] " + titleArray[2] );
             recursiveTextArray.add( titleArray );
              for ( int i = 0; i < subLevels.size(); i++ )
                   ( ( OplanPhase )subLevels.get( i ) ).outputAllWithIndentation( level + 1 );
         private static String indentString( int count )
              String blank = "";
              for ( int i = 0; i < count; i++ )
                   blank = blank.concat( "   " );
              return blank;
    }

    What should I do?If you feel you need to cross-post, you should have the courtesy to provide a
    link to the other post/s.
    http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=1&t=016129

  • Setting up Lion FaceTime to connect to iPad on same account but in different places

    HI,
    This may seem like a dumb question....I am going away on Tuesday and am taking my iPad2 - we are very familiar with using Facetime on the iPad.  We just got Lion on the iMac and it now has FaceTime, but I have not set it up...I want to use FacTime on the iMac to chat to my family from the iPad while I am away.  Do I need to set up a different FaceTime account on the IMac so that I can connect to it from the iPad2? Or can I call from the iPad to the iMac using the same account...?  i.e. does it recognise that even though its the same account its 2 different devices in 2 different places....
    Hope that makes sense...?
    Thanks

    On his iPad, go to Settings>Messages>Send & Receive, tap the ID, sign out, then sign in with the other ID.   For FaceTime, do the same thing in Settings>FaceTime. 
    If you need to change his iPad to a separate iCloud account go to Settings>iCloud, scroll to the bottom and tap Delete Account.  (This will only delete the account from his iPad, not from iCloud.  Your iPad will not be effected by this.)  When prompted about what to do with the iCloud data, be sure to select Keep On My iPad.  Next, set up a new iCloud account using a separate Apple ID, turn iCloud data syncing for contacts, etc. back to On, and when prompted about merging with iCloud, choose Merge.  This will upload the data to the new account.
    Finally, if you have any of each other's data in your iCloud accouts you'll have to go to icloud.com on your computer and sign into each iCloud account separately and manually delete the data you don't want from each account (such as deleting the your contacts from his account, and vice versa).

  • Is there a way to place page numbers in different places within a document in Pages?

    I have a document with multiple chapters and I need to place the page number in a different place at the beginning of each chapter than the rest of the document.  For example, on the first page of each chapter, the page number must be at the center in the footer while on every other page, the page number needs to be in the right of the header.  I know that there is a way to do this in Microsoft Word but I'm not sure how to do it in Pages. Anyone have any ideas? I would prefer not to have to download Word.
    Thank you.

    Hi Brian,
    If you go with Peter's suggestion, there are some details that since I've got a minute here, I'll mention...
    Set your Line Spacing for the document text to "Exactly" before you begin adjusting your table, otherwise you will have registration problems.
    Your Table will have to be a Floating object. Otherwise you won't be able to slide it into the margin. And, speaking of the margin, stay out of the gray area with the numbers if you want to print them. The gray border around your document is the area that the printer driver says is non-printable.
    In the Table Inspector, set Columns to 1 and Rows to 20 or whatever you prefer for your document. Set the number of Header Rows to 0.
    To apply the numbering, use the Fill feature: Type 1 in the first cell, type 2 in the second cell. Select both cells. Grab the Fill Handle in the lower right corner of the selection and drag it down to add a series of numbers to the rest of the column. (Easier than typing.)
    Decide how you want to justify the numbering. The Text Inspector has both vertical and horizontal justification controls for this. Just select the entire table and make the settings.
    Set the cell height to match the text line spacing. You can get close with the table row height, and maybe closer with a minor line spacing adjustment. Don't expect perfection, but you can get pretty close.
    You probably don't want the cell borders to show, so with the entire table selected, go to the Graphic Inspector and set Stroke to None.
    Lastly, cause the table to appear on every page by doing: Format > Advanced > Move Object to Section Master.
    Regards,
    Jerry

  • I have downloaded the tv shows Homeland and Dexter. They have ended up in different places. Dexter is where is "belongs" in my itunes library on my NAS drive. Homeland ended up on my hard drive in the itunes/music/tvshows directory. Anyone know why?

    Several months ago I bought and downloaded Homeland. Earlier this month I bought
    Dexter Season 7. They have ended up in different directories. My iTunes library is
    on a NAS drive and Dexter was stored there (where it belongs). For some reason,
    Homeland got saved to my Mac hard drive in the itunes/music/tvshows directory.
    This seems odd everything else I have downloaded, music, other tv shows, movies
    have been saved to the proper place. I haven't changed the path to my iTunes
    library in years.
    Now, iTunes has kept track of these two tv shows and I synced them both
    to my iPad. The only reason I know they are in different places
    is because my wife couldn't find them on the NAS drive.
    Mostly out of curiosity, I'd like to know why this happened and how to keep it from
    happening again.
    Oh, it's iTunes 11.0.3 running on a MacBook Pro with OS X 10.6.8.
    Thanks
    Bob

    I don't think it is easy to move part of a collection unless you don't care about the metadata such as date added, etc.  You can copy the files to the other drive, delete in iTunes the references to the copies still on your computer, then hold down the option key while dragging the files on the external to iTunes so it doesn't copy them back to your internal but just references them where they are.  You have to remember to do this each time.  Either that, or set preferences so iTunes does not automatically copy any file to your media folder when added but leaves them all where they land on your computer.  You can move them by hand around the computer, but not between drives.
    You could try Dougscript "Move Files To Folder" but I don't know if this enables iTunes to track items moved to a different drive.  iTunes doesn't really like using multiple drives.
    As for using Time Capsule, I have seen various takes on this.  I recall reading somebody saying it isn't a good idea to have a backup drive competing for dual purposes.  My take on it is, TC is a backup, period.  If you keep your movies on it and the TC drive dies, you lose your only copy of the movies.
    How often do you really watch these movies?  Yes, it is nice having them appear in iTunes, but unless you are watching them every day then it isn't a huge burden to have them on another drive.  Frankly, if I had iTunes movies I would probably make a whole different library for them and start from it with the external drive turned on when I was in a movie mood.

  • Premiere Elements 13 issue with the mouse on When I select a clip of video and move to a different place in my time line, Premiere Elements 13, will not release the clip rom the mouse.    The clip follows my mouse movements and goes to other places in my

    Premiere Elements 13 issue with the mouse on MAC OSX Yosemite 10.10.1
    When I select a clip of video and move to a different place in my time line, Premiere Elements 13, will not release the clip from the mouse.
    The clip follows my mouse movements and goes to other places in my time line.
    I try to delete these extra insertions, but the mouse will not release the clip.
    Action I’ve taken: I’ve re-installed Premiere Elements 13. Problem remains.
    This issue has consumed too much of my time and does not go away.  It ruins my video.
    Help please.
    Thanks

    I tried using the Guest Account on my Mac. In the Guest Account, Illustrator works perfect!
    Then I started wondering what processes (tools/tweaks) I run by default on my account. Turned out the problem was called by a little background tool called RightZoom. RightZoom let's the green 'zoom' button always maximize your current window.
    So thanks! Problem solved!

  • On my ipod touch my songs start in random places and jump to different places as it plays, the remember position is not ticked can anyone please help?

    On my ipod touch my songs start in random places and jump to different places as it plays, the remember position is not ticked can anyone please help?

    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    Finally, if the Restore doesn't work, let the battery drain completely.  Then recharge for at least an hour and Restore again.

  • Battery drains differently, in different places. . .

    so, it's obvious battery life on the 3GS is less than desired, but i've noticed in the past few weeks that the battery drains at different rates, in different places. does this happen to anybody else here?
    for example, keeping 3G, wifi, and location services "on" with normal use (from a 100% charge in the morning), my battery retains power above 90% most of the day while i'm at home or walking/driving about (like on a weekend etc.). BUT when i'm at work, without having used the phone at all, my battery drops (from a 100% charge in the morning) to below 85% by noon time!
    what the **** is going on here? why does my battery drain way more at work, without any use, than at home with normal use?

    Exactly..And to piggy back on that 5 bars doesnt always mean a "quality " signal. If you look at the AT&T coverage map (which isnt always 100% acurate) and you are on the edge of a coverage area, it may or may not be a "quality" signal. Meaning the phone can pick up 4-5 bars but being on the edge of the coverage area can get interfearence from surrounding objects, like buildings etc...

  • Dump while running in FG mode at different places

    We are running a Z transaction which is related to some trading of shares.
    It is handling huge data.
    when run in fore ground, its throwing dump at different places each time, its run.
    For ex: CL_OS_CA_COMMON->Method SM_UPDATE_SUBSCRIPTIONS
    In a different run, it failed at class CA_COL_POSITION_TRQ -> Method MAP_LOAD_FROM_DATABASE_GUID.
    But the reason it states in both the cases is Maximum permitted time is reached.
    We tried to improve the performance of the program technically and still getting dump.
    So we want to post a message to SAP. For this, I need to know the module am dealing with. How Do I find that exactly.
    As I was extracting my main data from table FMFINCODE, I thought its FUND MANAGEMENT.
    Please help me in both the cases.
    I also want to know, if a class is released for customer re-use or not?
    Thanks
    Kiran

    Hi Rob,
    Do you mean to say, SAP doesnt support custom transactions?
    I did try se30 but I tried to reduce to the extent I could.
    Any thoughts on the last question? If a class is for Customer re-use.
    Thanks
    Kiran

  • Why when we burn a DVD from iMovie, does it pause in different places?

    Why when we burn a DVD from iMovie, does it pause in different places?

    Hi
    does it pause in different places?
    During Burn ?
    During Playback of DVD ?
    On Mac ?
    On Stand alone DVD-Player ?
    During Burn.
    What brand of DVD ?
    What type of DVD ? DVD-R or DVD+R or +/-RW - SL or DL
    Did You set down burn speed in iDVD ?
    Free space on Start-Up (Mac OS) hard disk. HOW MUCH ?
    Video codec used (feed into) iDVD ?
    Yours Bengt W

  • Usage of keyword virtual

    Hi,
    Got a basic question.
    Is the usage of keyword "virtual" optional when declaring the methods in the derived class?
    Eg:
    class C {
    public:
    virtual void vmethod();
    class D : public C
    public:
    void vmethod(); // missing keyword virtual. is it ok?
    TIA
    Satya

    If the declaration of the derived-class function is identical to the base-class version, the "virtual" keyword is optional. If the declarations are not the same, the derived-class function will not be a virtual function unles you declare it virtual. Example:
    class Base {
    public:
       virtual int f(int);
       virtual int g(int);
    class Derived : public Base {
    public:
      int f(int, int); // not virtual
      int g(int); // implicitly virtual
    };

  • How do you tell two different cursors to move to different places?

    Sorry if this has been asked before but I couldn't find the answer anywhere.
    As I said, I'm trying to get two different cursors to move to two different places on the same graph. I have the values I want them to go to, I'm just not sure which function or command to use. I'm using LabVIEW 8.6. Thanks for any help!
    Solved!
    Go to Solution.

    WCR,
    You would have to use the property nodes of the graph to move the cursors programmatically. The properties of interest are Active Cursor and Cursor Position > X and Cursor Position > Y. Use the Active Cursor to specify (by cursor index) which cursor you want to work with, then set the X and Y property values, then set the next cursor as the Active Cursor and set its X and Y property values.

  • Ipad APN settings getting wiped when travelling to different places

    Hi.. whenever i travel to different places,abroad my APN setting in ipad gets wiped off automatically..is it because of service providers network.?

    You can see all of the device backups in iTunes by going to iTunes>Preferences>Devices. All of your iOS devices' backups are listed in that window and they should all be accessible when you connect the iPad to iTunes, right click on the device name in the left sidebar and select Restore From Backup. A window will popup with a drop down menu from whic you can select the backup that you want to restore from.
    If you don't see the sidebar you can enable it by going to View>Show Sidebar from the iTunes Menu or by using COMMAND+OPTION+S on the keyboard.

  • HT201210 I have been trying to update to IOS 6 for 3 days now - my Iphone4S is in middle of restore and it gets so far then stops - no error  messages - the bar does not move further. it stops at different places - can anybody help please

    I have been trying to update to IOS 6 for 3 days now - my Iphone4S is in middle of restore and it gets so far then stops - no error  messages - the bar does not move further. it stops at different places -
    can anybody help please
    Kulbir

    Stewart
    This forum is for questions regarding the LabVIEW Datalogging and Supervisory Control Module. You will have more luck posting this question in the general LabVIEW forum.
    Good luck

Maybe you are looking for