Editing AbstractCellEditor after fireStoppedEditing

Hi,
I am a newbie in applet. Will really appreciates it if somebody can point me in the right direction. I have the cell below where a JTextField and JButton is set inside the field. The JTextField is disabled for user input. Whenever the button is clicked on, a new applet 'window`' appears where a user can select some data and the data will be updated into the cell.
My problem now is, whenever the cell has values, no matter how many times I clicked on the cell to edit it, I was not able to get the button to show up. Once I cleared/deleted the data from the cell, then only will the button appears if I click on the cell. Meaning that, the button will only be visible whenever the cell is empty. Is there a way where I can edit the cell even when the cell is with data?
Thanks first!
public class DealerCodeCell extends AbstractCellEditor
     implements TableCellEditor, IBeneDealerCallBack
     class DealerCodeField extends JPanel
          implements ActionListener
          private JTextField text = null;
          private JButton button = null;
          public void init()
               GridBagLayout gb = new GridBagLayout();
               GridBagConstraints c = new GridBagConstraints();
               setLayout(gb);
               c.fill = 1;
               c.weightx = 1.0D;
               c.weighty = 1.0D;
               c.gridwidth = -1;
               gb.setConstraints(text, c);
               add(text);
               c.weightx = 0.0D;
               Dimension d = new Dimension(14, 10);
               button.setPreferredSize(d);
               button.setMaximumSize(d);
               button.setMinimumSize(d);
               gb.setConstraints(button, c);
               add(button);
               button.addActionListener(this);
          public void setText(String value)
               text.setText(value);
          public String getText()
               return text.getText();
          public void requestFocus()
               button.requestFocus();
          public void setEnabled(boolean b)
               text.setEnabled(b);
          public void actionPerformed(ActionEvent e)
               if(e.getSource() == button)
                    l.setLocationRelativeTo(null);
                    l.setVisible(true);
          public DealerCodeField()
               super();               
               button = new JButton("...");
               text = new JTextField();
               init();
     private Vector vec = null;
     private int row = 0;
     private DealerCodeField component = null;
     private BeneDealerList l = null;
     public DealerCodeCell(Vector dealerCodeVector)
          vec = dealerCodeVector;
          component = new DealerCodeField();
          init();
     public void init()
          java.awt.Frame f = JOptionPane.getFrameForComponent(InputTable.getInstance());
          l = new BeneDealerList(f);
          l.setCellEditor(this);          
          l.pack();
     public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
          if(!isSelected)
               return null;
          this.row = row;
          DealerCode obj = (DealerCode)vec.get(row);                    
          if(obj != null){               
               component.setText(obj.toString());
          else{               
               component.setText(null);
          String type = Config.getParameter("beneDealerType");
          if(Config.DEALER.equalsIgnoreCase(type))
               component.setEnabled(false);
          else               
               component.requestFocus();               
          return component;
     public boolean shouldSelectCell(EventObject anEvent)
          return false;          
     public boolean stopCellEditing()
          try {
               if(component.getText() != null && component.getText().length() > 0)
                    vec.set(row, new DealerCode(component.getText()));
                    component.setBorder(BorderFactory.createLineBorder(Color.black));
               } else
                    vec.set(row, null);
                    component.setBorder(BorderFactory.createLineBorder(Color.black));
               fireEditingStopped();
               return true;
          } catch (Exception ex) {
            if (component.getText()!=null && component.getText().length()>0) {
                 Config.alert("Dealer code", ex.getMessage());
                 component.setBorder(BorderFactory.createLineBorder(Color.red));
                 return false;
            } else {
                 this.fireEditingCanceled();
                 return true;
     public Object getCellEditorValue()
          return vec.get(row);
     public boolean isCellEditable(EventObject anEvent)
          return true;
     public void setSelection(Object b)
          DealerCode an = new DealerCode(b);
          vec.set(row, an);
          fireEditingStopped();               
     }     

But where on the HD did you get them to upload? I'm guessing you may have selected them from the Originals folder and not the Modified folder. That would explain getting the unmodified version uploaded.
In the future, edit, crop and adjust the photos and put them in an album. Then export that album as full sized files to a folder on the desktop. Then upload from that folder. That way you assured of getting the edited version for printing.

Similar Messages

  • How to disable the edit Permission after the task approval in project server 2010.

    Hi ,
    Can this be done.
    How to disable the edit Permission after the task approval in project server 2010.
    I mean How to Disable approve/Reject Permission Once task approved in project server 2010.
    Any Help Would be more than Welcome.

    Hi Rohan,
    Just talking about the tool capabilities, preventing a task approver (status manager) to approve/reject updates once he has already approved once is not possible out-of-the-box. You grant permissions to user: if you grant a user to approve task updates then
    he has the permission to approve updates, no matter if it is the 2nd or 3rd time the task is approved or rejected.
    Then of course you could do not custom development to do that.
    I'd say that in order to help you, we would need to understand a little bit more your business need. Why do you need to achieve such a goal? We can surely propose you workaround.
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • How to import original clips edited in After Effects into Adobe Premiere, without the After Effects

    What is the quickest and easiest way to bring clips that were edited within after effects into adobe premiere? I just want the original clip as it is cut, without any of the after effects manipulation. I am trying to gather the cuts of a green screen project together that was compiled and edited within Adobe After Effects, so they can be rekeyed. I want to detach all effects work, and just have a straight green screen cut of the original files. Each cut though, is its own compilation. Simply importing to a new sequence doesn't seem to be the answer because I first have to uncheck many effects to find the original clip buried beneath layers of mattes and various effects. I have probably 400 different cuts, and currently my workflow is super slow just searching for the original clip in after effects, looking for the time code, then matching the original clip and timecode into Premiere. Is there a faster an easier workflow?
    Thank you

    I just want the original clip as it is cut, without any of the after effects manipulation.
    Then you need the original clip.
    my workflow is super slow just searching for the original clip in after effects
    It's what you may need to do, though. Unless you know exactly where the clips are on the hard drive.

  • How do I edit HTML after publishing site?

    What does it mean to edit HTML after publishing the site? How exactly is that done? From another thread, it seems that re-publishing will overwrite that HTML - is that true? Thanks for any insight into this.

    This link may help:
    http://iwebfaq.org/site/iWebAlternativeHTML.html

  • How do i save an imovie so that i can be able to edit it after i reinstall my OSX

    I really need to save this imovie that i have created into my hard disk but i also want to be able to edit it after i reinstall my OSX thing as everything will be earased from my laptop. Please help this imovie means so much to me

    Save it to your external hard drive - where you keep you backups.

  • PR non editable fields after final release

    we like to  do in PR  Material's short text, date, Pur Grp & Requested by heads are in editable stage after final release.
    we need to make non editable mode.  how we can do this...
    please advice
    Thanks
    Rajesh G

    Dear Rajesh,
    You may define as Field Selection Key for your PR release indicator via customizing:
    SPRO
    MM -PUR-PR-Release procedure-Procedure with classification
    - Set Up Procedure with Classification
    -Release indicator
    -Now choose your final release indicator
    -Fill in FSK:
    Example:
    Field Selection Key      FZ01
    Now add this FSK to your customizing via screen layout:
    SPRO:
    MM-PUR-PR
    -> Define screen layout at doc level
    -> Add your FSK to this customizing and customize
    according to the field as you want.
    Best Regards,
    Ian Wong Loke Foong

  • Cant edit photos after exporting

    Hello all. Relatively new to Lightroom here so Im not sure if this is a dumb question or not.
    I imported about 220 photos and worked on just about 20 to 25 of them. I then selected those 25 from my collection and exported them to a folder on my PC so I could then import them into Picasa.
    After doing that, I returned to Lightroom to edit more from that collection but could no longer do so. I couldnt make any changes to the ones I previously worked on, but more importantly, I couldnt make any changes to any of the ones I hadnt even touched yet. When you export photos from a folder, does Lightroom automatically prohibit you from changing anything else? It seems the only way I can bypass this problem is just to delete the folder and re-import the photos from my camera again, creating a new folder.
    Am I missing something? How can I go back and edit photos after exporting? Can it be done?
    Thanks!

    Hi Judy
    On the bottom left of the left tool bar there are two buttons. Import and Export. I exported my photos using the Export button. When you do that, the screen that comes up prompts you to set up an export location on your C drive. So I exported the photos to a folder I set up.
    I did not set up a catalogue or export any catalogue.
    I seriously doubt that Picasa had any effect on the folders in Lightroom. The two software application are totally separate. You dont directly transfer photos from LR to Picasa. You need to export from LR first to a location on your PC then Import from that file on your PC into LR. So I dont see how Picasa could effect the photos that are in LR.

  • Iphone restart when i try edit photo after installed ios 5.1

    iphone restart when i try edit photo after installed ios 5.1
    what can i do to fix this problem???

    Problem solved
    thnx
    i reinstall the software again

  • The green forward and back arrows under File and Edit disappeared after I downloaded the new Firefox Toolbar. How do get them back?

    The green arrows for page forward or back at the top left under File and Edit disappeared after I downloaded the new Firefox toolbar (for 3.6) and were replaced by Most Visited, Getting Started and Latest headlines Icons, which I have little use for. How do I get the Original Toolbar back?

    Is the Navigation Toolbar not being displayed? See below.
    <u>'''Can't see the Menu Bar'''</u> (File, Edit, View, History, Bookmarks, Tools, Help)?
    Turning the Menu Bar on and off is a new feature in version 3.6.
    ''(~~red:Linux & OSX see~~: [[Menu bar is missing]] )''
    <u>''Windows'' Method 1.</u> '''''Hold down''''' the key and press the following letters in this exact order: V T M then release the key
    <u>''Windows'' Method 2.</u> Tap the F10 key, while the Menu bar is visible, choose "View > Toolbars", click "Menu Bar" so that a check mark is placed next to Menu Bar
    <u>''Windows'' Method 3.</u> Tap and release the key. The Menu Bar will be displayed; then choose ~~red:V~~iew > ~~red:T~~oolbars and click on ~~red:M~~enu Bar so that a check mark is placed next to Menu Bar
    The Menu Bar should now be displayed permanently, unless you turn it off again using View > Toolbars. Check mark = displayed, NO check mark = not displayed.
    See:
    http://support.mozilla.com/en-US/kb/Menu+bar+is+missing
    http://kb.mozillazine.org/Toolbar_customization#Restoring_missing_menu_or_other_toolbars
    <u>'''Navigation Toolbar, Bookmarks Toolbar and other Toolbars'''</u> under View > Toolbars. Clicking on one of them will place a check mark (display) or remove the check mark (not displayed).
    <u>'''To display the Status Bar'''</u>, View, then click Status bar to place a check mark (display) or remove the check mark (not displayed).
    <u>'''Full Screen mode'''</u>
    http://kb.mozillazine.org/Netbooks#Full_screen
    Also see:
    ''' [[Back and forward or other toolbar buttons are missing]]'''
    '''[[Navigation Toolbar items]]'''
    '''[http://support.mozilla.com/en-US/kb/How+to+customize+the+toolbar How to customize the toolbar]'''

  • Changing Editing Timebase AFTER project is edited?

    Hi,
    I just noticed that my editing timebase is 29.27 and I shot with a Panasonic HVX 200 at 720p60. I've been using the preset codec for the DVC Pro HD 720p60. Is it possible to change my sequence to 59.94fps in the editing timebase AFTER my project has been edited? I tried doing this and it completed messed up the audio visual sync and speed.
    Also, what is the best codec for the Panasonic HVX200HD and is it possible to change this after editing as well?
    Thank you!
    DesSV

    OK, I have more info from the lead editor now. In a previous, very similar project, when the online house was given the 29.97 sequence with the same mix of 29.97 and 23.98 footage, they had no way to fix the repeated frame problem of the 23.98 footage. It goes frame 1-2-3-4-4-5-6-7-8-8, etc.
    They are saying that if it had been edited into a 59.94 sequence, it makes a smoother conversion, because of the 3:2 pulldown. Instead of repeating every fourth frame, it repeats one field every 1 1/2 frames (or something close to that).
    So our choices seem to be either a) use a 59.94 sequence, and reconstruct our first two days of work, or b) run hours and hours of footage through Compressor with some very specific settings to convert the 23.98 footage to 29.97. By the way, I tried two different tests of this, and failed miserably to get any improvement. Although it was now 29.97, it was still repeating every fourth frame. I was obviously wrong with one of the settings.
    It still confounds me that copying and pasting clips from a 29.97 sequence into a 59.94 sequence would result in completely different parts of the clips showing up - even the AE's temp VO track.
    My personal wish is that filmmakers would dispense with this MYTH that 24fps gives a video that's to be finished in 30fps a "cinematic look." It's completely bogus, and just creates problems.

  • To open & Edit the XLS file in edit mode after Extracting SAP data into it

    Hello Experts,
      I have a requirement to open and edit the xls file imidiately after downlaoding the SAP data into this XLS file. The XLS file is getting saved on presentation server (e.g. Destop/C: drive).
      I have used function module "GUI_DOWNLOAD" OR "DOWNLAOD" to download the data from SAP table to XLS file. But now I need this XLS file to be get opned automatically after finishing the Download, so that user can make changes into XLS file and can save the changes into it. After saving I have to upload this modified Data into SAP table again.
    For this I am really not aware how to get it done..but I believe you experts will definately help me out..waiting for your reply.
    Thanks,

    HI,
    did you ur problem was solved if not check this code once.
    now only i tried it my system , it opens xl file and save all data in it.
    DATA: ZKNA1 LIKE STANDARD TABLE OF KNA1 WITH HEADER LINE.
    SELECT * FROM KNA1 INTO TABLE ZKNA1.
    CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
      EXPORTING
        FILE_NAME                       = 'C:\Documents and Settings\rajesh.NACL\Desktop\XLSSDSDS.XLS'
      CREATE_PIVOT                    = 0
      DATA_SHEET_NAME                 = ' '
      PIVOT_SHEET_NAME                = ' '
      PASSWORD                        = ' '
      PASSWORD_OPTION                 = 0
    TABLES
      PIVOT_FIELD_TAB                 =
       DATA_TAB                        = ZKNA1[]
      FIELDNAMES                      =
    EXCEPTIONS
      FILE_NOT_EXIST                  = 1
      FILENAME_EXPECTED               = 2
      COMMUNICATION_ERROR             = 3
      OLE_OBJECT_METHOD_ERROR         = 4
      OLE_OBJECT_PROPERTY_ERROR       = 5
      INVALID_PIVOT_FIELDS            = 6
      DOWNLOAD_PROBLEM                = 7
      OTHERS                          = 8
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    thanq,
    rajesh.k

  • How can labview update the string control (text-edit box) after we have pressed the carriage return key on the keyboard during text-editing within that box?

    Dear readers,
    I have been trying to work out how to get labview to detect the event when a 'string' control has been modified, where the user has finished editing the string either by 1) pressing the enter key on the keyboard, or by 2) taking the focus away from the string control again. For example.. if I use the mouse to click on the string control and then I type 1234 into the box, I would like to have a routine that does something once the user hits the Enter key of the keyboard, or when the user takes the focus away from the string control again by clicking on something else. I would like the routine to respond even when the user didn't change anything in the text box (such as when we mouse-click on the edit box to go into edit mode, and then mouse-click on something else to remove the focus with no changes to the contents in edit-box).
    The purpose of my routine is to have a edit-box for a user to change for example the centre-frequency of a vector network analyser, so that the centre-frequency of the network analyser can change once the user finishes entering a new value in the text-edit box by hitting Enter key after the number is keyed in. Even if the user has clicked on the edit box, but changes their mind by mouse-clicking on something else to remove focus from the edit box, I would still like labview to detect the event when the control loses focus, so that the centre frequency can be updated anyway (to the same value that was already in the edit box).
    So far, I've tried set the string control option to 'limit to single line', so that I can try to scan for a carriage return .. '\n' ... pattern in the string. Unfortunately this doesn't work because labview doesn't seem to attach the '\n' to the end of that single line.
    Could someone please suggest ways to set a flag when a user hits Enter during text-edit mode of a string control, or when focus has been removed from the string control?
    While I've only described my problem for controlling a single control parameter on the gpib device, I'd like to make this feature work so that I can do the same kind of thing with other control parameters as well.
    Thanks so much in advance.
    Kenny

    Hi Kenny,
    instead of using the event structure, you can directly achieve to what you want by the KeyFocus property of the string control.
    - Enable Limit to single line option
    - Create the property KeyFocus in read mode and connect an indicator
    Each time you click on the string to modify it KeyFocus is True; when you click away or hit Enter KeyFocus is False.
    You can toggle your settings when KeyFocus changes from True to False.
    Alberto

  • Error while Editing Item - After importing pagegroup

    Hi All,
    We have Oracle Application server 10g (10.1.2) with Oracle Portal 10.1.2.0.0. as a test environment in win 2000 server.
    We installed a new Oracle Application server 10g (10.1.2) (production) with 10.1.2.0.2 in Suse Linux Enterprise server 9. every thing was fine.
    We have migrated one simple page group from source(win) to a new Portal in Linux ( by following the steps of Portal export / import Doc.). This is by exporting transport set, dmp file in source side and importing dmp file and transport set on the target. The import was successful. I checked the Navigator and found the imported page Group. Also all the sub pages and items have been found with proper regions.
    But when i'm trying to edit any item,region or adding region,item, it shows the following error. -----------------------
    ERROR :General invalidation message processing exception: User-Defined Exception (WWC-40018)
    General invalidation message processing exception: Error invalidating content, Non-200 status code returned by Web Cache. Status: 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. ) (WWC-40018)
    Note:Please kindly note that our repository and portal midtier on same machine. So there is no firewall between portal and repository. Also there is no proxy settings given in Portal. Moreover, I reinitialized the webcache invalidator password in both web cache admin and Portal. Nothing is working.
    Please kindly help me in this regard urgently. and provide me the solution along with the navigation details.
    Thanks in Advance,
    Abdullah Shafi

    HI,
    Pls reply me.did your issue resolved regarding webcache wwc-400018 ,same is the problem for me,webachacheadmin and invalidator pages are not working and while editing items in portal does reflect instaed it gives the error
    Error
    General invalidation message processing exception: An error occurred while closing the HTTP connection after receiving an error while getting the invalidation response from Web Cache: ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1389
    ORA-29261: bad argument
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1231
    ORA-29259: end-of-input reached (WWC-40018)
    General invalidation message processing exception: An error occurred while getting the invalidation response from Web Cache: ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1231
    ORA-29259: end-of-input reached (WWC-40018)
    Thanks and Regards,
    Azeem.

  • IPhoto images missing in Edit window after importing iPhoto albums folder

    A friend of mine with new macbook tried to import her iPhoto images from an external hardrive. She move it to her user photo album and then i believe she tried to point to it after launching iphoto. She told me there were some options windows popping up and she does not remember what they said but the current result is that many of her photos do not appear when she clicks on the thumb nails to edit them: said there is a grey field with a questin mark.
    My thought was to somehow repoint to the file or dump the .plst file.
    Any ideas?
    Thank you,
    todd

    Todd
    The question mark shows up when the link between the thumbnail in the iPhoto Window loses the location of the file it points to.
    The most common cause of this is User activity in the iPhoto Library Folder. It is strongly advised that you do not move, change or in anyway alter things in the iPhoto Library Folder as this can cause the application to fail and even lead to data loss.
    As your friend now sees.
    Unless your friend nows exactly what changes she has made, I'm afraid the best way to fix this is to start again, importing from your originals folder.
    There are comprehensive instructions for moving the iPhoto Library Folder in the Help, or if you need more you can most on here.
    Regards
    TD

  • Lagging pixels on video while editing and after render-export. -How do I fix this? the original media is Crystal clear.

    Hello guys,
    I am trying to edit some gameplay footage I captured using "AverMedia Game Capture HD", but whenever I import the media (at 1080i),
    There are pixels that hang on the video player, mostly when the camera is turning left to right,
    and on occasion, some random color blurs that bloom out of nowhere.
    I attached a image so you can see what it looks like:
    Here is what the video looks like after it is rendered and exported.
    Along with the visual pixels, it also displays horizontal lines. (possibly due to my export settings, I was in a hurry just to test it)
    Both the capture device and final cut pro x are upgraded to the latest firmware/updates.
    I am using HD AC Component cables (blue green red) both for in and out connections between ps3 - cap device - tv.
    The capture device automatically records files to mpeg-4.
    The resolution of the tv, and recorded footage is in 1080i (1920 × 1080) and the quality looks great when I play it through quick time or any other media players:
    Any tips or info? I have been using Final Cut pro  x since it was released. I am not a professional but I have used it for some very important jobs thorugout the year, but I am really stumped with this.
    Overview:
    -Media info
    File Type: mpeg-4
    Codec: H.264, AAC
    Dimensions: 1080i (1920 × 1080)
    Thankyou for the help!

    Alright, lets get the good news out first:
    Converting the file definitely fixed the pixel issues.
    However, there where frequent "blips" of some frames that disturbed the video.
    Also, the converter created a 5GB file that was originally around 300MB!!
    It put a serious load on importing, rendering and transcode analysis, however the video played back smoothly, it would be perfect despite the large file size and frequent frame glitches.
    This is all due to my lack of knowledge in video property conversion.
    At this point, I feel that I am asking for too much, but I am really stumped...
    I can try so many possibilities, but this would save me allot of time if I could get the help:
    What converter settings should choose to have the optimal video file that,
    plays back smoothly,
    plays In HD,
    is compatible with fcp,
    and can still stay moderately low on file size?
    Here is the current info on the RAW video file:
    Here are the previous settings I used to convert:
    (slight improvemnt, but extremely high file size, and still has some frame glitches)
    What should I have (not?) done with these options?
    (I admit I chose these settings and had no Idea what the heck I was doing)
    Again, thank you for your help, I really appreciate it.
    EDIT:
    For reference, This is the new glitch issue I see:
    Here is the normal frame,
    Here is the next frame when a glitch apears.
    It seems to be replying a previous frame in the video.
    Also, the horozontal lines do not show during live playback, only when the play head is paused, or when scrubbing.

Maybe you are looking for