The Artima Developer Community
Sponsored Link

Java Answers Forum
copy/cut/paste under macos AND windows.

2 replies on 1 page. Most recent reply: Jul 3, 2002 5:22 AM by jf

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
jf

Posts: 3
Nickname: jf
Registered: Jun, 2002

copy/cut/paste under macos AND windows. Posted: Jul 2, 2002 12:57 PM
Reply to this message Reply
Advertisement
ok here you go folks,

i was wondering if any of you guys could help me out with this, im making a program for macos 9.0+ and windows 98/00/XP and i was wondering if there was a clean way to make the copy,cut and paste function for all of my jtextfield, jtextarea,etc other than coding by hand the key tracking functions...

if not, any enlightment on wich key i should be tracking for macos environment, would be needed.

any help would be REALLY appreciated.


Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: copy/cut/paste under macos AND windows. Posted: Jul 2, 2002 2:58 PM
Reply to this message Reply
Check out the cut, copy, and paste actions
which are easily assigned to JButtons, JMenuItems, or shortcuts, etc.


DefaultEditorKit.CutAction
DefaultEditorKit.CopyAction
DefaultEditorKit. PasteAction

The API documentation is on line at:
http://java.sun.com/j2se/1.4/docs/api/index.html

You also have a demo java source in the java developmentkit
under j2sdk1.4.0\demo\jfc\Notepad
or j2sdk1.4.0\demo\jfc\Stylepad

jf

Posts: 3
Nickname: jf
Registered: Jun, 2002

Re: copy/cut/paste under macos AND windows. Posted: Jul 3, 2002 5:22 AM
Reply to this message Reply
thanks

Flat View: This topic has 2 replies on 1 page
Topic: Help Me Please WIth Java Previous Topic   Next Topic Topic: Java Mail

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use