Results 1 to 2 of 2
  1. #1
    ocean is offline Senior Member
    Join Date
    Sep 2009
    Location
    Sweden/Borås
    Posts
    107
    Rep Power
    0

    Default How To Lissen to MouseClick on Combobox.?

    <SOLVED>

    Morning, when a user click the arrow to open the JComboBox, I want the list to reaload. So some kind of mouseListener mabey?

    Any sugestion how to smotly solve this is apprecited

    Regards / Ocean
    Last edited by ocean; 12-04-2009 at 08:06 AM.

  2. #2
    ocean is offline Senior Member
    Join Date
    Sep 2009
    Location
    Sweden/Borås
    Posts
    107
    Rep Power
    0

    Default

    Solved it with

    Java Code:
    JComboBox projects = new JComboBox(projectNames);
    projects.addMouseListener(new MouseListener() {
    ...
    }

Similar Threads

  1. add combobox for jtable row
    By anilkumar_vist in forum Advanced Java
    Replies: 1
    Last Post: 11-18-2009, 12:19 PM
  2. Need Help combobox
    By kwink in forum AWT / Swing
    Replies: 3
    Last Post: 03-21-2009, 11:05 AM
  3. How to make a JPanel highlighted on mouseclick
    By aneesahamedaa in forum AWT / Swing
    Replies: 3
    Last Post: 09-01-2008, 10:49 PM
  4. combobox
    By chandu.v in forum New To Java
    Replies: 2
    Last Post: 07-02-2008, 09:36 PM
  5. How to make a MouseClick paint an object
    By Devilsfutbol17 in forum New To Java
    Replies: 6
    Last Post: 06-05-2008, 01:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •