How to detect a click in the jList?????

Pleaseeeee someone can help me??? I need to recognize a click in a jList or a double click and then do an action. Thanks

RTFM
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/MouseListener.html
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/MouseAdapter.html

Similar Messages

  • How to detect mouse clicks on desktop?

    Hi All,
    I need to detect mouse clicks on the desktop and find out mouse position on the screen. How to listen to mouse events if I don't have any swing components like containers, panels, windows, etc? All things like "addMouseListener" are supposed to be with such components. But my program is running in the background and it doesn't have any graphical interfaces. So, I need to detect if a mouse button is pressed at any position on the screen.
    Thanks for any help!

    Why? What program feature do you intend to offer, by knowing what a user clicks on (besides the application itself).Hi, well what I have to do is to start the application minimized in the system tray. Then the application must be listening for crtl+shift+left click in any part of the desktop or an opened application, when that happens, I have to show a window asking if the user want to take a screenshot starting in the x,y point he clicked, once done, I have to take an screenshot...so on.
    How can I do that? Can anybody give me a hint? Thanks in advance.

  • How do I right click using the mouse on the mac desktop ?

    how do i right click using the mouse on the mac desktop

    does this involve iPhoto for the Mac in any way?
    the simple answer given no actual information is to press down on the right mouse button
    LN

  • Is it possible and if so how can I right click on the on screen touch keyboard

    Is it possible and if so how can I right click on the on screen touch keyboard.

    No it not design for that. I just tried it. Left click only. I recomend that you do not mess with setting with in the software it self you may end up causing the keyboard to malfunction and crashing your computer.I all so just double check our computers help and support On screen keyboard settings. There was no option given for switching the mouse clicker.  Just sticky keys and short cuts are listed. Sorry I hope this answered your question. I would all so not recomend trying to install other software you may find on switching key board setting unless it came from HP company design especially use on these types of computers. You may end up destroying your hard drive and computer all together.

  • How does one right click using the iPad?

    how does one right click when using the iPad?  I am needing this in a citrix app

    You can usually just tap and hold on certain things to access the right-click menu. It works in almost all cases. :)

  • How do I double click in the playbook's browser?

    Hello World,
    I am trying to use a web page that requires me to double-click.  The PB browser zooms if I double-tap.  How do I send a double-click instead?
    Thanks
    Solved!
    Go to Solution.

    Maybe you can post a link to the page and tell us what you are trying to double click.
    A website that asks you to double click has obviously been written when most visitors had windows pc. It is asking you to execute or open something.  take care!
    Right click is tap and hold. A context menu will open and it will vary.
    Double click is as skidoo says,  or tap, wait, tap, or tap and hold then Open in new tab. It really depends on what the link is.

  • How do I "Right Click" on the Trackpad?

    I know this is a "newbie" question but what is the motion on the trackpad for a "right click". Please bear with me, this is my first Mac laptop. Thanks!

    Hi,
    two options: hold CNTRL while doing a click.
    The preferred one is to use a two-finger tap for right-click. You have to enable that feature via System preferences -> Mouse/Trackpad. This is where you also see all the small movies about multi-touch options for the trackpad.
    Volker

  • How to detect mouse click event?

    Hello,
    I would like to have a vi to detect left, right and no mouse click. I mean that in the vi attached, Button2 should be 0 (no click), 1 (left c.) or 2 (right c.) depending on the event occured in i-1. cycle. My vi is the modyfied version of the one found here:
    http://www.ni.com/example/27663/en/
    Sometimes it works fine, but another time nothing happens when I click.
    I think the main problem is with the execution times at the for loop and event structure.
    Could you help me how to deal with the problem?
    Thanks you!
    Attachments:
    mouse1.vi ‏12 KB

    Hi VampireEmpire,
    Your For loop iterates twice. If an event occures during first iteration everything is fine - Button 2 refreshes during second iteration. But what happens when an event occures during second iteration? Does Button 2 have a possibility to refresh? 
    1. Do you see the problem now?
    2. And if you do - do you really need For loop? I would suggest you trying removing it and connecting shift register to the while loop.
    Bluesheep

  • Detecting double-click in the action of a JButton

    I have a similar problem to the poster of http://forum.java.sun.com/thread.jsp?forum=52&thread=93004 and I'm wondering if anyone has a better solution.
    A fuller description of my problem.
    My JButtons represents certain pallette items. Clicking a pallete item puts the button in a selected state (changes its border to show it's selected). The action on this button sets a mode state on the canvas to indicate what was selected. I then click on a canvas workspace to place an instance of that item onto the canvas based on the current mode.
    The selected JButton then pops up and the user needs to select a new pallette icon.
    What I want as an option so that if a pallette button is double-clicked it remains selected even after the item has been placed on the canvas allowing the user to place several copies around the canvas before selecting another item.
    I'd like if possible to determine this from the buttons action rather than registering a listener to the button because parts of the framework I am using pass just the actions around.
    I could do this by looking at the time between actions being triggered but this seems like a messy solution (can I pickup the operating system settings for double-click delay).
    Any other ideas?

    thebobster,
    This doesn't answer your original question, so if you're determined to use d-clicks on a JButton, don't bother reading further.
    I've always found double-clicking on a JButton non-intuitive, not to mention messy to implement. I prefer CTRL-click, etc, to indicate a sticky click.
    Perhaps you could use an image to indicate your palette button: you'll need just 2 images--up-state and down-state--and d-clicks will be easy to implement.
    --A                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to detect keystroke events on the console

    I'm currently implementing a basic menu driven system which needs to
    identify keystroke events (eg. alpha characters). I'm not too sure of the
    best way to deal with this, but can anyone suggest how one could go
    about doing this?
    Cheers,
    Richie !

    If you are refering to the ability to capture user key strokes you will need to add a listener to the class. If is a matter of is it a charater or a number then look into isDigit. Or are you trying to capture Hot-Keys? Please specify and will see if we can help - Bart

  • How to detect peak frequencies in the frequency domain?

    Hello,
    I have built a small test program consisting of two sine waves of variable frequencies, there sum is found and subsequently FFT is performed on it to find the two peak frequencies. I have been trying to somehow display the values of these two frequencies but I just can't find a way.
    I searched the forum before posting the question, many of them suggested using the Extract Multiple Tone Information VI which I tried and couldn't get any results. 
    I have attached my file. Please have a look. If you know any threads on the forum directly related to my problem, please just cite it.
    Thanks,
    LD
    Solved!
    Go to Solution.
    Attachments:
    DTMF Decoder.vi ‏168 KB

    Exactly, I just found that out too ... how silly of me.
    Thanks very much for replying
    LD

  • Jtable in cell how to single mouse click make the cell selected.

    it seems need double click make cell selected.
    thanks!!!

    Hi,
    these link will help you.
    It has code for both examples, with 1 click and with 2 clicks:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=362073&tstart=0&trange=15
    sergio.

  • How to detect locale specified in the BI platform in a Dashboard custom component

    Does anyone know if there is a way to determine the locale which is specified in the BI Platform (see pic below) from a custom component?
    During design time we can use proxy.getLocale() to determine the locale specified in dashboards, but we would like to be able to determine the user's platform locale preference at runtime.
    Any ideas?
    Thanks,
    Eddie

    Hi Eddie,
    As Arjit suggested, there are a bunch of functions available in WEBI like GetDominantPreferredViewingLocale(), GetLocale() and GetPreferredViewingLocale(), etc. that you could use.
    There are no such specific functions provided within Dashboards tool.
    So, you can create a WEBI report, and have one of these formulas specified in a variable in the webi report. Then, have the block published as a BIWS and use this BIWS in your dashboard.

  • How can I right click without the mouse to bring up context menu?

    On Windows systems there is a special key that brings up the context menu of the currently focused item. I would like to be able to do the same on the Mac. I don't want to reach for the mouse every time I need to bring up the context menu as some applications rely heavily on those.
    Is it possible?

    No there is no contextual menu button or hot key combination for OS X. I'm sure there are some third-party applications that enable this, but nothing that I know of. You might search http://www.versiontracker.com for Mac applications/utilities that have to do with contextual menus, and see what pops up.

  • How to detect the OS version and the hardware info??

    Hi all, according to the project needs, I to know how to detect OS version and the hardware info.
    The point is to detect client's OS version, weather Win98, 2000, XP, Vista.
    I have been search the information for several days already.
    But can not really found a example which returns the OS version like"Windows XP Version 2002 *****".
    And also could not find the CPU type such as"Core 2 due, or  pentium D".
    Is there anyone have done this before?
    Thanks.
    The Info I need looks like the photo below.
    Message Edited by EricLu on 07-21-2009 08:09 PM

    Well, in fact I have the VI and also read the topics as well...... The searching tag is OS info , system info......... After reading your post, now I understand the relation between the version number and the real OS version now, tks.  And another problem is, the processor type returned within the VI have only 4 type:"INTEL 386, INTEL 486, PENTIUM, Unknown". 
    It can not really return my CPU TYPE. For example the desktop I’m using now is a Pentium, D , 2.80G, 2.80G.. and it only returns type "Pentium". That's why I'm asking is there any other way to do this...... (( Please forgive me if you can not really know what I'm talking about in my first post, now I know how bad my english is.......   ))  I guess I can only try to find out the solution from the registry then... Thanks for your information and reply. 
    Message Edited by EricLu on 07-21-2009 09:25 PM
    Message Edited by EricLu on 07-21-2009 09:26 PM

Maybe you are looking for

  • Use of applescript in numbers to automatically analyze data?

    Hi all, I am trying to figure out if it is possible to use applescript and numbers to achieve the following: (1) Import a CSV file (2) Work out an average and standard deviation for particular columns of data in that CSV file (3) Copy and paste out t

  • Posting date in AFRU and 2lis_04_p_arbpl data source is not matching

    Hi Experts, We are facing an issue with 2LIS_04_P_ARBPL data source, posting date in AFRU table and in data source is not matching. For example: we booked an activity confirmation of value 100 on 01.01.2015 posting date, Counter 1, Operation 10 For t

  • ML currencies missing in the MLBECR for the EKBE-1

    Hi Gurus, I have a problem during MIRO transaction, the system returns the message: "ML currencies missing in the MLBECR for the EKBE-1". We have already implemented several notes oss, but not solved. I not understand the problem. Please, can you hel

  • How can I spend my last 0.16 cents?

    I have changed the place where I live in and I still have .16 cents in my account, so I cannot change the currency location where I live, can somebody help me with that?

  • How to get whole category schema definitions in coding?

    Hi, I've already defined a category schema in WebUI which contain two level of categories. I want to get this definition of whole category model in my coding by input the category schema ID. Which function module or class method I can use in my codin