is there a problem with copy paste using Ctrl+insert and Shift+insert

This is a swing application.initially i was using java 1.3 and the copy paste using Ctrl+insert and Shift+insert was workingthen i migrated the same to java 1.5 and this functionality got messed up.
[219 byte] By [Soma_Sena] at [2007-11-27 7:31:31]
# 1
[url http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html]How to Use Key Bindings[/url]
camickra at 2007-7-12 19:11:44 > top of Java-index,Desktop,Core GUI APIs...
# 2

Include the following in your initialization code, before you create any components: InputMap im = (InputMap)UIDefaults.get("TextField.focusInputMap");

im.put(KeyStroke.getKeyStroke("control INSERT"), DefaultEditorKit.copyAction);

im.put(KeyStroke.getKeyStroke("shift INSERT"), DefaultEditorKit.pasteAction);

im.put(KeyStroke.getKeyStroke("shift DELETE"), DefaultEditorKit.cutAction);

You'll need to add the appropriate imports, too: import javax.swing.InputMap;

import javax.swing.KeyStroke;

import javax.swing.UIDefaults;

import javax.swing.text.DefaultEditorKit;

It seems they accidentally removed those bindings from JTextField under MetalLookAndFeel in JDK 1.5. They've been restored in JDK 1.6.

uncle_alicea at 2007-7-12 19:11:44 > top of Java-index,Desktop,Core GUI APIs...
# 3
thanks :O)
Soma_Sena at 2007-7-12 19:11:44 > top of Java-index,Desktop,Core GUI APIs...