How to realize the screen-word identification?

hi ,i am a chinese ,now i am doing a practical software which is named the base-on-pc electron dictionary ,and there is a necessary function which demands that when you move your mouse onto a word ,then ,at once ,there will come out a frame which shows the meaning of the world ,but i don't know how to realize the screen-world identification?
is there anyone can help me ? god bless you !

if you are using swing:
- get mouse pointer screen location
- get frame/window components and iterate recursively until you find the component
- depending of the component you must to use some of its method to search de word, p.e
- then you can obtain the definition and show a tooltip
but think:
- this solution is bounded to your app
- it's no generic, you must define the "searchable" components and code it
There area another more generic solution(and difficult, and interesting), if i remember right, the app babylon dictionary works capturing the area of the screen at the mouse pointer and then appling OCR technics to recognoice the word... it was good!

Similar Messages

  • How to realize the referenced in the BI, similar to EXCEL "vlookup" mode

    HI,experts:
    My  webi 4.0
    Data and  Logical following:
    DIM(dimnesion):
    one Query is
    [dimA]  [dimB] [dimC]  [dimD]
    New  add Query is
    [dimA]  [Class1]
    the two Query are Different  universe model .
    THE dimA  is the same data content.
    I want to achieve the effect of the following:
    [dimA]  [dimB] [dimC]  [dimD]   [Class1]
    Error occurred:   #DATASYNC   and    #CONTEXT (Screenshot)
    How to realize the referenced in the BI, similar to EXCEL "vlookup" mode?

    I get it.thanks
    The solution is set up  detail variable
    Screen Shot
    Regards
    wang

  • How to reload the screen when changing languages in JavaFX 2?

    I'm beginner with javaFX and i need to change language of the screen. but i have no idea how to reload the screen when the language was changed. The application have a button where have the language available. I want just refresh screen when the user change language.
    Here is the start method to show the stage.
        @Override
        public void start(Stage stage) throws Exception
            this.stage = stage;
            Locale locale = Locale.getDefault();
            ResourceBundle rb = ResourceBundle.getBundle("resources/Label",locale);
            loader = new FXMLLoader(getClass().getResource("FXMLDocument.fxml"),rb);
            root = (Parent)loader.load();
            FXMLDocumentController controller = (FXMLDocumentController) loader.getController();
            controller.setMain(this);
            scene = new Scene(root);
            stage.setScene(scene);
            stage.show();
    here is the function to change the language(in the same class with start function),the rb is the new ResourceBundle:
        public void refresh(ResourceBundle rb)
              //change the language here
    1. I don't want to use the resourceBundle to get value in resource file and set label in scene one by one.like following:
    this.btnLabel.setText(rb.getString(key.test));
    2. I don't want to reload the scene,like following:
        public void refresh(ResourceBundle rb)
             try
                loader = new FXMLLoader(getClass().getResource("FXMLDocument.fxml"),rb);
                root = (Parent)loader.load();
                scene.setRoot(root);
                FXMLDocumentController controller = (FXMLDocumentController) loader.getController();
                controller.setMain(this);
            catch(Exception err)
                err.printStackTrace();
    So do we have a solution to just set the resourceBundle and reload the scene easier?
    Thanks and best regards!

    Your option 2 (reload the FXML for the scene using the new resource bundle as a parameter), is the way this would normally be done and what I would recommend.
    Failing that, you could use option 1 of individually resetting the label text of labeled items (I don't really recommend this).
    Why don't you want to use option 2?
    Perhaps it is because there is some internal state of the UI which differs from the initial state when the the UI is first loaded (e.g. user has typed text in a text field and you want to preserve that).  If that's the case you will need to either go with your option 1 of individually resetting the label text of labeled items, or implement something which preserves the UI state and user data by saving it in memory or to disk, reloading the UI via the FXMLLoader (essentially your option 2), then restoring the UI state and user data to what it was before the language change.  Preserving and restoring the modified state seems complicated to me if you have a lot of state, so I wouldn't really advise this approach unless you really needed it.

  • How to clear the screen in java?

    Hi,
    How to clear the screen in java without using any loops?
    Thanks

    Just paint with your background color to let the old paintings vanish.

  • How to unlock the screen of my iphone to see photos in both ways vertical

    how to unlock the screen of my iphone to see my photos in both ways, vertical & horizontal ?

    Turn off Portrait Lock in Control Center.

  • Apple Mail - how to get the first word in a sentence to auto-capitalize

    How to get the first word in a sentence to auto-capitalize
    Anwar

    something to look forward to then, because we get used not to use our shift button any more, since iPhone and iPad do it for us. entourage and other ms stuff do it. pages does it too now (put it on in the auto-correct in preferences). bizarre however some loose the capitalization when you copy the text. pages to stickies or mail does not. that's good !

  • How to translate the key words in ABAp program from lower case to upper cas

    How to translate the key words in ABAp program from lower case to upper case?

    Hi Kittu,
    You need to set the Pretty Printer settings to achieve key words in ABAP program from lower case to upper case.
    Utilities -> Settings -> Pretty Printer (tab) -> Select third radio button.
    Thats all.
    <b>Reward points if this helps.
    Manish</b>

  • How to set the screen size with nested Iview screen

    Can someone show me how to set the screen size with nested IView  screen.
    at the moment i only try it with trial and error untill it looks somewhat close. Is there a property in VC to set the size for Height and width.
    The same question is for the form. the form elements inside the form is easy but the actual form is still a challenge.

    Hi,
    Yes you are correct ,Still the Form and iview are not able to change thier Layout Structure using a Propery.
    it is available with VC7.1
    Govindu

  • How to realize the other three events triggered by a sequence of events occurs?

    How to realize the other three events triggered by a sequence of events that occurs between Labview, and the time interval between three events for the 50ms?
    1110340053

    Are you another student who feels the need to post their "student ID" number as a part of the message?  There is really no need to do that, it is meaningless to us.
    You should ask your instructor to answer your questions rather than allowing them to turn the whole class of students loose on the forums usually asking the same identical question.
    At least in your case, the question is different from most we've seen.  Unfortunately, you haven't asked a clear enough question for us to understand what you are talking about.
    What "events" are you talking about?  Post a VI that demonstrates the code that you have written so far.

  • How to determine the screen structure of the detail area of a screen...

    Hi all,
              How to determine the screen structure of the detail area of a screen?

    Hi,
    go to se38,
    loop at SCREEN.
    endloop.
    put the cursor on SCREEN and press F1, then u can seee it.
    Regards,
    Pavan
    Edited by: vishnu Pavan on Mar 23, 2009 11:03 AM

  • How to take the screen shot of my computer page by using Labview.... is there any funtions available in Labview?

    How to take the screen shot of my computer page by using Labview.... is there any funtions available in Labview?

    Another thread about this theme.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • How to call the screen in methods could u please explain

    hi,
    how to call the screen in methods could u please explain clearly with example

    HI ,
    CALL SCREEN - Call a screen
    Basic form
    CALL SCREEN scr.
    Addition:
    ... STARTING AT x1 y1 ... ENDING AT x2 y2
    Effect
    Calls the screen scr; scr is the number of a screen of the main program. You use SET SCREEN 0. or LEAVE SCREEN. to define the return from the CALL screen.
    Note
    Please consult Data Area and Modularization Unit Organization documentation as well.
    Addition
    ... STARTING AT x1 y1  ENDING AT x2 y2
    Effect
    The coordinates x1, y1 (start column and start line in the window) and x2, y2 (end column and end line in the window) define the size and position of the CALL screen ("top left - bottom right"). Besides these coordinates, you can also see the contents of the primary window, but cannot perform any action there.
    Note
    If "ENDING AT ..." is not specified, suitable values are substituted for x2 and y2, taking into account the size of the called screen.
    Exceptions
    Non-Catchable Exceptions
    Cause: No further screen level (call screen); the maximum number of nested screen levels is restricted to 50 at present.
    Runtime Error: DYNP_TOO_MANY_CALL_SCREENS
    THX

  • How to record the screen in snow leopard ?

    how to record the screen in snow leopard ?

    Must I find it myself !
    Well you could try Google :-)
    I am unsure if you want a static image, or a movie recording of what you are doing on your screen.
    Images can be done using Command-Shift-3, Command-Shift-4, and Command-Shift-4-Space.
    3rd party utilities such as Skitch will allow you to annotate the image after you capture it.
    Making a movie of your screen activities can be done usng Applications -> Quicktime
    There are 3rd party screen records such as Snapz Pro, ScreenSteps, etc...
    And of course you can do a Google search.

  • How to capture the screen of the remote computer

    sir
    i need help for my project how to capture the screen of the remote
    system plaese give idea for doing the project

    Run a daemon on the remote computer which uses java.awt.Robot.

  • How to capture the screen and send it to attachment for that mail

    hi sir ,
         how to capture the screen shot and attach with that e-mail , whether it is possible or not ..
    Regards,
    kumar

    hi sir,
        i am asking about while creating the support message from help menu in sap..
    while creating the support message we have to give component , priority and text also .. after that click the send icon in that support desk message .. while clicking the send button the entire screen ( what  we have entered in that creen na ) i have to capture the screen ( it may be save in local file also )  after that it will attach into attachment and then send it to ...
    Regards,
    kumar

Maybe you are looking for

  • In XP Infinity Blocks are missing when logged in as a user

    On XP Computers when I am logger on as adminstrator there is no problem.  When my students are logged on as users, some of the Infinity Blocks are missing.  For example on Ch 2.1 Sec 2.2 lab, the ITOGGLE Block is a question mark.  I can search and fi

  • Elderly relative has problems with facetime

    Hello. I have an elderly uncle who uses facetime to stay in touch with me, (as we live in different countries). Whenever he calls me now, all I can hear is a horrible crackling/static noise. He can hear me but I cannot hear him. Please help. Thank yo

  • Best settings for export to dvd

    I am exporting to dvd from ppro cs5.  I am on windows 7, 64 bit, 6gb ram, intel I7 core.  My export - match source, highest qualtiy, looked a little glitchy in some areas and the text did not look very clear on my titles.  I think that all titles are

  • How to install HP ScanJet G4050

    How do I install HP Scanjet G4050. The message says:  You can't open the application HP Scanjet Scanner Install.app because PowerPC applications are no longer supported.

  • Flash 8 Player Plug-In in Safari not working. I tried everything. Help!

    I searched the forum searching for the answer to this popular dilema. I found out about Pacifist amd using it to extract the Flashplayer.plugin. So I did that: I downloaded Pacifist and then I loaded my original apple OSX install discs. I unlocked th