Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old May 8, 2006, 09:39 PM   #1
Alvinkiang
macrumors newbie
 
Join Date: Apr 2006
Send a message via AIM to Alvinkiang Send a message via MSN to Alvinkiang
Key Event..(java)

How do i code a simple coding so that when i press Del on the Keyboard my Label or Button will be deleted? i nv used key Listener Before.. can anyone Help me??
Alvinkiang is offline   0 Reply With Quote
Old May 9, 2006, 06:28 AM   #2
jtalerico
macrumors 6502
 
Join Date: Nov 2005
I am curious if you read what you wrote after you posted it?

Since you are new to ActionListener here is a good place to start.

Since you are looking for once the 'Del' button is pressed I would suggest starting here at the KeyStroke Class...

Here are a few uses of the javax.swing.KeyStroke.

Good luck!
__________________
iPhone4
17" MacBook Pro i7 500GB SSD
MacPro 2011
jtalerico is offline   0 Reply With Quote
Old May 9, 2006, 12:03 PM   #3
Palad1
macrumors 6502a
 
Palad1's Avatar
 
Join Date: Feb 2004
Location: London, UK
Have a peek there!

good luck
Palad1 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Capture all key events in the system robj Mac Programming 13 Aug 12, 2010 08:58 PM
Key Events Binju Mac Programming 18 Apr 7, 2010 02:29 AM
UITextField : Any way to detect the Delete key event when the field is empty ? namanhams iPhone/iPad Programming 3 Dec 13, 2009 12:26 AM
Is it possible to send key events from an app? iCode Mac Programming 3 May 21, 2007 12:12 PM
Key Event handling slooksterPSV Mac Programming 2 Feb 28, 2007 03:20 PM


All times are GMT -5. The time now is 06:49 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC