******* AnyOne who can answer my question  very very urgent **********

hi
Iam new to swing programming.i have a JTable which has a column for date.i want to validate the date.if the date is invalid it should clear the cell and the focus should remain in the same cell.how to achieve this.any ideas.
tks in advance

Thanks for ur replies
This is the code which i have written
JTextField tf = new JTextField();
tf.addFocusListener(new FocusListener()
public void focusLost(FocusEvent fe)
validateDate();
DefaultCellEditor dce = new DefaultCellEditor(tf);
cell.setClickCountToStart(1);
myTable.getColumn("ApplDate").setCellEditor(dce);
public void validateDate()
//check for validDate
The problems iam facing is
1)when i navigate using tab to the particular column and if user enters something.The focusLost event doesnt fire if i navigate to the next column using tab.This only fires if users hit Enter.
2) when i use my mouse and click in the column and enter some value in the column then if i click on the nextRow the cursor doesnt go back to the same cell if the value is invalid.
i want the cursor to be in the same cell if my value is invalid
any ideas please
thanks

Similar Messages

  • HT1386 I have  purchased a book and it went (accidently) to my PC.  How do I get it from PC to iphone 5?  the book now has an "epub" extension.  Thanks for anyone who can answer!  Frustrated !!!

    I have  purchased a book and it went (accidently) to my PC.  How do I get it from PC to iphone 5?  the book now has an "epub" extension.  Thanks for anyone who can answer!  Frustrated !!!

    I'll assume that you are referring to purchasing a book in iTunes. If that is the case, you can transfer the purchase with the phone, or you can sync the phone and iTunes.

  • Importing EDLs and Reconnecting Media... Who can answer this question?

    Hi, happy holidays! What am I missing here:
    I have an EDL with in and out points from a number of different source files.
    I import the EDL in Final Cut Pro as a sequence.
    I click on the sequence. The edit decisions can be seen in the timeline, with all of the source files designated as offline.
    I select the timeline and attempt to reconnect the media.
    The media reconnects, no problem, but the edit decisions aren't in place. In other words, all of the media files begin at the beginning of the source media files (i.e. 04:00:00:00), rather than at the edit decision in and out points for each of the edits in the timeline.
    Surely I'm just missing a step here, right?
    Thanks, Mtbakerstu

    Hi Jerry,
    The source files have been have been re-encoded with a different codec, but they are exactly the same insofar as duration of the source files, and the timecode hour and frame rate they have been assigned, as well as the name I have assigned the files.
    I am simply trying to trick the EDL into recreating a timeline which utilizes source files which have been encoded differently than the original source files... And the timeline is recognizing these files.... only it won't cue the files up to correct timecode point in the files.
    Hope that makes sense.
    Thanks,
    Mtbakerstu

  • Paypal $25 to anyone that can answer this question!

    Was is the proper script for the main menu's "Play Movie" that will resume after the show has been started?
    Beleave me, I just all confused about scripting, some other websites have not been too clear for me.
    -Eric

    YOU OWE ME 25 BUCKS MISTER, HERE IS YOUR SCRIPT:
    Ill break it down for you so you can understand the purpose of each part and why its there.
    1 Goto 3 if (GPRM 1 = 0)
    2 Goto 5 if (GPRM 1 != 0)
    3 mov GPRM 1, 1
    4 Jump Track 1 (insert your track name here)
    5 mov GPRM 1, 0
    6 Resume
    There you go, now for the dissection:
    1 Goto 3 if (GPRM 1 = 0) This basically says, if the value of GPRM 1 is equal to 0, then jump to line 3 in the code, if the value of GPRM 1 is not equal to 0, go to the next line. Since the value of GPRM 1 will always be 0 when you first play the DVD, it will always jump to line 2 the first time around.
    2 GoTo 5 if (GPRM 1 != 0) This is saying if GPRM 1 is not equal to 0, go down to line 5 of the script.
    3 mov GPRM 1, 1 This is what is executed after line 1 if in the first line, GPRM is equal to 0, this is now taking GPRM and adding a value of 1 to it.
    4 jump track 1 After GPRM has a value of 1 added to it, it is going to jump to your track and start playing at the beginning of the track, just as a normal PLAY MOVIE button would do.
    5 mov GPRM 1,0 This is resetting GPRM 1 back to zero for the next time around. This is where the script jumps to after you have returned to the menu, if you remember in the first part, the script reads the value of GPRM 1, since on a return to the menu, GPRM 1 now has a value of 1, meaning that in line 2, GPRM is not equal to 0, and it will jump to line 5 in the code. after executing this and resetting GPRM to 0, it will jump to the following line:
    6 Resume. Your track will resume to where ever you left off before coming to the menu. viola, your now neck and neck with the big boys.
    Hope this works, I tested it out and it worked for me. You can email me if you want and I will send you the actual script that I saved. It is important to remember that you need to set this as a pre-script on the track you want it to effect.

  • Can anyone help or answer this question for me. Is there a way to have a private album for pictures sent to my phone? Don't exactly want kids ( niece and nephew ) to play on my phone and see private pictures of my girlfriend

    Can anyone help or answer this question for me. Is there a way to have a private album for pictures sent to my phone? Don't exactly want kids ( niece and nephew ) to play on my phone and see private pictures of my girlfriend

    What about this?
    https://itunes.apple.com/ru/app/best-secret-folder/id488030828?l=en&mt=8

  • Ok. can any one tell me: will Final Cut Pro 6 fcs2 bundle) install on my GeForce 6600 LE Video Card on my G5 powerpc dual core 2.0? Thanks Much to anyone who can give me a definitive answer. also if not any fix aka .plist?

    ok. can any one tell me: will Final Cut Pro 6 (fcs2 bundle) install on my GeForce 6600 LE Video Card on my G5 powerpc dual core 2.0? Thanks Much to anyone who can give me a definitive answer. also if not any fix aka .plist?

    Look at this technical specs document, your system should be fine with the possible exception of Color.
    As for managing your preference files, use Digital Rebellion's tool.
    Good luck.
    Russ

  • Zombie email message won't die! $1 bounty to anyone who can solve this.

    I have a message that absolutely will not die. I've tried everything I can think of to delete it, but it keeps coming back. I've tried moving it from one mailbox to another, killing it with the delete key, killing it by cutting it (Command-X), but it lingers on. At this point, it only shows up in the index with a subject and date, but the content of the message is gone. I've tried rebuilding the mailboxes a number of times, but it always reappears. I've tried logging into my various accounts through the web interface, but it doesn't exist on the servers anywhere, it's only local as far as I can see.
    In my last attempt to get rid of it, I scanned my ENTIRE HARD DRIVE for the string of text containing the subject line using grep, and narrowed it down to a few files in the ~/Library/Mail folder, which I deleted through the Terminal using rm. I then re-opened Mail and rebuilt the mailboxes, and the email STILL appears. It will no longer let me move the message to another mailbox, however, but I can't get the damned thing to disappear.
    I will PayPal $1 to anyone who can come up with a solution that doesn't involve recreating my Mail accounts. May the game begin!

    Hello,
    Are you using an IMAP or POP account?
    Anything you do in the Terminal, Finder or some third party Mail app enhancers will very often mess up the index, which appears to be a symptom of.
    I think you should force a reindexing by deleting the Envelope Index. With IMAP or Exchange account, forcing reindexing requires removing the account folder. See:
    http://docs.info.apple.com/article.html?path=Mail/4.0/en/14019.html
    Ask any questions needed to get comfortable with doing this.
    Ernie

  • How to find out users who have answered security questions

    Is there any report where we can find out users who have answered security questions.
    Please reply back to this.

    This might help you:
    Define a task template, reference the UserQuestionReport task definition:
      <TaskDefinitionRef>
        <ObjectRef type='TaskDefinition' id='#ID#TaskDefinition:UserQuestionReport' name='User Question Report' displayName='UI_REPTS_XML_USER_QUESTION_TITLE'/>
      </TaskDefinitionRef>Define desired variables
          <Attribute name='attrListField'>
            <List>
              <String>accountId</String>
              <String>policy</String>
              <String>loginInterface</String>
              <String>questions</String>
            </List>
          </Attribute>
          <Attribute name='attrMapField'>
            <Map>
              <MapEntry key='accountId' value='UI_REPTS_XML_REPORT_ATTR_ACCOUNTID'/>
              <MapEntry key='loginInterface' value='UI_ATTR_LOGIN_INTERFACE'/>
              <MapEntry key='policy' value='UI_SERVICEMODIFY_JSP_ACCOUNTPOLICY'/>
              <MapEntry key='questions' value='UI_ATTR_MIN_QUESTION_UNANSWERED'/>
            </Map>
          </Attribute>and the rest of the task template for a report definition.
    Hth
    Edited by: nickoarg on Feb 5, 2009 1:57 PM

  • Can't seem to talk to anyone who can actually help me!

    I have been trying to get legitimate assistance for my high speed Internet that went down yesterday right in the middle of a final I was taking for school. However after hours of tech support trouble shooting and being hung up on to the hour plus I waited on hold today, I have yet to speak with anyone who can tell me why nobody seems to care about my lack of a connection. I was told the issue is not with my house and is a Verizon field issue but nobody is available to fix this. How is that possible?! It is absurd that I am on day 2 of no Internet when I work from home and go to school online. The amount of data I am using just to post this message is probably absurd. I really need to speak with some sort of management and can't understand why this is such a problem. Can someone please give me a number or email address to someone who can actually help me?!

    If you are having an issue with your Verizon service, you can use the Verizon Troubleshooter to fix and report issues with your Verizon Phone, FiOS TV, or Internet Service, as well as to schedule a repair, here is the link:
    http://www.verizon.com/repair
    You can find tools on the Verizon Residential Support page that may help you diagnose your issue:
    http://www22.verizon.com/residentialhelp

  • ALL MY DUKES TO ANYONE WHO CAN EXPOSE THESE POSTERS/IMPOSTER

    Please check message #16 and #17 at the link below:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=216311
    Also look at these links:
    http://forum.java.sun.com/thread.jsp?thread=216613&forum=17&message=750160
    http://forum.java.sun.com/thread.jsp?thread=216434&forum=31&message=749121
    and this is where they usually hang out.
    I currently have earned more than 200 dukes and am willing to give them all (including any additional ones that posters may give me later on) to anyone who can expose these cowardice posters and the imposter for who they are.
    Seriously,
    V.V.

    I will post a mail to the SUN company proposing the following idea:
    "how about to abolish these duke dollars in your forums ?"
    duke dollars only cause problems.. to all of us..
    I prefer a forum without any reward .. only for programmers interested in learning Java....

  • I have installed ios7 on my iPad 4. After installation it asked me pass code which I have never set. After multiple attempts it is disabled. I don't have backup on my iCloud or iTunes. Is there anyone who can help to enable it or to reverse iPad to ios6.

    I have installed ios7 on my iPad 4. After installation it asked me a pass code which I have never set. After multiple attempts it is disabled. I don't have backup on my iCloud or iTunes. Is there anyone who can help to enable it or to reverse iPad to ios6. I asked Apple store & tech said to format it but I will lose all the data..!

    Thanks for that. Much more constructive than the last comment. It's only the restriction code I can't recall, not the access passcode. So I can currently access the device, just not age restricted content. Does that's make a difference? I also wondered if anyone knew how many attempts you get to try to get it right. Now tried 21 times and so far nothing bad has happened but I am concerned I'll eventually be completely locked out of the device. That doesn't seem in the spirit of things though. Surely it's foreseeable that a child could repeatedly try to guess the code so I can't see that it would be right to lock the device down completely in that circumstance, particularly if the access code is being typed in correctly every time.
    Thanks

  • I have a MacBook Pro, 15-inch, Mid 2009.  I would love to upgrade to a Solid State Drive.  What is the best possible upgrade I can buy.  I need the specs and even brand name.  Thank you to anyone who can help.

    I have a MacBook Pro, 15-inch, Mid 2009.  I would love to upgrade to a Solid State Drive.  What is the best possible upgrade I can buy.  I need the specs and even brand name.  Thank you to anyone who can help.

    A 15" mid-2009 MBP RAM specifications are: 204-pin PC3-8500 (1066 MHz) DDR3 SO-DIMM.
    As has been pointed out, OWC is an excellent source for Mac compatible RAM.  Crucial is another first rate source for Mac RAM.  RAM from either vendor will work just as well as any purchased from Apple with the bonus of being less expensive and having a lifetime guarantee.
    Ciao.

  • Hi i was wondering can i buy a macbook pro 13 inch. with a 500 GB hardrive that costs 50 dollers more im gonna buy the one that costs 1200 dollers anyone who can help me? i know that can do it online but i was wondering can i buy it like that at the store

    hi i was wondering can i buy a macbook pro 13 inch. with a 500 GB hardrive that costs 50 dollers more im gonna buy the one that costs 1200 dollers anyone who can help me? i know that can do it online but i was wondering can i buy it like that at the store

    anton93 wrote:
    hi i was wondering can i buy a macbook pro 13 inch. with a 500 GB hardrive that costs 50 dollers more im gonna buy the one that costs 1200 dollers anyone who can help me? i know that can do it online but i was wondering can i buy it like that at the store
    Call the store & ask them!

  • I have a problem, i can't change my lockscreen wallpaper after i upgrade my iphone 4s to ios 5.1.1... Is there anyone who can help me?

    I have a problem, i can't change my lockscreen wallpaper? Doesnt work...is there anyone who can help me regarding this problem? Thx

    To help, we need more detailed information.
    --What steps are you trying?
    --What does the device tell you (any pop-ups or messages)?
    --Are you able to change the Home screen wallpaper, or is that affected too?
    --Are you the phone's owner/administrator, or is this a device used for work (assigned/administered by IT staff, possible on an Exchange server)?
    --Have you jailbroken the device?

  • Made a form in which colleagues can add revisions(+1 row) and amendments (1a,b,c). Once filled in, and opened again the amendments disappear. Anyone who can help?

    Hi everyone,
    See picture below. Part of a large form I made for work. Got a little problem though. Adding a new row with the button 'add a new revision' is working perfect (also when saved and reopened). But when I add amendments with the + button on the right (a,b,c), these disappear when I save and reopen the file. Anyone who can help?
    Thanks!

    Ok, I've checked your form and there are some problem in your design.
    You should use better namings for your objects!
    It makes no sense to name to tables with repeatable instances the same.
    This can cause problems with repeated objects and also requires the usage of the slow resolveNode() method.
    I've changed a few object names and so I where able to shorten many of your current scripts.
    https://files.acrobat.com/a/preview/7b4655fb-feea-4d55-896e-83317605ee19

Maybe you are looking for