Cut and delete (paste and copy)

Hello all.
I have written a simple Spreadsheet application using the JTable. I had thought i correctly implemented the cut/copy/paste and delete methods as when i selected a range of values, and click cut, the would disapear and paste when i selected them to. However, if i entered any values in the cell where i cut them from, the values would not be stored, and disapear as soon the the cell selection changes. I even printed out the values in the table model, and they are not stored there. The same applies to delete. The original values are deleted, but the cells which previously contained the deleted values will no longer accept any input. I have posted the delete method below. Thanks for your advice in advance, Rupesh
public void delSelected() {
          // Check to ensure we have selected only a contiguous block of
          // cells
          int numcols = myTable.getSelectedColumnCount();
          //       System.out.println("num cols is " +numcols);
          int numrows = myTable.getSelectedRowCount();
          //         System.out.println("num rows is " +numrows);
          int[] rowsselected = myTable.getSelectedRows();
          int[] colsselected = myTable.getSelectedColumns();
          if (myTable.isEditing()) {
               int row = myTable.getEditingRow();
               int col = myTable.getEditingColumn();
               myTable.getCellEditor(row, col).stopCellEditing();
          value = "";
          for (int i = 0; i < numrows; i++) {
               for (int j = 0; j < numcols; j++) {
                    myTable.setValueAt(value, rowsselected, colsselected[j]);
               MyCell temp = //get the current sell, and set the expression to ""
                         (MyCell) _myTableModel.getValueAt(
                              rowsselected[i],
                              colsselected[j]);
                              temp.setExp(value);
                    //if (j<numcols-1) ;

At work right now and do not have a screen shot can post later..
OK try this..IN LR5 you are in the LIBARY module  (OK with me this far)
you have images there (in your catalogue) on the bottom you have the strip of images from the folder you have selected on the left..in my case  Photos, years, topic so Photos-2013-vermont.  (we all got this so far?)
Now on the bottom of the sreen you have the strip witht he images on in..if I select 1 or several in a group I then go to EDIT on the top left (iMac) where it lists FILE,EDIT ect if I select edit ..COPY,CUT,PASTE and DELETE are greyed out OR if I right click on the mouse it greyed out..
In simplist terms if you wanted to DELETE NOT REMOVE an image what procedure would you do??? when I do that DELETE option is greyed out

Similar Messages

  • Cut and Copy Part of a Path?

    Thank you for the help last night! I'm back with my "cat." I really appreciate any help!
    I want to make the ear on the left identical to the ear on the right. Because this is a logo and it needs to be symmetric, I don't want to risk free-handing it. (I was able to do this with the eyes, but the first eye was drawn as its own little area so selecting/copying/reflecting the whole thing was simple.)
    I made this primarily with the Pen Tool. I tried using the scissor tool to cut my paths. Maybe I'm doing it wrong but it doesn't work.

    I would do the following:
    Make a copy and outline the whole illustration:
    Then I would unite the whole thing:
    Draw a rectangle over the top and rotate to find the centre line (as is off a bit):
    Divide so appears like:
    Hit delete twice so you are left with:
    Add a guide so sits flush with the top point:
    Use the rotation tool and select the point that touches the guide line:
    Rotate until the rest of the cat is in line with the guide:
    Then hit 'O' to use the reflect tool and holding alt, click and drag to "copy the cat" so appears like this:
    If you look at the outline view you will see this:
    With you selection tool start selecting all the unnecessary lines:
    You will also have to do some touch up work (by combining and dividing) with the smaller parts to get your finished result:
    I hope this helps.

  • Wave burner 1.1.2 cut and copy

    Is it possible to use the edit page at all ??
    I couldn´t manage it up to now to cut, copy or delete files, which is very boring. If I want to cut only one region or replace it, I always have to create a new file and do every editing again.
    G4 733   Mac OS X (10.3.9)  

    These links should help:
    Natalie Beresford: Multiple iPods/iTunes Installations
    How to use multiple iPods with one computer
    How to share music between different accounts on a single computer

  • Cut and copied data now to merge into just 1 table?

    I have lots of data from about 10 different Numbers spreadsheets, however I want to just merge like the 10 table into just 1, so I can make it look neater!
    I can't seem to find a function for it and fairly new to Numbers
    Any help will be much appreciated
    Thanks

    Hi macwhore,
    Copy/Paste is what I would do.
    quinn

  • Safari5.1.x Cut/Paste and Copy/Paste don't work

    Please reconsider the severity of this bug!
    It may be related to something more fundamental in the Safari cut-n-paste functionality. It seems that Safari ALWAYS pastes an instance of the parent macro when copying content wrapped in a macro. The same behaviour is seen when copying and pasting text wrapped in the "Numbered headings" macro.
    I believe the problem is mainly related to the cut and copy function rather than the paste function, since the instance of the parent element is also pasted when attempting to place the cut content outside the parent element. This effectively means that there is no way to move content out of a macro, since deleting the wrapper macro will also delete the contents.
    All in all this makes Safari 5.1.x pretty much useless as a client to Confluence, since basic editing will have to involve pasting to and recutting from some external program to perform the most basic of editing operations. In a corporate environment users may not be allowed to install (or use) an alternative browser.

    I have this problem using Safari 5.1.7 on OS 10.6.8. I believe the issue exist with much before versions as well. Please someone reconstruct the issue and confirm it. Thanks. this is making Safari useless.

  • The MacBook Pro will not allow me to cut-and-paste to and from or to click-and-drag to the external drive. I can copy-and-paste, but then I must send the original to the trash, which doubles the time and effort. Is there any way to cut-and-paste?

    I have recently switched from a PC to a MacBook Pro.
    I have a large number of documents and photographs on a multiterrabite external drive, backed up on a second multiterrabite external drive.
    Both external drives are formatted for MacIntosh. This has been verified by agents at an Apple store and also at Best Buy in two different cities.
    This is the problem:
    The MacBook Pro will not allow me to cut-and-paste to and from or to click-and-drag to the external drive. I can copy-and-paste, but then I must send the original to the trash, which doubles the time and effort. Is there any way to cut-and-paste?
    Also, the MacBook Pro will not allow me to rename multiple documents or photographs. I can click-and-rename a single one, but this is impossibly time consuming. I can batch-rename in iPhoto, but when I transfer the photographs to the external drive, the rename does not transfer.
    I’m reduced to using my wife’s Toshiba to cut-and-past, rename, and transfer documents. It works perfectly. Is there any way to do this on the MacBook Pro?
    Thanks!
    Roderick Guerry
    [email protected]

    Roderick Guerry wrote:
    The MacBook Pro will not allow me to cut-and-paste to and from or to click-and-drag to the external drive. I can copy-and-paste, but then I must send the original to the trash, which doubles the time and effort. Is there any way to cut-and-paste?
    No, this is a philosophical difference between Apple and Microsoft. Apple believes that it's dangerous to cut a file in case the user never pastes it; in that case the file is lost. Microsoft seems to not have this problem (if I remember Windows correctly) because they don't delete the originating file if it's cut but never pasted.
    Even though Macs have a lot of keyboard shortcuts, philosophically Macs have traditionally been mouse-first. This applies to file copy operations. In your case, what a Mac user would do is open the source window, open the destination window (on your second drive), and then Command-drag the selected files from the source to destination window. This is because a normal drag would leave the originals behind, while adding the Command modifier key tells OS X that this is a Move, not a Copy, so don't leave the originals behind.
    (In addition there are different rules for drag-copying within the same volume or between different volumes. If you drag between two folders on the same volume, the files are moved. If you drag between different volumes, the files are copied unless you hold down Command to delete the copies on the source volume.)
    Roderick Guerry wrote:
    Also, the MacBook Pro will not allow me to rename multiple documents or photographs. I can click-and-rename a single one, but this is impossibly time consuming. I can batch-rename in iPhoto, but when I transfer the photographs to the external drive, the rename does not transfer.
    Two problems in this case. First, batch file renaming is not built into OS X unless you build something with Automator. However, there are many utilities that can do batch file renaming which you can find at macupdate.com or on the App Store. Since I work with media I often batch rename using one of the media managers I have lying around like Media Pro or Adobe Bridge (comes with Photoshop).
    iPhoto is a database front end designed to shield the file system from the consumer and let them concentrate on creativity and sharing. As such it is often a poor choice for managing files directly. When you "transferred the photographs" chances are you moved the originals, not the ones iPhoto edited which are stored in a hidden folder.
    Roderick Guerry wrote:
    I’m reduced to using my wife’s Toshiba to cut-and-past, rename, and transfer documents. It works perfectly. Is there any way to do this on the MacBook Pro?
    There will not be a way to do it exactly like Windows. As described above, there are ways to do it "the Mac way." If it is possible to remove judgment on which way is "better" you might find the Mac way to be acceptable, but of course sometimes we simply prefer what we're used to.

  • My Copy/Cut and Paste Solution (if possible)

    I sent this to Apple:
    I know there's been a lot of people saying they need/want a cut/copy & paste feature.
    I was thinking about this tonight and realized that with a touch screen that needs to control a lot, incorporating "clicking and dragging" becomes somewhat a challenge. I don't know if it's possible to do with a software update (through iTunes) but here two ideas...
    First, in either idea, a "copy arrow" would need to be included in the touch keyboard. It would look like a cursor key arrow pointing to the right.
    Idea #1 - Cursor arrow is a "sticky" key, so you hit it once and it stays selected until you hit it again.
    Using a finger or the cursor magnifying glass, the user could place their cursor at the beginning of the text they want to highlight. They then click on the sticky arrow key. Using a finger or the cursor magnifying glass they place the cursor at the end of the text they want to highlight. The text now shows highlighted. Click the sticky arrow key again to copy the text and clear the highlight.
    Idea #2 - Cursor arrow highlights as it's selected.
    Using a finger or the cursor magnifying glass, the user places their cursor at the beginning of the text they want to highlight/copy. They then click on the copy arrow key (or hold it down) until they reach the end of the text they wish to copy. As they highlight, content highlighted is copied to the clipboard automatically. Clicking anywhere on the screen clears the highlight (and retains what is highlighted on the clipboard).
    Being Apple, you may have a more elegant solution than me... but I thought I'd share it none-the-less.
    What do you think?

    I was going to cut and paste part of another post about this but...
    I think that th simplest initial implementation of copy/cut/paste is to have a clipboard icon that turns on a selection function with its own pallete of keys. (cut, copy, paste, select all, select none, delete selection, and my favorite desperately needed button... copy to notes)
    Once in clipboard mode, single tap selects a ord, double tap selects a sentence, triple tap selects the paragragh, and a select all button selects the entire text within the frame.
    Perhaps there should also be a button that looks like your cursor with the arrow. however, it would have to be set to highlight from one complete word to another and not from the exact point of touch.
    Man do I wish that I could copy and paste this into my own post from earlier.

  • How to Cut and Paste (and delete)

    So I doubled down last month and got a new Bold and a Playbook.  This despite poor reviews and RiM's  bad press.
    The reason is that I wanted my Playbook to replace my notebook when at home and traveling.  Well, I blew out my knee playing sports and have been working from home post-surgery.  Playbook is great for couch while knee cup and iced.
    My very big frustration - and it really affects my work capability - is the Playbook's capability at cutting and pasting.  I need to be able to cut and paste links and text and edresses from emails and internet and msword to each other.  Is this possible outside word to go?  How?  Relatedly, I need to be able to delete and edit the text of forwarded emails, so I can remove ill-advised intermediate commentary.
    For a tablet whose competitive advantage MUST be ease of business use, these are big issues.  If these capabilities aren't there on the Playbook, I would implore RIM to address and other forum users to lobby for same.  RIM has to get these kinds of issues right to survive.
    Thanks in advance.
    P.S. - I searched topics and didn't find answer.
    P.P.S. - I also badly need the ability to redline or mark my changes in word to go.  Crucial!

    Looks to me like the decision was made to disable copy and paste in bridged apps maybe for security reasons. Seems to be a bit erratic too as some discussions include people that claim to be able to do it, maybe it's OS version dependant. Would have been nice if we could have been given the option though!
    To me it's issues like this that make the Playbook seem more like a beta level rushed to market device than a fully developed business tool. And now RIM can't even get the functions that would make what is great hardware truly useful within a reasonable timescale!

  • I can't seem to copy or cut and paste with firefox anymore

    I can highlight but I can't cut or paste words or phrases on firefox anymore. I can on explorer but not firefox
    == This happened ==
    Every time Firefox opened
    == its been a while not sure what setting got changed

    ~~red:''<u>'''Please list your Extensions & Themes when posting a question'''</u>''~~
    When posting future questions, please post the information in the "Troubleshooting Information" section. See: [[Using the Troubleshooting Information page]]
    ~~red:''<u>'''Can not copy/cut and paste'''</u>''~~
    The two most commonly reported causes of not being able to right-click, Copy and Paste are AVG Safe Search and Yahoo Toolbar. ~~red:'''Disable them and test'''~~ ( Tools > Add-ons > Extensions , locate and click on each of the add-ons, click Disable, when both are disabled, click Restart Firefox in the Extensions window.)
    If the right-click context menu allows copy/cut and paste with the two add-ons disabled, then one or both of them is causing the issue. Re-enable the extensions one-at-a-time, restart Firefox and test. When the problem returns, you will know which is the culprit.
    See:
    http://support.mozilla.com/en-US/kb/Customizing+Firefox+with+add-ons
    http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes
    http://support.mozilla.com/en-US/kb/Uninstalling+add-ons
    http://support.mozilla.com/en-US/kb/Troubleshooting+plugins
    ~~red:<u>'''''Other Issues'''''~~: to correct security/stability issues</u>
    <u>'''Update Java'''</u>: your ver. 1.6.0.17; current ver. 1.6.0.20 (<u>important security update 04-15-2010</u>)
    ''(Windows users: Do the manual update; very easy.)''
    See: '''[http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates Updating Java]'''
    Do the update with Firefox closed.

  • How do i copy, cut and paste on firefox

    How can I copy cut and paste on firefox? I have windows 8! Please Help !!!!!!

    You should just be able to perform these functions as you do in any application by doing one of the following:
    * Select some content, right-click your selection and select 'Copy' or 'Cut' from the menu. To paste, right-click in a text area or input field and select 'Paste'.
    * Select some content and press Ctrl+C to copy or Ctrl+X to cut. To paste, click in an input field or text area and press Ctrl+V.
    In webpages you cannot cut content that is not in a text area or input field, and you cannot paste to somewhere other than a text area or input field. Some sites also use preventative measures to stop (or at least hinder - there is usually some way around it) copying (often to prevent plagiarism).

  • I just downloaded IOS 8 on my Iphone 5 and to do so i had to delete all my photos to clear space, but before so I selected all of them and copied them. Now were can i go to paste all 400 of them and get them back ?

    I just downloaded IOS 8 on my Iphone 5 and to do so i had to delete all my photos to clear space, but before so I selected all of them and copied them. The only place I can seem to be able to paste and see them is while making a new message in gmail and then when i tried to send them the message comes back blank and looks like below. what can i do to retrieve them?
    <Edited by Host>

    As razmee209 said, you can use iTunes to install photos on your phone from wherever you have them stored. Where did you copy them to? Are you saying you selected them on you phone and just hit "copy"? That would only copy one at a time to the "clipboard" so that you can paste it somewhere else. As you copy each one, the previous one is deleted from the clipboard. This is not a storage area. Did you back them up on your computer or in iCloud?

  • Copy/Cut and Paste N95

    I dont have my manual with me and forget how to Copy/cut and paste on my N95, Can someone enlighten me please.
    Thanks.

    Hi needtogetfit
    How about "pencil" key?
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • Statically referencing the default JTextPane Cut, Paste, and Copy actions

    If all JTextPanes share the same default keymap, which includes the Cut, Paste, and Copy, how do I modify those actions statically so those modifications are available to all JTextPanes before one is instantiated?
    Also, it seems that the key bindings are linked to the UI....an HTMLEditorKit has different actions than a RTFEditorKit (except for the default actions they share), but when you swap out an editor kit, only the ActionMap is updated...why not the InputMap as well?

    The JDK 1.4 use read/write methods of editor kit for paste/copy operations. So if you set your editor kit it will be call your read/write functions.
    best regards
    Stas

  • I need to make a copy of an entire email, including the header w/the sender's info and time, etc. to insert into a letter, etc. How can I do this w/out cutting and paste and doing the header separately from the text.

    I need to make a copy of an entire email, including the header w/the sender's info and time, etc. to insert into a letter, etc. How can I do this w/out cutting and pasting   the header separately from the text. I know there is a way besides a screen shot but I've spend hours trying to find it.

    Smurfslayer wrote:
    For the particularly persnickety types you might want to expose the full headers in the email message as well.  It's easy enough to do, from mail's 'menu' select "view"; then "message"; then all headers.
    Another option you could use is a screen capture using Grab.
    Activate Grab, then shift + command + w (for a window screen shot).  Then confirm the window selection and click the mail message. 
    Dave
    Why are you addressing this to me...?
    I am not the OP...

  • I need code for copy ,cut and paste

    please help me to find acode for copy,cut and paste .
    from file to another.

    Try playing with this;-
    java.awt.Toolkit.getDefaultToolkit().getSystemClipboard()

  • Using windows7..I can not longer copy and paste, cut and paste. what happened?

    Using windows 7, on a Compaq Presario, for a time now, I am not able to cut and paste, or copy and paste. Used to work by right click, highlite copy, got to word page and paste. I cannot get right click to bring this box up. What is happening?

    I can't either. It is helpful when needing a link to send to a classmate via email. I also can't copy address bar because the complete adress no longer shows. I like XP. My Vista does better. This is a major problem when doing large papers 4 class. I use Son of Citation. You have to be able to copy paste. I have enough class work to do I don't need more...
    1117poppop wrote:
    did you get an answer i can't do it either

Maybe you are looking for