This is the third time I am posting this "easy" question...

How do I get a JSpinner to display 01 instead of 1. I have a JSpinner to display minutes i.e. 0-59 that user uses for my time control.

import java.util.*;
import java.applet.*;
import java.awt.*;
import javax.swing.*;
public class Test extends Applet {
     JSpinner sp;
     String[] seconds;
     public void init(){
          seconds = new String[60];
          for (int i = 0; i < 60; i++)
               seconds[i] = i < 10 ? new String("0" + i) : new String("" + i);
          sp = new JSpinner(new SpinnerListModel(Arrays.asList(seconds)));
          sp.setPreferredSize(new Dimension(100,30));
          add(sp);
};

Similar Messages

  • This is the third time I have entered this question and answered with my PW, etc. I have updated my IPad with IOS 7, and updated Adobe Reader with ver. 11.3.1. I cannot get any files or folders to come up when I click on Adobe, even though my Usage indica

    I Have updated IPad to IOS 7.1.1, and also updated Adobe Reader to ver. 11.3.1. When I click on the Adobe icon, I get no files or folders to come up, just a blank screen. I know from my usage indicator on the IPad that I have 36 GB of PDF files resident, which I expected, but how do I access them. I had updated from IOS 5 because Adobe was crashing so often that it made it difficult to work.

    If restarting the app or your iPad/iPhone does not work, we are not aware of any other ways to fix this particular problem.  Uninstalling & reinstalling Adobe Reader may be the only option left.  It will clean up the "inconsistent" application data.  But it is not even guaranteed to fix the problem.
    If you uninstall Adobe Reader (or any other iOS apps), iOS will erase all of the application data including settings/preferences and PDF documents stored locally on your iPad/iPhone.
    We'd highly recommend backing up your PDF documents regularly (not just this time) so that you do not lose them when something goes wrong.
    How to backup and restore PDF documents on your iPad/iPhone using iTunes
    Backup your PDF documents.
    Uninstall Adobe Reader.
    Download and reinstall Adobe Reader from the App Store.
    Alternatively, you can store your PDF documents in cloud storage (e.g. Acrobat.com, Dropbox, Google Drive), which will eliminate the need to backup local files.
    Please let us know if you need further assistance.

  • This is the third time my screen has a light white line

    Hello,
    I've a macbook air 2011 on Mevericks. And today i used an Black Wallpaper and saw that there are some white spot lines on my display. This is the third time i'm facing this kind of problem i
    m tired of sending my device to the service station.
    Please anyone help me out here.

    fault at the display feed cable that runs thru the hinge.
    slowly move your display and see if the lines flicker off and on.
    display assy. feeds or fault of same at junction with logic board.
    Contact Apple for appt for in shop diagnostics

  • Trying to download Lion trought App store, it downloads and it asks for account login and it installs again it never shows installed it always shows installing. this is the third time it's installing. Am I doing something wrong?

    Been trying to download Lion from the App Store.  It saks for login, I login in and it starts install.  After about 13 hours it finishes download then asks for login again.  After login, it starts installing again. It never shows installed.  This is the third time I am doing this.  Am I doing something wrong?

    Sorry, my bad, we have the iMac G5 10.6.8.  I just got home and the message said an error occurred and was unable to download.  Am I doing something wrong or is there something I need to do.

  • HT204088 iTunes Store Credit card can't be processed again...tired of this happening. This is the third time in four days.

    iTunes Store
    Credit card can't be processed again...tired of this happening. This is the third time in four days.

    Well, thanks for feeling with me, patkosanke ... AND for your wise advice.
    I did followed your advice immediately and erased all the service number as well as S/Ns.
    Can you, however, give me any "direct number" through which I can get hold of someone and request for what you're suggesting?
    I believe I had talked with the person by the name of "Charlie" (I think... I hope I'm correct...) when I was having the same problem with the last device. He was very kind and helpful, though I ended up getting the device that brought the same problem.
    Charlie told me that if I had any more problems I should call him. But I forgot to take down his direct number.
    Or maybe I should call the main office and ask for him. But my memory is questionable as to his name, and besides I don't even know his last name either. There could be more than one "Charlies" in Palm.
    So, if you could somehow email me some direct number (other than the one that keeps on hooking me up with those people in the overseas who are answering the phone only to sympathize with & apologize to me but can only issue a false hope with the SRO#. More than once I was given the promise that the supervisor would call me back within an hour or two but I ended up calling back after I had been left hanging in the air all night long.) where I can talk to someone like I did with Charlie last time who can truly carry out the promise, I would truly appreciate it, patkosanke. ^^
    Thanks
    jcinlovewpalmTX
    Post relates to: Palm TX
    Post relates to: Palm TX
    Message Edited by jcinlovewpalmTX on 03-05-2009 06:36 PM
    Message Edited by jcinlovewpalmTX on 03-05-2009 06:36 PM

  • The Battery in my laptop has been replaced twice and this is the third time the battery has swollen up. Since the first time it was swollen I have asked the reason but Apple has not come up with a reason and just replaced it. Second time also the ser

    The Battery in my laptop has been replaced twice and this is the third time the battery has swollen up.
    Since the first time it was swollen I have asked the reason but Apple has not come up with a reason and just replaced it.
    Second time also the service centre replaced the battery but were unable to give me a reason.
    I had asked them to replace the laptop as this has been happening repeatedly and seems to be something with the laptop
    otherwise why should every battery they put swell ?
    This is the third time this has happened. And now they refuse to replace the battery or the laptop also.
    What is the solution?

    Make an appointment at the Genius Bar of an Apple store and press the problem. Elevate to store manager if necessary. Maybe the charging circuits are defective resulting in overcharging which is causing the battery problem.
      Apple Retail Store - Genius Bar

  • After recent update, all but 7 songs disappeared from my iPhone 5 while I was driving. This is the third time! I only sync from cloud, not the computer. I had over 600 songs and its a pain to keep reloading!

    IPhone 5 keeps dropping my songs, this after an update. I know it's a software issue. I have shut down and re-started, I have made sure there's available space, etc. this is the third time in the last 2 weeks. Help!

    First of all, you should always save you photos on computer like any other digital camera.
    Backup on iCloud or iTunes only backup your Camera Roll. The other photos should be already on the computer.
    Note: Photos are not saved in iTunes, it's only a conduit between your iPhone and your photo managing software on computer.
    What computer do you have?

  • I downloaded the new version of itunes and it changed my path. I have over 10,000 songs in 100's of play list. This is the third time it has happened. It is putting file://localhost in front front of the path. Does anyone know why and has a solution   RJ

    I downloaded the new version of itunes and it changed my path. I have over 10,000 songs in 100's of play list. This is the third time it has happened. It is putting file://localhost in front front of the path. Does anyone know why and has a solution   RJ

    Hello there, RJ Quick.
    I've located the following Knowledge Base article that might be the information you're looking for:
    iTunes 11 for Mac: Change where your iTunes files are stored
    http://support.apple.com/kb/PH12165
    The following section may be of help:
    Change where imported files are stored
    Choose iTunes > Preferences and click Advanced.
    Click Change and select a new location for your files.From now on, new songs and other items you import will be stored in the new location. Songs you’ve already imported stay in their current location.To go back to storing imported files in the iTunes folder, choose iTunes > Preferences, click Advanced, and click Reset.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • An error has occurred while accessing SQL database or system resources. If this is the first time you have seen this message, please try again later. If this problem persists, please contact your administrator.

    I have SP Server 2010, and when I try to DELETE a rule within an existing Audience, "Property (Account Name) = domain/username", I get this error, "An error has occurred while accessing SQL database or system resources. If this
    is the first time you have seen this message, please try again later. If this
    problem persists, please contact your administrator."  When I try to "MODIFY" the rule I get this error, "One or more values typed on this page are not valid. Check the text for the indicated fields." 
    The last time I checked it was working, I'm not aware of any new updates installed recently?  I did a full Profile Synchronization as well, but still not working, please advise? -- Evenstarline

    Hi Sara,
    First of all thank you very much for your prompt responses. Here are my comments to each of your suggestions below, and just to let you know I am using a Farm Admin account.  I
    was able to do this way after we upgraded from SP 2007 to SP 2010 as well.   I would like to mention I'm not a SP expert, just been given the responsibility due to another person handling it just left, so apologize with some of
    my novice questions below?
    1. When I change the Operators to "Contains" or "Not Contains" get generates this error below.
         Error generating in red towards top of the audience page..."One or more values typed on this page are not valid.  Check the text for the indicated fields."
         Error occurred where you enter your "Value"..."Could not resolve the user identity. Please re-enter the account name."
    2. We have a 3-server-tier topology (SPWeb, SPDB, and SPFarm).  Does the updates only apply to where the Central Admin is installed, which is the "SPFarm"?  I checked all
    3 servers, and NONE of the updates (KB2899494, KB2889845, and KB2883055) you'd mentioned are installed.
    3. I'm new to IISRET, I need to be extra cautious of what I run in production, is this safe to run with no problem?  What does it do?  And How do I run it?
    4. I'm also new to viewing the ULS log.  I'd just downloaded a viewer for it.  I'm assuming the only logs I need to be concern with viewing are within the SPAdmin (where Central
    Admin is installed)?  There's so many of them, what should I be looking for exactly?
    Evenstarline 

  • I want to save with alt s in the program Exact Online. This function is not working. this is the first time that i use this program with firefox.

    Question
    I want to save with <nowiki><alt><s></nowiki> in the program Exact Online. This function is not working. this is the first time that i use this program with firefox.
    '''edit''', mod escaped the '''<nowiki><s></nowiki>''' to prevent line through question

    Submitted too soon... To change your accelerator key for accesskeys to Alt alone (or a different combination), you can change a setting using Firefox's about:config preferences page.
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the filter box, type or paste '''ui.k''' and pause while the list is filtered
    (3) Make sure '''ui.key.generalAccessKey''' is set to its default value of -1 (or right-click and choose Reset if it is not).
    (4) Double-click '''ui.key.contentAccess''' to open a dialog box to change the value from its current default (on Windows, 5) to your choice of the following:
    * 2 = '''Ctrl''' (Fx default on Mac thru Fx13)
    * 3 = Ctrl + Shift
    * 4 = '''Alt''' (IE/Chrome/Safari default on Win/Linux)
    * 5 = '''Alt + Shift''' (Fx default on Windows & Linux)
    * 6 = '''Ctrl + Alt''' (Fx default on Mac from Fx14) (Chrome/Safari default on Mac)
    * 7 = Ctrl + Alt + Shift
    This should take effect as soon as you OK the dialog, so you can experiment in a separate tab. Other combinations are available if you want to try them. See http://kb.mozillazine.org/Ui.key.contentAccess (inaccessible at the moment?)

  • Why is my Apple ID being locked out every time I go to use it?  I haven't even attempted to log in for about 4 or 5 days, but today on my first attempt to do so, it said my account had been locked for security reasons.  This is the third time.

    I only sign in to iTunes' store about once a week or so.  But during each of my last 3 attempts (on different days, several days apart) on my first attempt to enter my password and hit submit, I am immediately told that my Apple account has been locked for security reasons and it wants to take me to a page to reset my 'forgotten' password.  I am using the CORRECT password.
    Perhaps someone else is trying to break into my account or is mis-entering theirs but my account should not be getting locked like this.  It is very frustrating to have to go through the reset password procedure each and every time I want to go into the store.  It seems to me that Apple really doesn't want me to buy any more apps from them as they keep refusing me entry into my own account, each and every time I have tried to use it, for the past few weeks.  I am not their best customer, but they aren't giving me much of a welcome invitation to become one, if I'm going to be treated like this.
    I just bought my iPhone 4 less than 2 months ago.  I paid extra money to upgrade early, just to get this phone because it was so highly recommended by everyone I spoke with in different stores (BestBuy and Verizon).  I even bought the 2 year upgrade to my Apple services in case I needed to ever call them, and so far I haven't had to, yet.  But I definitely will call them if this isn't straightened out.
    It looks like this other user could be tracked and an email could be sent to them from Apple to let them know what they are doing - trying to sign into the wrong account, and are locking somebody else out of their own account because of their error....and to remind them of their correct information or how to get it and to write it down or save it somewhere so they don't keep on doing this.
    I have seen literally DOZENS of other people in these discussions with exactly the same issue that I'm having so it is NOT an isolated incident, and it seems to be a growing problem as Apple's sales and user base continues to grow, so this problem is seriously needing to be addressed in some way, and soon, before they start losing new customers because of it.  If I was still within my original 14 day return period with this phone, I would definitely be returning it and buying an Android model because of how frustrating this is to me.  If my bank was doing this to me, I'd have already switched banks by now if they hadn't fixed it - just to give an example of how I feel about this.

    For what it's worth, you posted this in 2011, and here in 2014 I am still having this same issue. Over the last two days, I have had to unlock my apple account 8 times. I didn't get any new devices. I haven't initiated a password reset. I didn't forget my password. I set up two factor authentication and have been able to do the unlocking with the key and using a code sent to one of my devices. 
    That all works.
    It's this having to unlock my account every time I go to use any of my devices. And I have many: iMac, iPad, iPad2, iPad mini, iPhone 5s, iPod touch (daughter), and my old iPhone 4 being used as an ipod touch now.  They are all synced, and all was working just fine.
    I have initiated an incident with Apple (again) but I know they are just going to suggest I change my Apple ID. It's a simple one, and one that I am sure others think is theirs. I don't want to change it. I shouldn't have to. Apple should be able to tell me who is trying to use it, or at least from where.
    Thanks for listening,
    Melissa

  • My iPod won't turn OFF, this is the third time its happened.

    For the third time, my iPod won't shut off. The last time this happened, I loaded the latest firmware. It has been ok for about three months.
    Now it won't shut off again. It appears to be a software issue.
    Has anyone else had this happen?

    yeah same with me, and its 2 days old too. i didn't get a chance to try resetting it, though, it just worked after a while.
    bloody annoying though, it shouldn't be breaking already
    i'm really happy i got the chance to say bloody annoying though, i hope it's appreciated

  • THIS IS THE THIRD TIME MY PLAYER HAS MESSED

    Within a year of buying this mp3 player, this is now the THIRD time it has messed up. I have snet it in twice already and do NOT wnat to pay another $25 for them to send me back the same faulty player. I just got it back from them 2 days ago. This is ridiculous. I should not have to pay another dime.Please tell me there is a way I can get a full refund?

    I know what you mean, I bought 2 creative mp3 players and both hard dri'ves burned out on me after year and 2 months, conveniently after the warranty would have expired. I had a nomad jukebox 2 and a Creative zen xtra. I will never buy another creative product again.

  • I updated to iTunes 12.0.1.26 and I am trying to burn a play list and it gives the following message: disc burner or software not found.  This is the first time that I have this problem.  Can any one help me please?

    I have a Mac Book Pro 2.4 GHz Intel Core i7; Memory 4 GB 1333 MHz DDR3
    Mac OS X Version 10.7.5
    I updated to iTunes 12.0.1.26 and I am trying to burn a playlist and I get the following message:  "Disc burner or software not found" .  I have burned lots of CD's and DVD's before and this is the first time I get this message and cannot burn anything.  Can anybody help me, please?

    Hello queenabs,
    It sounds like you are trying to burn a playlist to a disc in iTunes, but you are getting the error, "disc burner or software not found."  I found a couple of resources that I think might help with an error like this.
    I recommend starting with the steps in this article:
    iTunes for Windows: Optical drive is no longer recognized, or "Disc burner or software not found" alert after install
    http://support.apple.com/kb/TS2308
    If you are still having trouble with burning a disc after following the steps in that article, I recommend following the steps in this article:
    iTunes for Windows: Additional troubleshooting tips for burning issues
    http://support.apple.com/kb/TS1374
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • It's already the third time that i post the same question, please help me!

    I am writing a simple guestbook that is able to insert and fetch text and image from database and display them. There is a html that forms the parameters to this servlet, some text information such as "name", "address" and one picture. Insertion and fetching of text and images works sepearately, but when i combine them there is a conflict between "doGet" and "doPost". My text insertion only works with "doGet" (don't know why, but when i type "doPost" it does not work) while image insertion only works with "doPost" since i am using "Multipartrequest" to read the image.
    Since i write "doGet" in my code, the exception is following
    java.io.IOException: Posted content type isn't multipart/form-data
    SQLB.doGet(SQLB.java:42)Following are the codes , please give me a hand, many thanks!!
    the problem line that causes exception is marked with ////////////////////////////////// above in red color
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.awt.image.*;
    import com.oreilly.servlet.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.text.*;
    import com.sun.image.codec.jpeg.JPEGCodec;
    import com.oreilly.servlet.ServletUtils;
    import java.net.*;
    import java.sql.*;
    public class SQLB extends HttpServlet{
        Connection con;
        PreparedStatement pstmt=null;
        public void init(){
         //connection need url, username and password
         String url="jdbc:mysql://atlas.dsv.su.se/db_5974722";
         try{
             new com.mysql.jdbc.Driver();
             con = DriverManager.getConnection(url, "usr_5974722", "974722");
         }catch (Exception ex){}
        public void doGet(HttpServletRequest req,HttpServletResponse res)throws IOException, ServletException{
         //get the text fields information     
         String namn=req.getParameter("namn");
         String epost=req.getParameter("epost");
         String hemsida=req.getParameter("hemsida");
         String kommentSQLB.doGet(SQLB.java:42)ar=req.getParameter("kommentar");
         //get the pic as file
         MultipartRequest mreq=null;
         PreparedStatement pstmt1=null;
         PreparedStatement pstmt2=null;
         res.setContentType("text/html");
         String mime=null;
         File file=null;
         File dir = (File)getServletContext().getAttribute("javax.servlet.context.tempdir");
         mreq = new MultipartRequest(req, dir.getAbsolutePath(), 5000000);
         mime= mreq.getContentType("file");     
         file = mreq.getFile("file");
         Statement stmt=null;
         ResultSet rs=null;     
         //first save all the information to the database
         //then go through it and print out all the content
         //both tables have id as key
         try{
             new com.mysql.jdbc.Driver();
             //save the picture
             pstmt2 = con.prepareStatement("INSERT INTO picture(p,type) VALUES ( ?, ?)");
             FileInputStream fis = new FileInputStream(file);
             byte[] data=new byte[(int) file.length()];
             fis.read(data);
             fis.close();
             pstmt2.clearParameters();
             pstmt2.setBytes(1, data);
             //another way to insert blob
             //pstmt2.setBinaryStream(3,fis, (int)file.length());
             pstmt2.setString(2,mime);
             pstmt2.execute();
             //picture saving done
             //save other text information
             pstmt = con.prepareStatement("INSERT INTO guestbook (NAME,TIME,EPOST,HEMSIDA,KOMMENTAR) VALUES(?,?,?,?,?)");
             pstmt.clearParameters();
             pstmt.setString(1,namn);
             pstmt.setString(2,new java.util.Date().toString());
             pstmt.setString(3,epost);
             pstmt.setString(4,hemsida);
             pstmt.setString(5,kommentar);
             pstmt.execute();
             //text informatin saving done
             //pstmt1=con.prepareStatement("DELETE FROM picture");
             //pstmt1.execute();
             //print the guestbook information and invoke the SQLC servlet
             //to display picture
             String queryprint="SELECT * FROM guestbook";
             rs=pstmt.executeQuery(queryprint);
             PrintWriter out=res.getWriter();
             out.println("<HTML><HEAD><TITLE>guestbook</TITLE></HEAD>");
             out.println("<BODY>");
             while ( rs.next() ) {
              String name = rs.getString("id");
              out.println("TID:  "+ rs.getString("TIME"));
              out.println("<br>");
              out.println("FR�N: ");
              out.println("<a href=\"rs.getString(HEMSIDA)\">"+rs.getString("NAME")+"</a>");
              out.println("<br>");
              out.println("e-post");
              out.println("<a href=\"mailto:"+rs.getString("EPOST")+"\">"+rs.getString("EPOST")+"</a>");
              out.println("<br>");
              out.println("Kommentar:  "+rs.getString("KOMMENTAR"));
              out.println("<br><br><br>");
              out.println("<br>");
              out.println("<img src=\"http://localhost:8080/ip/servlet/SQLC?id=" + name+ "\">");
             out.println("</body>");
             out.println("</html>");
                rs.close();
             pstmt.close();
                con.close();
         catch (Exception e){
             e.printStackTrace();
    }

    do you send the mulitipart MIME type like this ?
    <FORM action="youraction"
           enctype="multipart/form-data"
           method="post">

Maybe you are looking for