hi everyone,
i am doing a project .............i have a problem
1.when i press F4 key i need to get a pop-up window and i need to search names in that poup window .
For Example :
All the client names start with A
2.when user types A & preees enter (wild card search)

and? What is stopping you from coding that?

yeah you can do that aruna....

try this code

Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener()

public void eventDispatched(AWTEvent a_objevent)
if(a_objevent instanceof KeyEvent && a_objevent.getID() == KeyEvent.KEY_RELEASED &&
!((KeyEvent)a_objevent).isAltDown() && !((KeyEvent)a_objevent).isControlDown()
&& !((KeyEvent)a_objevent).isShiftDown() && !((KeyEvent)a_objevent).isMetaDown())
int l_iKeyCode = ((KeyEvent)a_objevent).getKeyCode();

case KeyEvent.VK_F4:

for ex:  popup();
(call your pop up window here);


Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.