Any body please can solve my problem that iam facing with JTable

Dear sir,
Iam doing an educational product using Swing as front end in that
iam using JTables. And back end iam using sqlserver. With jtable iam
facing very serious problem the problem is actually iam entering the values
in all the columns after that iam pressing the save button its not
saving but if i click on any of the columns and try to save its saving.
please anybody can solve my problem.Please if a piece of code is there ill
be very thankful to you. my mailid is [email protected]
regards
surya

The problem is, the cellEditor does not know that editing has stopped and therefore has not updated the model (where the data actually resides). When you click off the cell to another cell, the first cell knows it must be done editing because you are leaving it. If you click a button (or anything other than another cell), the cell being edited has no knowledge of this. You need to call stopCellEditing() on the cell editor and your problem will be solved. To do this, put the following method into your code and call it when you click the button to clear, save or whatever you need to do.
public void ceaseEditing() {    int row = this.getEditingRow();
  int col = this.getEditingColumn();
  if (row != -1 && col != -1)
    this.getCellEditor(row,col).stopCellEditing(); 
  }Hope this helped...

Similar Messages

  • Any body please can solve my problem  iam getting the exception

    hi
    Any body can give me the solution to how to solve the problem. Actually iam working on swing and EJB when iam trying to import 100html pages and trying to save that part its giving this below error.
    Exception occurred during event dispatching:
    java.lang.OutOfMemoryError
    <<no stack trace available>>
    Please ill be waiting for the reply.
    regards,
    surya

    Hi,
    Run your application using ...
    java -Xmx300m MyApplication
    300m is for 300 meg of virtual memory.
    JRG

  • Any body who can solve this

    Let me detail my schema i.e I have four tables
    1. ic_store: have storeCode,Description columns.
    2. ic_subStore: substoreCode,Description.
    3. ic_item: itemCode,storeCode(F.K),substoreCode(F.K),Description and others.
    4. ic_itemBal: itemCode,and Balances columns.
    Now I want to give my report the look as,
    Store\SubStore Item Description
    S0001 Main Gold Store
    SB0001 Sub Gold Store.
    ITM00001 Pure Gold 24 Kt.
    and so on.
    After Description Column another column for
    item balances.
    My Query:
    First Query :taking data from ic_store i.e storeCode and description.
    Second Query :taking data from ic_subStore'columns.
    Third Query :taking data from ic_item for item and its description and also taking data from ic_itemBal for balances.
    Problem : is that I have two parameters asking for--- from item to item
    but when I choose these parameters also store those have no items still defined appears and just take spaces.I want to remove those store which have no items defined still.
    Please let me know if I have conveyed my problem properly.
    Thanx in advance.
    null

    See if this works :
    Select t3.store_code, t1.description, t3.substoreCode, t2.Description,t3.itemcode, t3.description,t4.balances
    From ic_store t1, ic_substore t2, ic_item t3,
    ic_itemBal t4
    Where t3.store_code = t1.store_code
    And t3.substoreCode = t2.substorecode
    And t3_itemcode is not null
    And t3_itemcode between(:param1,:param2);
    I think this should work.

  • Any Function which can solve my problem.

    Hi all
    I am working on Character based report from which i use to take print on my check using dot matrix printer.
    my query is
    1) when i want to type my amount in words there may be chances of overlapping my amount in words with other field because may be the value is too large.
    for e.g here in front of rupee that much character be fix other may go to other line.
    PAY............................................................
    RUPEES....................................................... RS.2206
    i have tried
    SELECT SUBSTR('Two Thousand Two Hundred Six only',1,25) FROM DUAL
    SELECT SUBSTR('Two Thousand Two Hundred Six only',25,100) FROM DUAL
    but some time the value get changed then like 3206
    then
    if we will use same in report
    SELECT SUBSTR('Three Thousand Two Hundred Six only',1,25) FROM DUAL
    SELECT SUBSTR('Three Thousand Two Hundred Six only',25,100) FROM DUAL
    PAY............................................................
    RUPEES.Three Thousand Two Hundre. RS.2206
    ed Six only.
    run time in report.it should not come like this.
    is there any function or solution for this.

    assuming your max length is 25, this sql will split the string at the last blank:
    WITH t As (
        SELECT 'Three Thousand Two Hundreed Six only.' text FROM dual UNION
        SELECT 'Two Hundreed Six only.' FROM dual UNION
        SELECT 'Three Thousand Three Hundreed Three only.' FROM dual
    SELECT
        SUBSTR(text, 1, INSTR(SUBSTR(text, 1, 25), ' ', -1) - 1) row1,
        SUBSTR(text, INSTR(SUBSTR(text, 1, 25), ' ', -1) + 1) row2
    FROM t;
    ROW1
    ROW2
    Three Thousand Three
    Hundreed Three only.
    Three Thousand Two
    Hundreed Six only.
    Two Hundreed Six
    only.

  • Any body who can solve it

    1).I want to call oracle graphics app. from oracle forms6.
    2).Same as above with parameters.
    Thanx in advance!

    Hi
    Create a chart control in u r form. In the When new form instance or when new item instance
    1) Create the parameter list at runtime (param_id)
    2) populate the graph using
    Run_product(Graphics,'file name with path',asynchornous,batch,filesystem,param_id,:block.chart_item_name)
    Hope this will help u.
    Bye
    Mrs.Srikanthan

  • How I can solve this problem or manipulate it ports 80,443 are closed by ISP and they don't want to open it

    hi,
     I see that I have a particulier abonnee of my ISP , which has closed all the ports for security reason and they don't want to open  any of it 80,443 ect.
    suppose If I want to use Essential server 2012  how I can solve this problem , essential wants domain name whith A record.
    I asked DDNS service provider if I lease from them a domain name whith A record  would that help to open or manipulate the port 80,443  they said that I have to solve this problem myself . they lease only domain names with dynamic dns records.  
     so what can be a solution the ISP provider won't open this ports , how I can solve this problem .   domain name with ip adres is not helping so what it's go to help?
    thanks
    johan
    h.david

    The domain name in this instance is only used for remote access, and is seperate from the active directory domain name.
    If your ISP blocks port 80 and 443, and you dont intend to use remote access anyway, the wizard will likely not complete successfully whether you have a valid domain name or not.
    Robert Pearman SBS MVP
    itauthority.co.uk |
    Title(Required)
    Facebook |
    Twitter |
    Linked in |
    Google+

  • Is there anyway I can recover a picture that was taken with a LG Octane that was not saved?

    Is there any way I can recover a picture that was taken with a LG Octane but wasn't saved?

    I'm not sure. If you were to get it waived, you'd have to use Contact Apple Support.

  • I guess the problem come from me or I really need those contacts before he calls me for it. I'll try some method that I got from some responders on your support website. Do you have or can you recommand any software that can solve this problem?

    I guess the problem come from me but I really need those contacts before he calls me for it. I'll try some method that I got from some responders on your support website. Do you have or can you recommand any software that can solve this problem?
    One more thing. I just update my iphone that my boss gave to me but it seems to be like it giving me some trouble. My iphone was updated not too long and was successful. I try to lock into it and it telling me emergency call. I plug it to my itune and it telling me that the sim card is not valid or supported. So I inserted my sim card that I usually use to call and it still saying the same. Please help me get into it.

    And as far as paying for phone support, here are a few tips:
    If you call your carrier first and then they route you to Apple, you usually don't have to pay for phone support.
    If you are talking to Apple and they ask you to pay a support fee, ask if you can get an exception this time.  That usually works once, but they keep track of the times you've been granted such an exception.
    If you still end up paying the support fee, that fee only applies if it's not a hardware related issue.  In other words, if it can be fixed by just talking over the phone and following Apple's instructions, then the fee applies.  But if your device is deemed to have a hardware failure that caused the issue, then the fee should not apply, and you can ask for it to be waived after the fact.
    This forum is free, and almost all of the technical support articles the Apple tech advisors use are available on this website.  Literally 99% of what they can do over the phone is just walking you through the publicly available support articles.  In other words, you're paying the fee to have them do your research for you.  It's like hiring a research consultant to go look stuff up in the public library so you don't have to.  You're capable of doing it; you'd just rather pay someone to do it for you.
    It's like Starbucks.  You know how to make coffee.  Everyone knows how to make coffee.  And Starbucks coffee isn't any better than what you could make at home for far less.  But you want the convenience.  So you're really paying a convenience fee.  Milk is more expensive at 7-Eleven than it is at the grocery store... because it's a convenience store.

  • Hi, you know how i can fix the problem that my iPhone5s not have any coverage in place? Please.

    Hi, you know how i can fix the problem that my iPhone5S not have any coverage in place?
    Please, and thanks.

    If it's out of warranty, Apple will replace your phone for $269.

  • Hello all .. i have a big problem in my ipad version 5.1.1 that is when i connect the ipad with my computer the i tunes give me this message ( itunes couldnt connect to this ipad .an unknown error occurred (0xE8000012).) how i can solve this problem pleas

    hello all .. i have a big problem in my ipad version 5.1.1 that is when i connect the ipad with my computer the i tunes give me this message ( itunes couldnt connect to this ipad .an unknown error occurred (0xE8000012).) how i can solve this problem please
    and this is an pic for the problem

    There is some troubleshooting for 0xE8 error codes on this page : http://support.apple.com/kb/TS3221 - you could see if anything on that page fixes it

  • I have a problem in my iphone 4 with wi-fi after update to IOS6 please can help my how can solve this problem?

    I have a problem in my iphone 4 with wi-fi after update to IOS6 please can help my how can solve this problem?

    Nope
    One needs to press the home and sleep / wake keys together for the phone to reset
    The other thing I could recommend
    Let the battery run out and the phone completely "die"
    It may take a day or two with it not being used
    Then plug it in to charge and see if there is any change in behavior
    If you cannot get this to work - you may need to bring it to an Apple store

  • I want to sync tasks in Outlook with my iPhone. I have tried Toodledo (not good) and Todo. Todo works, but it cuts off most of the text. I only get the beginning of my (long) lists. Any ideas how I can solve this problem?

    I want to sync tasks in Outlook with my iPhone. I have tried Toodledo (not good) and Todo. Todo works, but it cuts off most of the text. I only get the beginning of my (long) lists. Any ideas how I can solve this problem? I starting to regret that I switched to iPhone...

    Usually if you have some kind of hardware failure there is some beeping during POST or most motherboards now have LED indicators to produce and error message based on the type of failure
    So if its bad memory, not place properly, mismatched, processor not inserted properly, mismatched voltage or voltage connector not present etc it beeps or generates the error id.
    Power supplies can be tested for failure. There are some walk throughs for testing just them with a switch, paperclip or a jumper (I'd suggest not doing this if you are not familiar with the dangers of electricity).
    Memory can be tested with memory diagnostics programs like Memtest+
    Processors can overheat if the proper precautions have not been taken usually you will get a POST beep or error code for that.
    If the motherboard has no response then do the basics first:
    Check power connectors and power supply. Once you determine that is not the case move on to other items like graphics cards in all the way or memory.

  • HT1386 I recently bought a new laptop and installed itunes. I was trying to sychronize my ipad and iphone, but it seems that the itunes was unable to recognize the devices. Can you tell me how I can solve this problem?

    I recently bought a new laptop and installed itunes. I was trying to sychronize my ipad and iphone, but it seems that the itunes was unable to recognize the devices. Can you tell me how I can solve this problem?

    how new is the Notebook ?
    Also double check your firewalls and virus protection that they are not blocking any ports also make sure you are plugging in the fastest USB

  • My dvd player will not let me change regions, it just quits when i do, now its stuck on region 1. Any thoughts how i can solve this problem or get round it in some way?

    My dvd player will not let me change regions, it says i have one more chance to change it, then it just quits when i do, now its stuck on region 1. Any thoughts how i can solve this problem or get round it in some way?

    Usually if you have some kind of hardware failure there is some beeping during POST or most motherboards now have LED indicators to produce and error message based on the type of failure
    So if its bad memory, not place properly, mismatched, processor not inserted properly, mismatched voltage or voltage connector not present etc it beeps or generates the error id.
    Power supplies can be tested for failure. There are some walk throughs for testing just them with a switch, paperclip or a jumper (I'd suggest not doing this if you are not familiar with the dangers of electricity).
    Memory can be tested with memory diagnostics programs like Memtest+
    Processors can overheat if the proper precautions have not been taken usually you will get a POST beep or error code for that.
    If the motherboard has no response then do the basics first:
    Check power connectors and power supply. Once you determine that is not the case move on to other items like graphics cards in all the way or memory.

  • Capturing  through Sony HDV using firewire800 to 400 adaptor is not recognizing can any body help me solve this

    I am trying to capture using firewire 800 to 400 adaptor through a Sony HDV VTR. The VTR is not recognizing can some body help me solve this problem.
    I am using FCP7 and IMAC with 10.6.8 version os
    I dont have a 6 pin or 400 firewire port in the system

    Let's start with basics.
    Does your computer recognize that there is a VTR attached?
    • Open up system profiler>Hardware>FireWire.  Does your machine show up?
    If no, you need to figure out if the problem lies with the VTR, the cable, the adapter or your computer.
    My guess is with the adapter. A number of people have expressed frustration getting fw400 device to work through fw800 ports.
    If that's your problem, see if you can find an older Mac w/ fw400 ports or a dedicated fw800 to 400 cable.
    good luck,
    x
    ps - In "locking the barn after the paddle has been lost upstream" mode, this is why non-expandable computers like the iMac are so problematic. A MacBookPro with the expresscard 34 slot or a MacPro with 3 slots can work around these kind of issues. A closed box like the iMac is a dead end. Sorry.

Maybe you are looking for

  • Can't get it to work

    I've exhausted everything with my LaCie 1TB drive connected to my G5 iMac: • Formatting the partition to Apple Partition Map • Formatting to GUID (just in case) • Plugging the drive directly into the iMac • Trying the other Firewire port • Connecting

  • Log4J-Error + Unexpected Database-Connector-Error

    Hello! I am trying to integrate a Report into an existing Java Eclipse-Project usind Crystal Reports for Eclipse. To do this I am modifying the example program which comes together with the installation. I am trying to pass the data to the report dir

  • Help! can't restore my iphone 5, error 3200

    im trying to get my old backup by restoring it, but it appears error 3200, i tried a few times already

  • IPhone was unplugged during update; now completely unusable, not recognized

    So I was updating to the latest iPhone software through iTunes when somehow, the USB got unplugged. Now, the phone is always off; when I turn it on it just has a picture of a USB cable pointing towards the iTunes logo for a few seconds, and then shut

  • How to declare synonym for a package function with a DBLink

    Hi, I have a PL/SQL package 'pkg' and a function in the package 'func' at another db using a dblink. How to I create the correct syntax to create the synonym for this package and function. create synonym --- for ---@dblink Thanks.