A newcomer ask a simple question

hi ,i am a chinese ,and i just began to learn java ,my question is that:
is there a method which could check whether the GUI widget s such as button ,textfield ..get Focus ?if there is ,pleast tell me it .
now i am doing some practice which about keyEvent ,and i need to know that .
thanks very much !

to check whether a component currently has the focus
isFocusOwner()
this link might be handy for you
http://java.sun.com/docs/books/tutorial/uiswing/TOC.html

Similar Messages

  • FIRE FOX SUCKS. ALL THIS BULLSHIT TO ASK A SIMPLE QUESTION. GOGGLE IS HASSLE FREE IN THIS DEPT. FIRE FOX CAN NOT APPRECIATE SOMEONES TIME.

    Question
    FIRE FOX SUCKS. ALL THIS BULLSHIT TO ASK A SIMPLE QUESTION. GOGGLE IS HASSLE FREE IN THIS DEPT. FIRE FOX CAN NOT APPRECIATE SOMEONES TIME.
    OH, THE PART ABOUT SIGNING UP FOR AN ACCOUNT...THEN IT SAYS' "THANK YOU FOR BERING AWESOME". THAT'S ABOUT AS MUNDANE AS A "CARBON FOOTPRINT".

        Hi Nikgee
    I'm not showing any issues with that browser. I tested  firefox on our site. I'm sorry have you tried clearing your browser history and retesting. Are you having difficulties with other sites?
    Thank you
    JoeL_VZW
    Please follow us on twitter @vzwsupport

  • New comer ask 2 simple questions:how to set the use of the right click of

    New comer ask 2 simple questions:how to set the use of the right click of your mouse?
    I don't know why when i click the right button of my mouse in logic, sometimes it's the same funcion as my left one, some times it's the same function that opens the tool menu....But in MacOSX,it's all okay.Just the weired thing in logic ,please help
    2.is there any kind of filter in Score? I mean, in midi track I have a C1 note, and I don't want the C1 note shown in my score, I want every note show which are above C2, like a filter. I think this is helpful dealling with some keyswich things,how can we do that?

    In Preferences -> Global -> Editing you can choose weather right click is assignable or opens the tools box.
    Not to sure about the score dude

  • $99 per issue to ask a simple question!!

    Apple support is the worst ever! I own an Audio/Video Post Productin studio with over 50K using their equipment and they won`t answer even 1 question. They want $99 per question and find that shameless and unethical! Thanks for the support (NOT) and your company has NO interest in it`s customers obviously. Money grubbing leaches plus terrible managenent to bring customers back to their products! 

    stedman1, Thanks for givivng me a much better option! Have worked with Logic for a few years now learning everything pretty well on my own and am the MD of omm.hd av/post prduction. I ran into a wall trying to utilize the mac manual plus the logic community regarding external instrument plug-ins and will contact you soon. Thanks once again for your help to musicians like us!  Mike

  • SIMPLE QUESTION: LYNC 2010 -- AVAYA CS1000 DIRECT SIP: IS THAT POSSIBLE? PLEASE HELP!

    Hello,
    I would like to ask really simple question here: is that possible to establish (configure, setup, create, make etc.) a direct SIP connection between LYNC 2010 and AVAYA CS1000 PBX. On one side I have Lync 2010 Standard Edition acting as Front-End Server
    with co-located Mediation Server. On another side I have AVAYA CS1000 IP PBX Version 7.0. We are trying to make this happen for 1 full year with no luck. The issue is that we do not manage our PBX (external company does).
    Here is what we are basically trying to achieve:
    All I want is that basically LYNC user (phone # 5678) can dial PBX user (phone # 1234) and talk. Also PBX user can call LYNC user and they can talk. I'm pretty sure that all I'm asking is very simple thing. I don't expect magic to happen (e.g. when one user
    calls another user the world will change). All I want is to be able to call between LYNC and PBX users so they can talk.
    Sorry for repeating again but here is my simple question: can direct SIP (or call it SIP trunk if this is the right word) be established so LYNC and PBX users can call each other and talk. Whatever protocol is (G.711, G.722 etc.) I will be happy.
    If you can let me know I would very much appreciate this. I'm sure I'm not alone in this world and many companies out there using AVAYA CS1000 and deployed LYNC and probably have the same question so it may be helpful to other people as well.
    Thanks!

    Hi Thamara for reply. I can see where you are going, but the challenge here is that I have found many threads including in this forums from people who successfully connected CS1000 PBX to Lync 2010 for two-way calling, and even dual-forking (which I cannot
    even dream about at this time).
    If you go to AVAYA WEB site, you can find official AVAYA compatibility MATRIX that is available here:
    http://www.google.ca/url?sa=t&rct=j&q=avaya%20compatibility%20matrix%20lync&source=web&cd=1&ved=0CBwQFjAA&url=http%3A%2F%2Fsupport.avaya.com%2Fcss%2FP8%2Fdocuments%2F100135385&ei=v3-5TsXVKMLX0QGHpdSkCA&usg=AFQjCNG6cmW5izdOASMuW34b8iK0vWnwuw
    According to this document, only CS1000 version 7.5 supports Lync 2010 and only via ACE - starting first quarter of 2011 (which is done deal by now) - see below for details. The problem is that I have a hard time to understand the meaning of the word "Supported".
    I do not really need full support, all I want is to be able to call in both directions using 2 distinct numbers (e.g. 4 digits extensions) that are configured in both systems.
    Another thing is this ACE. Apparently it is a big monster software that you need to buy and pay big bucks and lots of configuration just to make it working. But I'm not even sure what will work. We do have one-way calling (from Lync to PBX) - it just does
    not work other way, and I have no idea why. I'm not sure if this cannot be working, or because it was not setup right. As I mentioned before we have no access and clue about IP PBX - this is one of my issue here. Withoul knowledge how it works on PBX side
    I cannot be sure what is causing this.
    So I was wondering if anybody in this world was able to connect CS1000 PBX to Lync and perform two-way calling using two systems.
    Thanks!
    Microsoft OCS 2010 Lync
    Supported (via ACE) - 1Q11

  • All I want, is a simple email address to ADOBE, where I can ask a billing question. PLEASE HELP!

    I need a simple email address to SOMEONE in Adobe, where I can ask a billing question. It seems very clear that this is not smething the Company wants to attend to. After 30 minutes of ebing looped around and around through the menus, I cannot find a single, simple, email address where I can ask a question.  Can anyone help?
    Here is the background. My membership is paid for vie my University. The University is tax exempt, and I need to speak to, email, send a form do something to remove $1.40 from the invoice. Yes, $1.40  It is not my issue, it is the University's and I need to get this done.  However, I cannot find an email address, and I refuse to wait for 37 chatters ahead of me. There simply must be a smarter, better, more customer friendly way for Adobe to support.
    Does anyone have a secret email, or can you tell me the necessary key strokes and menue choices that will get me to a Customer Service rep?
    Thanks.

    ~graffiti wrote:
    Foxit reader seems to be plenty for most.
    http://www.foxitsoftware.com/pdf/reader/
    Make sure that you Decline the spyware 'Ask Toolbar' that comes bundled with it.

  • Simple Question Ask !!!

    Can anybody there help me up please, I face a simple question
    which is :
    how and where I can create my own table with its field and
    view, so that I can select in the 'Data Block Wizard'.
    If u really know the answer, please be inform be as soon as
    possible, so that I can proceed with my development...
    Thanz!
    null

    Eric (guest) wrote:
    : Can anybody there help me up please, I face a simple
    question
    : which is :
    : how and where I can create my own table with its field and
    : view, so that I can select in the 'Data Block Wizard'.
    : If u really know the answer, please be inform be as soon as
    : possible, so that I can proceed with my development...
    : Thanz!
    Hi Eric !
    If I understand your question correctly, you are trying to
    create a table and then trying to access it in some form or in
    some report. Right ? If yes then below is the answer...
    You can create the table in the database using your login id and
    password and then use the same login id and password in the
    forms/report and you will see that table in the data block
    wizard. (you can see other users tables also if you check the
    option of other users also in the data block wizard.)
    Shobhit
    null

  • This might be a simple question.   On those sites that do not differentiate between models when on the internet I.e. Facebook when after your comment and you cannot hit "enter" on an iPad for examp. And speed is slow to connect.  What is = to post?

    This might be a simple question. On those sites that do not differentiate between CRT, laptop, tablet etc. such as an iPad Mini and using the Facebook site fir example when going to post a comment and you do not have a enter button on the IPad and the speed is slow how do you get your comments to post if we do not have a enter button? 
    <Email Edited By Host>

    I don't have facebook so I cannot answer but for your personal security, I have asked the hosts to remove your e-mail address.   It is very unwise to publish this.

  • This is a very simple question,but I don't know.Please me.Thank you!

    I am a Chinese student in a university.I have a very simple question to ask.
    I have writed a EJB module,and I have deployed to Weblogic8.1 successfully.
    1.Now I want to write a client program.Is it necessary that the client program is packaged in the EJB package.For example ,the EJB package is Beans,is "package Beans " or "import Beans.*" necessary in my client program.
    2.If I only know the EJB interfaces,that means the EJB module is writed by other programer.I want to know how I can write the client program.How can I call EJB module's method writed by other programer.Could you give me a simple example?
    Thank you very much.

    I have writed a EJB module,and I have deployed to
    Weblogic8.1 successfully.:-)
    1.Now I want to write a client program.Is it
    necessary that the client program is packaged in the
    EJB package.For example ,the EJB package is Beans,is
    "package Beans " or "import Beans.*" necessary in my
    client program.You need not package your client with the EJB. It can be a JSP/servlet or a stand-alone application.
    2.If I only know the EJB interfaces,that means the
    EJB module is writed by other programer.I want to
    know how I can write the client program.How can I
    call EJB module's method writed by other
    programer.Could you give me a simple example?
    import java.util.*;
    import javax.naming.*;
    import javax.rmi.PortableRemoteObject;
    import examples.*;
    class TestEJBHello {
        public static void main(String[] args) {
            Context context   = null;
            Object object     = null;
            // Hashtable for environment properties.
            Hashtable env = new Hashtable();
            env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
            env.put(Context.PROVIDER_URL, "t3://localhost:7001");
            HelloHome home            = null;
            HelloWorld hello          = null;
            try {
                context     = new InitialContext(env);
                object      = context.lookup("HelloWorldTest");
                System.out.println(" JNDI Looked up >>> " +object);
                home        = (HelloHome)PortableRemoteObject.narrow(object, HelloHome.class);
                hello       = home.create();
                System.out.println(hello.hello());
            } catch(Exception e) {
                e.printStackTrace();
            } finally {
                close(context);        // Closes the initial context.
        private static void close(Context context) {
            try {
                context.close();
                System.out.println("*** Context closed. ***");
            } catch (NamingException namingException) {
                namingException.printStackTrace();
            } catch(Exception exception) {
                exception.printStackTrace();
    }Here's a sample client app code I use for a HelloWorld EJB. You need to have a EJB client JAR containing the home and remote interfaces in the classpath during compile time and runtime.
    x

  • Reading Files (simple question)

    I'm doing some homework (and no, I'm not just looking for a handout answer, I just need a simple question answered) and I was wondering about how to read a word and evaluate if the word is the same as another word. I want to do this from a .txt file using the Scanner. I know I have to read the file and use while(ifp.hasNext()) but how do I evaluate it word by word? If there's anything else you need or if I'm asking the wrong question, let me know.

    Is there any other way to read through a file other than nextLine? I know there's probably a simpler answer, but the only way I could think of doing it is storing the next line as a String and trying to find the specified word in the string. Not only am I not sure how to do that, I imagine there's a better way. Should I be evaluating it a different way?
    Edit: I was looking at the javadoc on the Scanner class and I saw the findInLine method. We definitely didn't use this in our class, but is that what I should use?
    Edited by: Mikola7 on Nov 5, 2007 4:14 PM
    Edited by: Mikola7 on Nov 5, 2007 4:16 PM

  • SIMPLE QUESTION: Change background color

    Hello mates, I have a really simple question.
    I want to change the color of my project from (default) black to white.
    Thanks,
    Ben

    Ben,
    I'm still not sure if you are looking to change the PrPro GUI (the display of the interface), or some aspect within your Project. If the "background" is what is seen in your Program Monitor, then creating a Color Matte on Video Track 1 will likely be the answer. You can choose the color that you desire and anything on the upper Video Tracks, that do not occupy the full Frame Size will have that Color Matte as the "background."
    For the GUI, Harm has addressed that, but I do not think that is what you are asking for.
    Good luck,
    Hunt
    PS an attached (use the little "camera" icon in the middle of the editing screen's Toolbar) screen-cap of your Timeline and your Program Monitor might clear things up a bit, in case you have not found the answer already. Just add some text to it in PS along the lines of "this is what I have now, but want to change it to a blue color... "

  • A simple question... re. Intel CPU and Heasink

    this is probably really simple, but i need to be sure so i'll ask anyway  
    My question is:
    Do you remove the thin black sheet of what i pressume is aluminium on the heatsink before installing it onto the CPU?
    I applied some Artic Silver on the CPU and left the black aluminium sheet on when installing my Intel Heatsink and CPU.... is this the correct way?
    Cheers

    Stock heatsink and fan dont remove, dont use thermal paste
    After marketheatsink and fan, apply thermal paste
    If you must apply thermal paste remove black strip as best u can and then apply rubbing alcohol to remove last traces then apply thermal paste.
    If you ever remove heatsink you will probably need to remove black strip and reapply thermal paste

  • Simple question around text box action listeners....

    Hi, I'm hoping there is a simple solution to this question.
    What I have is a text box, by default it will be empty. what I'm looking for is Some kind of action listener to be kicked off when ever a user writes in the textbox......
    here is a little bit of code i'd "like" to do....
       textBoxBean.addPropertyChangeListener(new PropertyChangeListener() {
                public void propertyChanged(PropertyChangeEvent event)
                     if (businessTypeBean.getText() != null){
                         // do somthing
                     else{
                         // do something else
            }); The only problem is the the silly thing never gets called.....
    a silly question but, unfortunatly all this is change a tooltip and enable disable a button based on weather or not there is something in the textbox....... Sigh......
    Any ideas would be great.
    Cheers,

    But you do waste your time with the above.......... With the hope that you will actually learn how to ask a meaningfull question the next time.
    You still have people totally confused about what you are asking. Some people think you have an AWT based question. Others think its a Swing related question.
    Your question is about an ActionListener, but you code shows a PropertyChangeListener. It seems like you are asking about a Swing component, but there is a Swing forum for Swing related questions.
    We are not mind readers. Ask a well thought out question and you will generally get a well though out response.

  • Answer to a simple question.

    I am just trying to get a simple question answered.  I don't want to go into a discussion.  I just want to ask for help.  How do I download files to an existing folder?  I was able to do this up until today and now I am having problems.  Please help,

    Download what?  From where?  Using what software?  On What operating system?
    If you don't want a discussion, then you need to provide all information.

  • Simple question re invoking non-WebLogic web services

    I have a very simple question that I haven't been able to resolve elsewhere.
    I need to invoke 3rd-party SOAP interfaces from my WebLogic 6.1 client EJB. All
    the Bea documentation I've found refers to invoking "WebLogic Web Services" and
    speaks of downloading the client.jar -- however, in my case it's not a "WebLogic
    Web Service" I'm invoking, it's a non-WebLogic web service.
    Does WebLogic 6.1's WebServiceProxy (or other tool) allow this? Or must I use
    some other SOAP tool such as Apache Axis in this case?
    Thanks.
    Cheers,
    allan

    Could this interopability problem have something to do with a problem
    I'm experiencing on 61.sp3?
    I have an EJB that accesses SOAP services on a Tomcat server. The SOAP
    service sends back a SOAP exception which is correct in what I am asking
    in to do. However, the weblogic app server is returning a SOAP
    exception to my EJB rather than passing the SOAP exception to the API
    that I am using to make my SOAP calls.
    Has anyone seen something like this?
    Sandy Mustard
    john wrote:
    >
    The 'samples/examples/webservices/rpc/javaClient/XMethodClient'
    is an example of how to invoke a non-WL webservice. You can
    use that code within your EJB.
    The javadocs for the WebServiceProxy class (from BEA's site)
    will give you more methods that may be useful to you.
    Note that your best bet, if possible, is to use the JAX-RPC
    APIs within WebLogic 7. The SOAP support in WL6.1 has
    interoperability issues.
    -john
    "Allan Halme" <[email protected]> wrote:
    I have a very simple question that I haven't been able to resolve elsewhere.
    I need to invoke 3rd-party SOAP interfaces from my WebLogic 6.1 client
    EJB. All
    the Bea documentation I've found refers to invoking "WebLogic Web Services"
    and
    speaks of downloading the client.jar -- however, in my case it's not
    a "WebLogic
    Web Service" I'm invoking, it's a non-WebLogic web service.
    Does WebLogic 6.1's WebServiceProxy (or other tool) allow this? Or must
    I use
    some other SOAP tool such as Apache Axis in this case?
    Thanks.
    Cheers,
    allan

Maybe you are looking for

  • Can I stream from the same iTunes account to 2 Apple Tv's in 2 different locations?

    I currently have 1 Apple TV device at home.  I'm thinking of buying a second one to keep in my office at work across town.  My concern is this: my kids love streaming purchased movies and TV shows at home during the day while out of school.  Will I b

  • Retriving company code in R3 from service organisation in CRM

    Hi, I have service organisation of CRM in R3 , now I need the corresponding company code/plant in R3. how to retrive it, is there any FM or method by which we can retrive. thanks bobby

  • Webservice not responding

    Hi all, I am updating xcelsius dashbaords with bo 4.0 servernames when using 3.1 webservice getting the below url /dswsbobje/qaawsservices/queryasaservice?&cuid=M0.kVWIADWHnAAcw4gAARUgFAgpkqCEAAAA&authType=secEnterprise&locale=en_US&timeout=60&Conver

  • HT203161 Logic Pro 9 and OS X Yosemite in conflict with M-Audio Blackbox interface

    I am using Logic Pro version 9. I recently upgrade to OS X 10.10.2 Yosemite software. Now, my M-Audio BlackBox interface is not recognized by the new OS system. Can someone suggest a fix for this? Thanks.

  • DIAdem memory increase

    Hi, I have a question about the memory used by DIAdem. On one PC with DIAdem Base, I this code: For I = 1 to 10     Call DataDelAll     Call DataSetLoad("EXAMPLE.TDM")     Pause(10) Next Every time DIAdem load the file, I see in the tasks manager, th