Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old May 8, 2006, 10: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, 07: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, 01: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

Similar Threads
thread Thread Starter Forum Replies Last Post
Java 6.x security risk (?) vs Java 7.x and broken apps w/ v7.x installs? mgiamo Mac Basics and Help 1 Dec 15, 2013 04:48 PM
Live Coverage of Apple's October 2013 iPad and Mac Event [Event Ended] MacRumors MacRumors.com News Discussion 745 Oct 28, 2013 01:16 PM
Chrome on OS X -- Java plugin / Java 7 vs Java 6 Issue booyahbooyah Mac Applications and Mac App Store 4 May 31, 2013 10:13 AM
Live Coverage of Apple's iPad Mini Media Event [Event Ended] MacRumors MacRumors.com News Discussion 1164 Oct 28, 2012 08:43 AM
Live Coverage of Apple's iPhone 5 Media Event [Event Over] MacRumors MacRumors.com News Discussion 999 Sep 14, 2012 05:56 AM

Forum Jump

All times are GMT -5. The time now is 12:52 PM.

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

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