Copy Cut and Paste problems

Hi!
I hace a little app like a notepad.
It has menubar and some menus.
Including the Copy menu, cut menu, and paste menu.
How do i copy, cuy and paste text?
please if you can send a little example.
Thanks

It's an extremely important skill to learn to read the API and become familiar with the tools you will use to program Java. Java has an extensive set of documentation that you can even download for your convenience. These "javadocs" are indexed and categorized so you can quickly look up any class or method. Take the time to consult this resource whenever you have a question - you'll find they typically contain very detailed descriptions and possibly some code examples.
http://java.sun.com/reference/api/index.html
http://java.sun.com/j2se/1.5.0/docs/api/

Similar Messages

  • Does webmail have no copy, cut and paste features?

    The automated agent was of no use.  My old ATT webmail would let me cut and past using IE or Windows controls, but at least had their own cut and paste commands. Not being able to copy, cut and paste when composing e-mails is a MAJOR hassle.
    And if anyone knows how to enable links, HTML, etc, in webmail, please let me know.

    What browser are you using? CTRL + C, CTRL + X, and CTRL + V are all working fine for me, and I would assume their equivalent Edit menu commands work as well...
    Also, which version of webmail are you in?
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • 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).

  • 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

  • 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()

  • I can not use copy cut and paste in certain website email

    When using a college web site, I can not copy, cut, and paste.

    See http://kb.mozillazine.org/Clipboard_not_working
    A likely cause is the website email uses a rich text editor, in which case you should be able to enable copy/paste by following the instructions in this article - http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard

  • Adobe Reader/Preview  pdf-to-Word cut and paste problems...

    Hi,
    I often cut and paste from pdfs of documents where the text is in two columns, to Word documents...and without fail, I get a jumbled-up mix of BOTH columns of text that I have to mess with, deleting bits I don't want, squishing-up the text I do, etc...
    What am I doing wrong, and is there anything I can do to stop this happening?!
    Thanks very much for any advice.

    If you are using Adobe Reader to open the pdf then the selection tool should highlight what you are copying and pasting. Unfortunetley sometimes with double row columns you are forced to copy parts of text that you don't want.

  • 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.

  • Cut and Paste problem with links in DW

    Anyone have a clue as to why this is happening.....
    when I cut and paste a complex link -- DW seems to add some characters.... see below....
    Original Link
    http://spie.org/app/program/index.cfm?fuseaction=exhibitordetail&exhibitorid=20189&meeting _id=169
    Dreamweaver's modified link.... it's adding  amp after the & sign....
    http://spie.org/app/program/index.cfm?fuseaction=exhibitordetail&exhibitorid=20189&meeting _id=169
    Simple links stay the same... but this got me in a little hot water with a client when I sent out an email from constant contact....
    Thanks
    -C
    oh... couple things.... I'm working on:
    OS 10.6.2  (MAC)
    CS4

    "it's adding  amp after the & sign"
    It's not actually adding "amp".
    DW is assisting you by encoding the "&" (which validators assume to be a broken HTML entity since they start with "&") and replacing it with the correct form of "&" so that browsers can understand the URL.
    See
    http://htmlhelp.com/tools/validator/problems.html#amp

  • Cut and paste problem in an applet :(

    Hi All,
    I have developed an applet based GUI and now I wanted to cut and paste some text from an external application say from a notepad(Windows) to a
    JTextfield in the applet. I tried to do it on a applet but it was not allowing me to do it. I was able to do the same(cut and paste) on a textfield when run as an application. So does the cut and paste operation has anything to do with the sandbox security provided by an applet model?. This sounds bit crazy or maybe Im missing something here. Would appreciate help on this.
    Thanks a ton!
    Thanks,
    Ram

    You can always use CTRL-C and CTRL-V to copy/paste, but if you want to right-click, you have to implement it yourself.. Here's MY implementation, if even has 'Undo'!
    import java.awt.*;
    import java.awt.datatransfer.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    public class CTPopupMenuMouseListener extends MouseAdapter
           private JPopupMenu popup = new JPopupMenu();
           private JMenuItem undoItem, cutItem, copyItem, pasteItem, deleteItem, selectAllItem;
           private JTextComponent textComponent;
           String savedstring="";
           String lastactionselected="";
           public CTPopupMenuMouseListener()
                  Action action = new AbstractAction("Undo")
                    public void actionPerformed(ActionEvent ae) {
                         if(lastactionselected.compareTo("")!=0){
                             textComponent.setText("");
                             textComponent.replaceSelection(savedstring);
                  undoItem = popup.add(action);
                  undoItem.setMnemonic('t');
                  popup.addSeparator();
                  action = new AbstractAction("Cut")
                    public void actionPerformed(ActionEvent ae) {
                          lastactionselected="c";
                          savedstring=textComponent.getText();
                          textComponent.cut();
                  cutItem = popup.add(action);
                  cutItem.setMnemonic('t');
                  action = new AbstractAction("Copy")
                    public void actionPerformed(ActionEvent ae) {
                          lastactionselected="";
                          textComponent.copy();
                  copyItem = popup.add(action);
                  copyItem.setMnemonic('c');
                  action = new AbstractAction("Paste")
                    public void actionPerformed(ActionEvent ae) {
                          lastactionselected="p";
                          savedstring=textComponent.getText();
                          System.out.println("in paste code savedstring is: "+savedstring);
                          textComponent.paste();
                  pasteItem = popup.add(action);
                  pasteItem.setMnemonic('p');
                  action = new AbstractAction("Delete")
                    public void actionPerformed(ActionEvent ae) {
                          lastactionselected="d";
                          savedstring=textComponent.getText();
                          textComponent.replaceSelection("");
                  deleteItem = popup.add(action);
                  deleteItem.setMnemonic('d');
                  popup.addSeparator();
                  action = new AbstractAction("Select All")
                     public void actionPerformed(ActionEvent ae) {
                          lastactionselected="s";
                          savedstring=textComponent.getText();
                          textComponent.selectAll();
                  selectAllItem = popup.add(action);
                  selectAllItem.setMnemonic('a');
            public void mouseClicked(MouseEvent e)
                  if (e.getModifiers()==InputEvent.BUTTON3_MASK)
                         if (!(e.getSource() instanceof JTextComponent))
                               return;
                         textComponent = (JTextComponent)e.getSource();
                         textComponent.requestFocus();
                         boolean enabled = textComponent.isEnabled();
                         boolean editable = textComponent.isEditable();
                         boolean nonempty = !(textComponent.getText()==null || textComponent.getText().equals(""));
                         boolean marked = textComponent.getSelectedText()!=null;
                         boolean pasteAvailable = Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null)
                                    .isDataFlavorSupported(DataFlavor.stringFlavor);
                         undoItem.setEnabled(enabled && editable);
                         cutItem.setEnabled(enabled && editable && marked);
                         copyItem.setEnabled(enabled && marked);
                         pasteItem.setEnabled(enabled && editable && pasteAvailable);
                         deleteItem.setEnabled(enabled && editable && marked);
                         selectAllItem.setEnabled(enabled && nonempty);
                        int nx=e.getX();
                        if (nx>500)
                            nx=nx-popup.getSize().width;
                         popup.show(e.getComponent(),nx, e.getY()-popup.getSize().height);
                  }else if ( e.getClickCount()==2 )
                        CTmainFrame.JTextArea1.setText("");
      }

  • Cut and paste problems

    Cut and paste between program has been real buggy since upgrading.  Today, I am trying to cut lines of text out of InDesign and paste into either a web browser or Mail, and nothing happening.  Text cuts OK, cause I can paste it back into ID, but won't let me paste elsewhere.  Had the same problem earlier pasting between Excel and ID.  Anybody else experiencing this?

    It's an extremely important skill to learn to read the API and become familiar with the tools you will use to program Java. Java has an extensive set of documentation that you can even download for your convenience. These "javadocs" are indexed and categorized so you can quickly look up any class or method. Take the time to consult this resource whenever you have a question - you'll find they typically contain very detailed descriptions and possibly some code examples.
    http://java.sun.com/reference/api/index.html
    http://java.sun.com/j2se/1.5.0/docs/api/

  • Dreamweaver cut and paste problem! LAST RESORT!

    Hello there people
    I am in desperate need of some help, I have exhausted all
    other options and I REALLY hope some one on here will be able to
    help me!...
    I was halfway through an index.html doc when my cut and paste
    option stopped working! if you go to edit, all the options are
    greyed out! and keyboard shortcuts wont work either! I have tried
    opening my other docs and they are all the same!,
    Thinking it was a bug I downloaded some updates, I then tried
    re-installing, and then removing the WHOLE thing then
    re-installing! Ive also looked at windows and there does not seem
    to be a problem there either!
    Cut and paste works EVERY where else except in DW!
    It is looking like maybe I have "selected" some thing, but I
    have checked every thing I know and still NOTHING!!
    can any one shed any light on this?

    IVE GOT THE ANSWER!
    In Windows, browse to this file:
    C:\Documents and Settings\<user>\Application
    Data\Macromedia\Dreamweaver 8\Configuration\panelset.xml
    Rename the panelset.xml file to panelsetOLD.xml, so that
    Dreamweaver will automatically create a new panelset.xml
    file.

  • Cut and paste problem

    When I cut and paste from a photoshop document into a new image, the edges are automatically feathered, as pictured below. How can I keep this from happening?

    Make certain your Feather value is 0 when creating a selection.
    (It's in the Control bar at the top of the screen)

  • Apple Mail Cut and Paste Problem

    When I cut and past in Apple Mail font changes to smaller size.  Any suggestions?

    As you know, type sizes are uniform - unless you use cut-and-paste. The resulting text will sometimes be smaller, larger, or different than the type-style you began with.
    Personally, I'd ignore it. But if you want to fix the font size, you can alter it in the Format Bar on the top of the Mail program. This allows you to change the type, size, and even alter special characters. To make the text uniform, highlight the text you want to alter, open the Format Bar, and change the settings.

  • Office 2010 - Copy, Cut, and Paste not working

    Firstly, I am on a corporate domain and most of our users are using Windows 7 with the Office 2010 suite, both of which contain the most current updates. My problem is that some users are unable to copy and paste from one application to another.
    For instance, User A is unable to copy or cut cells from Excel by either right-clicking and selecting the option, or by keyboard shortcuts and then pasting into another area of the same document or any other document like notepad. User
    B, cannot complete the same operation in Outlook from email to email or from email to lets say, Word.
    However, and it's a big HOWEVER, none of this happens while the browser is closed. I have seen this with all three of the major browsers, Internet Explorer, Firefox, and Chrome. So all functionality comes back with the copy and paste once the browser
    is closed, and if you reopen the browser the problem reappears as if the browser takes over the clipboard.
    If anyone has a solution or suggestion your feedback would be much appreciated.
    Regards,
    Kris

    MMA_Junkie,
    Skype has released a new version of Click to Run (http://www.skype.com/intl/en-us/get-skype/on-your-computer/click-to-call/windows/). Skype will do a silent upgrade
    to existing customers to fix the problem. The build that will fix this issue is 5.11.0.9874.
    Microsoft has also released a KB article that addresses the situation (http://support.microsoft.com/kb/2697462)
    Article ID: 2697462 - Last Review: April 18, 2012 - Revision: 4.0
    You can no longer use the Clipboard to paste text formatting in Office programs

Maybe you are looking for

  • Apple Wireless Keyboard - Shift + 'r' key not working. It doesn't capitalise the letter. Can someone help please. Thank you.

    Hi all, I am having some problem with the Apple Wireless Keyboard. It has not problem connecting to both my iPad mini / iPhone 4S. The problem comes when I start to type with it. All the keys are functioning will, except when I am trying to capitalis

  • Create root node and child nodes while downloading data from internal table

    Hi all, i have to down load the details of three materials present in the internal table into a  XML file, the material number must be the root node, ERNAM,AENAM,VPSTA fields must be its child nodes. in this way i have to display details of three mat

  • STO Over & Under Receipts

    In our project 75% of our STO Receipts happens though EDI using WMMBID02 idoc type. There are always lots of shortages and overages happening during the Goods Receipt of the STO. Standard SAP does not allow over receipts to happen during Goods Receip

  • Reading the wagetypes of a particular evaluation class

    hi experts, My requirement is to fetch the current payroll result. And in that, i need to fetch only the wagetypes from evaluation class 19 (specification 10 and specification 20). Could someone telll me what is current payroll reesult. Is it like fo

  • About logical expression

    Hello , can we compare like this ? if i = j + 10. statements endif. if it is not possible to compare like this what is the reason. And is there any option to compare like this. Thank And Regards, Sham