Detecting clicks over a particular region in the frame

Hey!
I need to detect whether te user clicked over a particular region in my frame.. something delimited by a poligon... or something like that..
some ideas?
thank you in advance!

Thx for your attention but in this case it wont work 'cause.. I didnt mention but there will be several images in the screen... getPixelColor will return black regardless of what image I clicked on.
What I really needed is detecting the click over a particular region in the screen!
thank you

Similar Messages

  • Focus on a particular component in the frame

    How to put focus on a particular component example jTextField
    or jComboBox.
    For example:
    when I open the Frame I want the focus to be on jTxtPersonID.
    when I Click the insert button, it inserts a new row, adds today's date in the jTxtOrderDate but after that I want to put
    the focus on jComboBoxPickBook. How to do the focus bit.
    when I select something from jComboBoxPickBook, I want to put
    the focus on jTxtAmt.

    Actually the tab will go the order in which u added ccomponents to the container.
    so if u add in the order no need to write extracode.
    if not just simple in the addkeylistner to the textfield1 and in keypressed write textfield2.requestfoucs();
    textFiled1.addKeyListener (new java.awt.event.KeyAdapter () {
    public void keyPressed(KeyEvent e) {
    jTextField2.requestFocus();
    some thing like this..

  • SSRS- Drill down to sub report of a bar chart on click on a particular color of the bar

    Hi,
    I have a bar chart which can have many colors on each bar, Now if i click on a bar, i am getting all the data related to that particular bar. Is it possible to click only on a particular color and get related data instead of whole bar?
    To be more precise, in the below image if i click on 16/6/2013 bar, i am getting all the data related to the bar, but is it possible to click on red  and green colors of the bar separately and  get the relevant data? Any help is greatly appreciated.
    Kruthi Hegde

    Hi Kruthi,
    In your case, you can use “Go to report” property to solve the issue.
    Suppose we have a dataset (DataSet1) in main report and subreport with following fields: Months, DateTime, Amount. We can according to Months and DateTime fields to display the subreport. Please refer to the steps below:
    Subrepot:
    Add dataset (DataSet2) in the report with Months field.
    Add dataset (DataSet3) in the report with DateTime field.
    Add two parameters in the report. Please refer to the following Available Values:
    Months:
    Dataset:  DataSet2
    Value field: Months
    Label field: Months
    DateTime:
    Dataset:  DataSet2
    Value field: DateTime
    Label field: DateTime
    Add filters in the tablix.
    Main report:
    Right click the bar chart, select Series Properties.
    Click Action in the left pane, select “Go to report” option.
    Specify the corresponding report.
    Click Add icon to add parameters to run the report:
    Name: Months    Value: [Months]
    Name: DateTime    Value: [DateTime]
    (Note: If we want subreport display these data which is only relevant with color, we can delete DataTime parameter in the report.)
    If you have any questions, please feel free to let me know.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • How to Add a Row by clicking in other different Region

    Hello Im trying to build a page that allows me to add items to a region by clicking in a report region in the same page.
    I created a Report Region with my information , It has a link and one image in the region 1.
    in other region(REgion 2) I have a tabular form from one table,
    the idea is , how to Add rows to the tabular form(REgion 2) clicking items from the reports region (Region 1)the item could be the image or the link.
    I tried with Addrow javaScrip, on my image as a link or even my link, and it worked ,but it works just adding an empty row and i need to add a row with information of the report region (Region 2) for example ID_product.
    so this is other question how to use Addrow javascrip , including data in the row automaticly .
    Well this is what i have been trying ,I don't know if this is the correct way to do it , or if the best way.
    Maybe there is another method , like ajax or something
    Please any advice will be appreciated.

    Hello Im trying to build a page that allows me to add items to a region by clicking in a report region in the same page.
    I created a Report Region with my information , It has a link and one image in the region 1.
    in other region(REgion 2) I have a tabular form from one table,
    the idea is , how to Add rows to the tabular form(REgion 2) clicking items from the reports region (Region 1)the item could be the image or the link.
    I tried with Addrow javaScrip, on my image as a link or even my link, and it worked ,but it works just adding an empty row and i need to add a row with information of the report region (Region 2) for example ID_product.
    so this is other question how to use Addrow javascrip , including data in the row automaticly .
    Well this is what i have been trying ,I don't know if this is the correct way to do it , or if the best way.
    Maybe there is another method , like ajax or something
    Please any advice will be appreciated.

  • Differentiate Next and Previous link click events in Table Region

    Hello,
    Is there a way to find out whether "Next" link or the "Previous" link was clicked in a Table region when the user tries to navigate to a different range set?
    Both "Next" and "Previous" links raise the event "goto". I need to manipulate the range start and range size of another VO. i.e., if Next was clicked I would want to increase the range start of another VO and If "Pevious" was clicked, I would want to decrease this range start.
    Thanks
    Raja

    Yes, this is clearly explained in dev guide, see Event Handling in table section in dev guide.
    --Mukul                                                                                                                                                                                                                           

  • When double clicking on alv ,want to get the column name

    Hello there,
        I'm displaying the value of internal table in an alv using Reuse_alv_grid_display method ,using fieldcatalog.I want to know the column name when double clicking on a particular line .If the the fieldname is 'MATNR' then i want to check that column name.
        If anybody have any idea plz terply me.
    Thanking you neon

    for that you have to use the USER_COMMAND event.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM                = sy-repid
       I_CALLBACK_USER_COMMAND      = 'USER_COMMAND'
       IT_FIELDCAT                       = it_fcat
      TABLES
        t_outtab                          = itab
    EXCEPTIONS
       PROGRAM_ERROR                     = 1
       OTHERS                            = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    FORM USER_COMMAND using ucomm type sy-ucomm
                                                   selfield type slis_selfield.
    data: fieldname(30).
    case ucomm.
    when '&IC1'.
    case selfield-fieldname.
       when 'MATNR'.
        message 'clicked on Matnr' type 'I'.
       when 'POSNR'.
       endcase.
    endcase.
    ENDFORM.

  • How to find a text in the Frame maker document via script?

    How to find a particular text in the Frame maker document via script?

    johnsyns wrote:
    Why it doesn't work for the other days? When i tried to change the days other than wednesday. it return nothing.
    Reason why Justin's code does not work for other days is date format mask DAY returns day blank padded to 9 characters which is the longest day name which, yes you guessed right, is WEDNESDAY. You either need to blank pad or use format modifier FM:
    SQL> select *
      2    from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
      3            FROM DUAL CONNECT BY ROWNUM <= 27)
      4  WHERE TO_CHAR(dt,'DAY') = 'TUESDAY'
      5  /
    no rows selected
    SQL> select *
      2    from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
      3            FROM DUAL CONNECT BY ROWNUM <= 27)
      4  WHERE TO_CHAR(dt,'DAY') = 'TUESDAY  '
      5  /
    DT
    07-APR-09
    14-APR-09
    21-APR-09
    28-APR-09
    SQL> select *
      2    from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
      3            FROM DUAL CONNECT BY ROWNUM <= 27)
      4  WHERE TO_CHAR(dt,'FMDAY') = 'TUESDAY'
      5  /
    DT
    07-APR-09
    14-APR-09
    21-APR-09
    28-APR-09
    SQL> SY.

  • How to fire "table change" once click other regions outside the table erea?

    I have a JTable created with DefaultTableModel. Usually the edit behavior of table cell is like this:
    1) Select one cell, it is highlighted in blue.
    2) Double click the cell, it's made editable with white background.
    3) Two scenarios
    (a) Once finish edit, press "Enter", the cell background turns from white to blue. At the same time, the table change is "fired" .
    (b) Once finish edit, click another cell, the originall cell turns white, and the new-clicked cell is highlighted in blue. At the same time, the table change is "fired".
    4) While editing one cell, and click somewhere OUTSIDE the table area. In this case, the table change is NOT fired.
    [This cause a confusion, user sees the changed text in table cell, but actually it is not stored and will not be stored in the table.]
    So what I want to implement is: once click the region outside the table, the text in that editabe cell (where you are just editing) is stored and fired.
    Can you help me? Thanks in advance!

    sabre150 & other experts,
    [see background in my first message]
    User is still not completely satisfied with the current behavior, though "table changed" can be fired when clicking other controls(eg. buttons or checkboxes).
    If I click a panel region(instead of a particular control), the "table changed" can not be fired. However, it is expected.
    I guess the reason is:
    a panel doesn't has a focus. so when clicking panel, the focus is not "lost" to the table cell.
    Any hints?

  • HT1343 On my 4 1/2 year old Macbook I could select multiple files  by highlighting a file and then moving cursor over a file lower in the list, and pressing shift-control-click. I can't do that in now with Mac Pro.  What am I doing wrong?

    ghlighting a file and then moving cursor over a file lower in the list, and pressing shift-control-click. I can't do that in now with Mac Pro.  What am I doing wrong?

    Holding down the control key will invoke "right-click."
    Depending on the View, holding down Shift will with either toggle the selection (Icon View), or it will make a continuous selection from the previous selection (List View or Column View).
    The only way to make a continuous selection in Icon View is to drag out a selection marquee around or through the icons.
    I can't remember the behavior of previous OS's.

  • When i click on one particular bookmark it opens in a window in the same browser page that is open but on the left side so that I have two dirfferent urls open

    I will have page open in the browser and when I click on one particular bookmark it always opens in the same browser but as a second page on the left side of the page. How do I stop this from happening--it is apage that I need to visit often for business and it is very restricting.

    Awesome, really, it was so annoying. It's the small things in life that make such a difference. Problem solved 100% spot on easy as toast. [email protected]

  • Need help to fit the records of a table into a particular region

    Hi All,
    Need help in getting the records of table to be fitted into a particular region provided for it. But in my case as the records increases the textbox below are moving down accordingly into next page that i dont want.  
    As shown in the below image i have to fit 22 no. of records in that given area only not disturbing the below textbox alignments.
    Thank in advance...
    Sreekanth Note: Please vote/mark the post as answered if it answers your question/helps to solve your problem.*****

    Hello,
    In SSRS, Report items within a report can be
    kept together on a single page implicitly or explicitly by setting the keep with group or keep together properties.
    In your case, you can try to specify the "KeepTogether" property to True on the Table properties windows.
    If there are other report items  under or above the Table and you want keep all items on the single page, you can try to add a Rectangle and put all items into the Rectangle.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • (1) Is there any way that I can get the transition menu to remain on the screen. I select a transition, drag it to the timeline and after I click done I have to start the process all over to perform this action on the next transition. I have premiere elem

    (1) Is there any way that I can get the transition menu to remain on the screen. I select a transition, drag it to the timeline and after I click done I have to start the process all over to perform this action on the next transition. I have premiere elements 12. In older version the menu would stay on the screen.
    (2) In pan and zoom how can start zoom on a photo in the original picture and zoom in and the next picture zoom out and the next photo pan from right to left and the next photo pan left to right.
    Thanks
    Sam

    TidyCup
    What computer operating system is your Premiere Elements 12 running on? If you have not already, be sure to update 12 to 12.1, using an opened project's Help Menu/Update.
    But to the immediate questions, assuming Windows 7, 8, or 8.1 64 bit....
    1. No, it is what it is. But, are you applying the same transition each time? If so, then highlight/select all the clips involved (all at one time), then Timeline Menu/Apply Default Transition will do just that for the highlighted/selected clips.
    To highlight/select more than one clip at a time, hold down the Shift key of the computer main keyboard and then click on each clip that you want in the group selection
    or
    with your mouse cursor draw a rectangle around the clips that you want to select
    2. Are you using the Premiere Elements 12/12.1 Expert workspace Pan and Zoom Tool? Or the pan or zoom presets under fx Effects/Presets/? With those you can do pan or zoom, not pan and zoom.
    Or, are you in the Elements Organizer 12 Slideshow Editor using the pan and zoom effect there? Or, are you using keyframing the Motion Scale property for zoom and the Motion Position property for pan?
    Are you asking about photos with landscape or portrait orientation?
    The pan and zoom tool does one photo at a time.
    Have you read the Adobe documentation on the Pan and Zoom Tool?
    http://help.adobe.com/en_US/premiereelements/using/WSeffff8bffc802084-494411db12fd35452dd- 8000.html
    Please review and clarify and then we can get into greater details on this.
    Thanks.
    ATR

  • I recently had to disable and enable all add-ons on Firefox. Now when I google something, when I hover over the website preview and click 'cached' it won't highlight the key terms anymore. How can I fix this?

    I recently had to disable and enable all add-ons on Firefox. Now when I google something, when I hover over the website preview and click 'cached' it won't highlight the key terms anymore. How can I fix this?

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Hi all new here, am just learning and when i activate the dodge or burn symbol i click over the area to be worked and my Mac freezes. only in the elements software. if i go out of  elements i cannot get back in and have to force a software close, any sugg

    Hi all new here, am just learning and when i activate the dodge or burn symbol i click over the area to be worked and my Mac freezes. only in the elements software. if i go out of  elements i cannot get back in and have to force a software close, any suggestions and please help

    Please post Photoshop Elements related queries over at
    http://forums.adobe.com/community/photoshop_elements

  • I have finished a book in Aperture 3. When I press buy book a text comes up " empty text field detected in book" I have been through the book many times and can't find it. Can I over ride it at this stage the book wants to cancel

    I have finished a book in Aperture 3. When I press" buy book' a text comes up " empty text field detected in book" I have been through the book many times and can't find it. Can I over ride it?  At this stage the book wants me to cancel

    I have been through the book many times and can't find it. Can I over ride it?  At this stage the book wants me to cancel
    Sure, you can override the warning and press "Continue" instead.
    But you said "you have been through the book many times" - have you checked the pages in Aperture's book view or have you checked the preview of the book? I'd look at least at at the "Preview" of the Book - after pressing "Continue" you will see the "Preview" button when the next panel is shown. Look carefully at the preview of the book, if any text is missing.
    If you are sure that you like what you see in the preview and no empty textfields show, you can proceed to buy the book.
    Regards
    Léonie

Maybe you are looking for