Results 1 to 16 of 16
  1. #1
    chyrl is offline Senior Member
    Join Date
    Mar 2010
    Location
    Manila, Philippines
    Posts
    257
    Rep Power
    5

    Exclamation Help in KeyEvent

    I have tried searching on google about my problem, yet I can find the right logic (understand) for me the code my key combination ([Left]Control + [Left]Shift + A)

    I have a thread in this forum on this thread but I am still confused about it.
    So, if there is a possible. Upon the codes given to be by google, how could I implement this key combination to work.

    The logic is like this. Orginally, A JFrame, inside a JWindow, which contains a group layout of other components (the components are not focused, only the JWindow). Upon pressing the key combination ([Left]Control + [Left]Shift + A), an action is performed.

    I will try to create a SSCCE for this thread, though I already have one but using javax.swing.KeyStroke (provided by camickr, the code is located in the other thread).
    Every project, package, class, method, variable, syntax, algorithm, etc.
    are registered in my memory bank. Thanks to this thread.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Please don't post the same question in several times in different sub-forums. If you feel that you've not post your questions in a wrong sections please send a PM to one of our moderators and ask to move. They we'll do it for you. :)

  3. #3
    chyrl is offline Senior Member
    Join Date
    Mar 2010
    Location
    Manila, Philippines
    Posts
    257
    Rep Power
    5

    Default

    This thread is in the right section.
    But is there anyone to help me answer this thread.

    I will be delighted if you could guide me.
    Every project, package, class, method, variable, syntax, algorithm, etc.
    are registered in my memory bank. Thanks to this thread.

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  5. #5
    chyrl is offline Senior Member
    Join Date
    Mar 2010
    Location
    Manila, Philippines
    Posts
    257
    Rep Power
    5

    Default

    Here is the link you request of.
    Every project, package, class, method, variable, syntax, algorithm, etc.
    are registered in my memory bank. Thanks to this thread.

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  7. #7
    chyrl is offline Senior Member
    Join Date
    Mar 2010
    Location
    Manila, Philippines
    Posts
    257
    Rep Power
    5

    Default

    Ahm. Eranga, have you found anything so far?
    Every project, package, class, method, variable, syntax, algorithm, etc.
    are registered in my memory bank. Thanks to this thread.

  8. #8
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,344
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by chyrl View Post
    Ahm. Eranga, have you found anything so far?
    It was not a clever thing to abandon your previous thread: Camickr was answering your question; that guy is a miracle when it comes to Swing, he knows a lot about it and you should really read his replies and blog securely because the answer is there: study those key bindings and actions because that is the way to go (I can't give you any details because I have to look them up myself for those JFrames and JDialogs).

    kind regards,

    Jos

  9. #9
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  10. #10
    chyrl is offline Senior Member
    Join Date
    Mar 2010
    Location
    Manila, Philippines
    Posts
    257
    Rep Power
    5

    Default

    I don't know. What do you means by OP?
    Every project, package, class, method, variable, syntax, algorithm, etc.
    are registered in my memory bank. Thanks to this thread.

  11. #11
    curmudgeon is offline Senior Member
    Join Date
    May 2010
    Posts
    436
    Rep Power
    5

    Default

    OP stands for either Original Post or Original Poster, depending on the context (here it means original poster).

  12. #12
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by chyrl View Post
    I don't know. What do you means by OP?
    Yeah, OP stands for original poster. I'm normally use that abbreviation in my posts.

  13. #13
    chyrl is offline Senior Member
    Join Date
    Mar 2010
    Location
    Manila, Philippines
    Posts
    257
    Rep Power
    5

    Default

    Oh I see now. But if I am to use the post of the other thread.
    Could I solve this thread?
    The problem on that thread. The two lines of the program has error.
    Every project, package, class, method, variable, syntax, algorithm, etc.
    are registered in my memory bank. Thanks to this thread.

  14. #14
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by chyrl View Post
    Oh I see now. But if I am to use the post of the other thread.
    Could I solve this thread?
    The problem on that thread. The two lines of the program has error.
    If you've done a mistake clear let it to others and you can correct with a new post or the edit existing post. Post the same question in multiple times because of that is not a good reason. I really don't like that.

  15. #15
    chyrl is offline Senior Member
    Join Date
    Mar 2010
    Location
    Manila, Philippines
    Posts
    257
    Rep Power
    5

    Default

    Quote Originally Posted by Eranga View Post
    If you've done a mistake clear let it to others and you can correct with a new post or the edit existing post. Post the same question in multiple times because of that is not a good reason. I really don't like that.
    I don't know if I have done wrong on the code.
    Though I don't understand what camcikr reply is about.
    Honestly speaking, I don't understand how I get the error even I have read the API and the blog.
    Every project, package, class, method, variable, syntax, algorithm, etc.
    are registered in my memory bank. Thanks to this thread.

  16. #16
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. JOptionPane KeyEvent
    By mine0926 in forum NetBeans
    Replies: 5
    Last Post: 05-05-2010, 02:03 AM
  2. Replies: 11
    Last Post: 12-25-2009, 10:30 PM
  3. Replies: 0
    Last Post: 08-17-2009, 03:59 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
  •