Edit JTable Date Cell, press Enter, the Time Cell changes to GMT time!

Has anyone seen this strange behavior? I try to edit a Date Cell in JTable (orig. value 10/02/2000) and change it to (10/03/2000), I press Enter. But, the value of my Time Cell in the next column, same row which I never edited (orig. value 00:05:00) changes to approximately my system time in GMT (16:28:48).
This is an excerpt from my TableModel which get called from setValueAt():1734 javax.swing.JTable, JTable.java. In the code below, the debug statement prints out:
row, col = 0,0
Value in SubTableModel = 10-02-2000 16:28:48
Value should be "10-02-2000" since I did not edit the time cell at all. And why is row and col both zero?
public void setValueAt(Object value, int row, int col) {
try {
((ITableCellAdapter)adapters.get(col)).setData(getRow(row),col);
System.out.println("row, col = " + row + col);
System.out.println("Value in SubTableModel = " + value.toString());
((ITableCellAdapter)adapters.get(col)).setValue(value);
catch (PropertyVetoException badSet) {
System.out.println("could not set value");
fireTableCellUpdated(row,col);
How can I force it to set the date cell's new value only and leave the time cell alone?
I've also seen that sometimes my date entry gets lost, the old value still showing, what am I doing wrong? I've seen a bunch of bug parade listings about terminating edits within a JTable being buggy, is this related?
Any help on this is most appreciated!

Did you find the solution to yuor problem?
Has anyone seen this strange behavior? I try to edit
a Date Cell in JTable (orig. value 10/02/2000) and
change it to (10/03/2000), I press Enter. But, the
value of my Time Cell in the next column, same row
which I never edited (orig. value 00:05:00) changes to
approximately my system time in GMT (16:28:48).
This is an excerpt from my TableModel which get called
from setValueAt():1734 javax.swing.JTable,
JTable.java. In the code below, the debug statement
prints out:
row, col = 0,0
Value in SubTableModel = 10-02-2000 16:28:48
Value should be "10-02-2000" since I did not edit the
time cell at all. And why is row and col both zero?
public void setValueAt(Object value, int row, int
nt col) {
try {
((ITableCellAdapter)adapters.get(col)).setData(getRow(
ow),col);
System.out.println("row, col = " + row +
+ row + col);
System.out.println("Value in SubTableModel = "
del = " + value.toString());
((ITableCellAdapter)adapters.get(col)).setValue(value)
catch (PropertyVetoException badSet) {
System.out.println("could not set value");
fireTableCellUpdated(row,col);
How can I force it to set the date cell's new value
only and leave the time cell alone?
I've also seen that sometimes my date entry gets lost,
the old value still showing, what am I doing wrong?
I've seen a bunch of bug parade listings about
terminating edits within a JTable being buggy, is
this related?
Any help on this is most appreciated!

Similar Messages

  • HT2513 How do you change the name of a reminder in the reminder list.  I right click and then choose "get information"  I can change the colour of the reminder but when I type in the name that I want and then press enter the name stays as "untitled".

    How do you change the name of a reminder in the reminder list.  I right click and then choose "get information"  I can change the colour of the reminder but when I type in the name that I want and then press enter the name stays as "untitled"

    Jerry,
    Thanks for replying again. I've got a little bit further thanks to you. I tried the US keyboard layout as you seemed pretty definte that it should work. This time I applied the setting and also started the language toolbar and selected it from there.
    Hey presto, I've got the @ where it should be. Excellent.
    However the single quote ' works in a weird way. When I press it, it doesn't show up on the screen. But when I press another key, I get the single quote plus the next key I press. When I press the single quote twice, I get 2 of them. This is also the same with the SHIFT ' key. i.e. for the double quotes.
    Very strange. I'll look at other keyboards and see where that gets me.
    Thanks,  Maz

  • When pressing enter the values are converted to upper case in module pool

    hi
    tehre are three fields for maintanece in module pool
    wheni press enter the fields are converted to upper case i want to avoid this as i dont want to have the upper case
    i need to save in table as waht user has inputed not in upper case
    so i dont want the fields to be automatically converted to upper case whne pressing enter on screen
    regards
    Nishant

    hi Nishant ,
    <b>The solution to ur problem is breifly explained with a sample module pool program .</b>check it below :
    IN the TOP INCLUDE**********************
    DATA :
           wempid TYPE z7684dp-empid ,   " same name as in the screen declaration
           wname TYPE  z7684dp-name,
           wacc TYPE  z7684dp-account,
           wdesg TYPE  z7684dp-designation,
           ok_code TYPE sy-ucomm ,
           wa_z7684dp TYPE z7684dp,
           t_z7684dp TYPE STANDARD TABLE OF z7684dp,
    *****IN THE PAI OF THE SCREEN 100(for example)***********
    MODULE user_command_0100 INPUT.
      CASE ok_code .
        WHEN 'CRE' .                 " function code for the pushbotton to insert the values
    TRANSLATE wdesg TO LOWER CASE.
    TRANSLATE wempid TO LOWER CASE.
    TRANSLATE wname TO LOWER CASE.
    TRANSLATE wacc TO LOWER CASE.
          wa_z7684dp-empid = wempid .
          wa_z7684dp-name = wname .
          wa_z7684dp-account = wacc .
          wa_z7684dp-designation = wdesg .
          INSERT INTO z7684dp VALUES wa_z7684dp .
          IF sy-subrc EQ 0 .
            MESSAGE 'SUCCESSFUL INSERTION TO TABLE' TYPE 'I' .
          ELSE .
            MESSAGE 'UNSUCCESSFUL INSERTION TO TABLE' TYPE 'I' .
          ENDIF.
          CLEAR: wa_z7684dp , wempid , wname , wacc , wdesg.
    REVERT BACK WITH ANY FURTHUR QUERIES
    <b>DO REWARD WITRH POINTS IF USEFUL :)</b>

  • I have disabled my new ipad touch by entering the wrong pass code to many times. How can i fix this problem?

    I have disabled my new ipad by entering the wrong pass code to many times. How do i fix this problem?

    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    You may have to do this several times.
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just canceling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • I can't enter the group (chain) of emails from time to time using iPhone OS MailBox software.

    I can't enter the group (chain) of emails from time to time using iPhone OS MailBox software. It's ok with stand-alone emails but email chains are existing unlogically. I just press on the chain (with double ">>" sign) and nothing is done. Also I can't enter one of my email account, but I think this issue can be corresponded with the previous one. your help is appreciated!

    Carolyn,
    I think your TV might be a rear projection model, correct? Those types of TVs inherently have overscan built into them as part of their optical design. The TV should have some picture SIZE settings that affect how much overscan is present, and some settings may even get rid of it altogether with the result there might be a small black border instead.
    Don't worry about changing TV settings. Settings like this are tied to a specific input. So if you make these types of changes while the TV is passing the mini's video through to the screen, those changes will only apply to the mini. When you switch to other inputs, like a cable box, etc., the old settings should still be intact and unchanged.

  • HT204053 I accidentally entered the wrong Apple ID, since that time whenever I try to install app or download stuff, it pops up with tthe Apple ID which I accident

    I accidentally entered the wrong Apple ID, since that time whenever I try to install app or download stuff, it pops up with tthe Apple ID which I accidently entered the last time and asked for password. So can anybody tell how to remove that out????

    What id shows at the bottom of the Featured tab in the App Store app ? You can tap on it and log out of it and you can then log in with a different account. But all content from the store is tied to the account that downloaded it, so if any of the apps on your iPad were downloaded by the id that is showing then they will be tied to that id, so only that id will be able to download updates to those apps

  • Hi  urgent pls suggest when i press enter the data disappears...

    hi
    i have develop,ed a module pool for table maintianece
    in which  there are theree fields
    customer number name  email id
    now when i dont press enter at first field ie customer number after entering all data
    and save the data is saved properly for all three fields
    but if after e ntering the customer number i press enter and then enter name and email id
    and save the data for email is not saved and also if i just press enter again the data in email id column which i entered disappears
    can anyone suggest reason and solution for it
    regards
    Arora

    hi
    here is my code
    PROCESS BEFORE OUTPUT.
      LOOP   WITH CONTROL TABLE_ZCUST_EM_CREATE."AT T_ZCUST_EM_CREATE
        MODULE STATUS_0200.
      ENDLOOP.
    *Process after input
    PROCESS AFTER INPUT.
      MODULE CANCEL_200 AT EXIT-COMMAND.
      LOOP WITH CONTROL TABLE_ZCUST_EM_CREATE ."AT T_zcust_em_CREATE ." .".
       MODULE USER_COMMAND_0200.
        CHAIN.
          FIELD t_ZCUST_EM_create-ship_to .
         MODULE set_field_validation ON CHAIN-REQUEST.
        ENDCHAIN.
        MODULE USER_COMMAND_0200.
      ENDLOOP.
    here ship_to is customer number
    ship_to_name is name
    and email id is email id field
    pls suggest on this code also if u want i can give code for the module validation and user commarnd 2000
    as below
    MODULE STATUS_0200 OUTPUT.
      w_lines_200 = sy-loopc.
    *Reading table t_zcust_em_create for screen 200.
      read table t_zcust_em_create
        index table_zcust_em_create-current_line.
    *Refreshing The Internal table 't_zcust_em_temp'
      refresh:t_zcust_em_temp.
    ENDMODULE. 
    MODULE set_field_validation INPUT.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                EXPORTING
                   INPUT         = t_zcust_em_create-ship_to
                IMPORTING
                    OUTPUT       = t_zcust_em_create-ship_to.
      select single kunnr from kna1 into v_kunnr
              where kunnr = t_zcust_em_create-ship_to.
          if sy-subrc = 0.
           select single name1 from kna1 into t_zcust_em_create-ship_to_name
           where kunnr = t_zcust_em_create-ship_to.
          else.
          t_gui1-fcode = 'BACK'.
          append t_gui1.
          t_gui1-fcode = 'EXIT'.
          append t_gui1.
          t_gui1-fcode = 'SAVE'.
          append t_gui1.
          SET PF-STATUS 'AIMS_200' excluding t_gui1.
          message E002 with t_zcust_em_create-ship_to.
             endif. "kna1
    ENDMODULE.                 " set_field_validation  INPUT
    MODULE USER_COMMAND_0200 INPUT.
    *Setting it for select/deselect entries
      move:t_zcust_em_create to t_zcust_em_create_sel.
      append t_zcust_em_create_sel.
      clear:t_zcust_em_create_sel.
    *Getting internal table t_zcust_em_create with control
      read table t_zcust_em_create
             with key ship_to = t_zcust_em_create-ship_to.
    *Getting internal table for create entries: screen-200
      if sy-subrc ne 0 and t_zcust_em_create-ship_to ne space .
        append  t_zcust_em_create     .
        move:t_zcust_em_create to t_zcust_em_create_tmp.
        append t_zcust_em_create_tmp .
        clear:t_zcust_em_create_tmp  ,
              t_zcust_em_create      .
      endif.
      clear:t_cols.
    *Getting the value of  w_fill_200.
      describe table t_zcust_em_create lines w_fill_200.
    ENDMODULE.                 " USER_COMMAND_0200  INPUT
    PLEASE SUGGEST
    REGARDS
    ARORA
      module read_table_value_0200.

  • Can we prevent entering the same condition more than one time?

    Hi friends,
    Can we prevent the user for entering the same condition type more than one time in same sales order?
    Rama rao

    /write codes in Include ZXVVAU05/
    /prgm avbl in one of the msg in forum/
    DATA: BEGIN OF tXKOMV OCCURS 50.
    INCLUDE STRUCTURE KOMV.
    DATA: END OF tXKOMV.
    data : tab_name(40) type c ,
    ld_len type i , ld_len1 type i .
    field-symbols : <tab> type any.
    tab_name = '(SAPMV45A)XKOMV[]'.
    assign (tab_name) to <tab>.
    txkomv[] = <tab>.
    describe table txkomv lines ld_len .
    sort txkomv by kposn KSCHL .
    delete adjacent duplicates from txkomv comparing kposn KSCHL .
    describe table txkomv lines ld_len1 .
    if ld_len1 ne ld_len .
    refresh txkomv .
    message e002(zmm) with ' Please remove duplicate condition in item price' .
    endif .

  • Hi one pressing enter the fields are converted to upper case

    hi
    in table maintiance module pool program i have created thre are three fields
    kunnr name1 and email id
    now on pressing enter on maintiance screen the all the theree fields are converted to upper case i want to avoid this conversion to upper case....
    pls suggest
    and on pressing enter PAI is callled i want to avoid pai being called at this point of time
    regards
    Arora

    yes i have activated the table
    for tabel mantiance generater it is coming as disble so i suppose no need to gernereate table mantiance gerneartor again/
    ys in dynpro for shp to name uppe or lower case check box is checked but it is coming as disabled.
    pls suggest  how to delect it and wht does upper/lower case check box in special attributed means?
    regards
    nishant

  • When I enter a search in the Mozilla Start Page and press enter the browser does nothing. It doesn't bring in any search results. I use Windows Vista pack2

    I just upgraded Firefox for windows to version 21.0
    After upgrading, when I enter a subject to search in the search box (in the middle of the page) of the Mozilla Start page and press enter nothing happens. It doesn't bring in any search results.
    The only way to navigate using the browser is to enter the website name in the address box at the top of the page and press enter. I'm running the browser for Windows Vista - 32 bits.
    I tried re-installing firefox and I got the same result. I also tried re-booting after installation and it still behaves the same way.
    Please help,
    Thank you,
    Hektor

    he man check here
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • How to enter the same cell twice in a formula

    I am studying environmental engineering. we have a lot of complicated formulas that are long chains. In these formulas I need to reference the same cell many times , the problem is when I click on the cell again all it does is rehighlight that cell earlier in the equation. When I do this in excell it works fine. If i type the cell in it works but this can be a hassle. I like working in Iwork because the charts and graphs are nicer but I seem to be finding that some items like this, goal seek, and the fact that you can not extend a polynomiel function forward and back excell is much better than Iwork.

    Same question twice in one day. Hold down the command key when selecting it the second time.

  • White screen after i entered the wrong ID password too many times

    Hi,
    I was attempting to sync my blackberry information to my laptop when i was asked for the ID password, I tried a few options but could not remember it at all. When It reached the last attempt the screen said if I entered the wrong pin it would erase all my information. I stopped went to the website and changed my passwords to make sure, then I went back and entered the new password. Immediately the screen turned white and began to erase everything. I pulled the battery immediately and having been frantically searching the Internet for a way to undo this. Please Please Please help. 
    I have so much on my phone I really need. Especially videos of my baby :-( 
    Can anyone help me.
    Solved!
    Go to Solution.

    Hi and Welcome to the Community!
    Failure of the BBID credentials will never wipe a BB. What actually happened was you incorrectly entered your user-created device-lock password too many times, and it then proceeded with wiping the device, as per the requirements of the security level accepted when enabling that feature. There is no way to stop it.
    Sorry.
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • JTable get Old Value in the Listener of change Value

    Software
    JDK 1.5 Update 6
    Requirements
    I have a JTable I want to show the sum total of certain Cell Value.So I have added a TableModelListener by which on updating the cell Value I change the total in the JTextField. The Problem is If I change the value then I have to get the previous value that the cell had. How to get that original value before the update.
    There is a way by which we can get the same by inserting one dummy column which stores previous value.But this method inserts unneccessary if you require the total of 3 columns and if you require the same thing again and again in different frames
    Is There any way by which we can show the total
    Thanks in advance
    CSJakharia

    Can I maintain a sum of a column in a JTextField such that I change the sum as soon as any value in that column is changed without recalculating the totalYes, now I understand the question you just want to update the total with the difference between the old value and the new value.
    I don't see why you are going to all this trouble. Why complicate your program, just loop though all the values in each column and add them together. You will not have a performance problem. Here is a similiar example of this approach:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=566133
    However, if you still don't like that solution then you can try overriding the getCellEditor(...) or prepareEditor(...) methods of JTable. These methods should be invoked when you start editing the cell and you could query the TableModel and save the current value.

  • IPhone Date & Time keeps changing to "Cupertino"  time zone

    Hi
    Every time i change my Time Zone in Settings>General>Date & Time to "London,United Kingdom" it correctly changes to "London" but if i exit Settings and navigate back to Time Zone settings it has changed to "Cupertino".
    This effects World Clocks and other apps which is most annoying.
    I have firmware 2.0(5A345) installed on the iPhone. Is there a way to upgrade this? Will i lose all my current data if i do a firmware upgrade? Will it even fix the issue?
    Please help, there are currently 2 options I have. Find a fix or move to Cupertino so that my iPhone displays the correct time.
    Is there a less drastic option?
    Thanks in advance!

    If i do that it states that i am running the current version. Maybe because it is a revision and not a proper update.
    My twin brother also has the the version that you have (54347).
    Apparently it updates the firmware when you do a "Restore" through itunes but that will wipe the phone clean of everything. I don't mind doing this as long as i can transfer my backed-up content but if i do a "Restore from backup" to tranfer all my settings etc i have a feeling it will revert it back to the firmware that the iphone was running when it was backed up. Hope that makes sense!
    Thanks

  • The impact of changing SAP system time zone.

    Hello gurus,
    We are in the company located in UTC+8 Time Zone. but during the system installation, the setting in SAP (tcode:STZAC) of the system time zone is CET, which is, not correct, and cause some issues: such as, when we try to send mail via SAP smtp, the sent time in the mail is always wrong.
    We tried to modify it to UTC+8, but since we already go live for several months, there're lots of application data in the system. Before that we need to make sure that this change will not affect the current implementation.
    Do you experts know the impact or risk of changing the system time zone after going live?
    Regards,
    Charlie

    Lets look at this from a logic perspective,  if your system is CET and you are moving to UTC+8 you are going a few hours ahead... so basically you'll find a gap in time in between the documents but you wont find any time conflict. So based on that it should be safe. You certainly need to check your jobs and make sure all necesary jobs will run so you can reschedule them if skipped by the time change (I guess).
    Regards
    Juan

Maybe you are looking for

  • Creative Cloud application not working

    All it does when I download and go to install/open is take me to the Adobe Application manager--I do not have the option to sync files or fonts. Please help.

  • IPhoto does not import video from iPhone 4

    We've been battling this problem for a while now. We have two iPhone 4's and any time we import photos to iPhoto, we have to select photos individually, making sure to NOT select any videos taken with the iPhone 4, in order to get them to import to i

  • Problem with PDFs

    [URL]http://www.casablanca.se/bilder/sitplan.pdf[/URL] This map i made in illustrator CS3. Placed in Indesign and made into a PDF. For some reason parts of the vector graphics turn to pixels. Cant figure out why. It doesn't matter how I make the PDF,

  • HT1551 takes along time to download movies

    Why does it take along timetodownload amove?

  • Printing Problem in MS Excel

    When in Excel, I try to pring fast draft or regular draft both with plain paper. For some reason, I can't choose plain paper from the paper selection as it is grayed out. So when I print anything, it takes forever and colors it pixel by pixel. No mor