Search:

Type: Posts; User: kc120us

Search: Search took 0.18 seconds.

  1. Replies
    6
    Views
    5,259

    Re: Problem with Key listener to JComboBox

    Wow, you are right. I put the class file in an html page and it worked fine as an applet. But it does not run as a standalone application.
    Thanks
  2. Replies
    6
    Views
    5,259

    Re: Problem with Key listener to JComboBox

    I added the focus listener but nothing happened so it is not getting focus. Here is my entire code.



    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;

    public class...
  3. Replies
    6
    Views
    5,259

    Re: Problem with Key listener to JComboBox

    I thought so. I thought jcboCountries.setFocusable(true) was supposed to do that. Am I using the wrong method?
  4. Replies
    6
    Views
    5,259

    Problem with Key listener to JComboBox

    Hi,
    I am trying to add a key Listener to a JComboBox so that when you hit the delete key, it deletes the item selected from the Combo box. Here is the code that registers the listener to the combo...
Results 1 to 4 of 4