View Single Post
  #6 (permalink)  
Old 07-02-2008, 04:25 AM
Eku Eku is offline
Senior Member
 
Join Date: May 2008
Location: Makati, Philippines
Posts: 228
Eku is on a distinguished road
there is already a function for cut-copy-paste in java. you just need to call it ^_^
I also made a javapad almost like notepad but can compile and run java ^_^
But cant handle errors T_T

Here is a sample code from my javapad, it is for cut
Code:
Action cutAction = textArea.getActionMap().get(DefaultEditorKit.cutAction); cutItem = editMenu.add(cutAction); cutItem.setText("Cut");
__________________
Mind only knows what lies near the heart, it alone sees the depth of the soul.

Last edited by Eku : 07-02-2008 at 04:27 AM.
Reply With Quote