Results 1 to 4 of 4

Thread: Using DND

  1. #1
    shahdharmit is offline Member
    Join Date
    Jul 2009
    Posts
    4
    Rep Power
    0

    Default Using DND

    Hello,

    I've made a button. Set its image using btn.setImage method. Now what I want to do is - when a user clicks on the button, the button should remain selected. And when he clicks on some part of the shell (except that part where button already exists) the image on the button should appear there. I've image of a PC that I want to handle this way.

    Can someone tell me the exact methods that I need to use. Is DND class to be used for it?

    Thanks.

  2. #2
    Cbani is offline Member
    Join Date
    Jan 2010
    Posts
    90
    Rep Power
    0

    Default

    could anyone please tell me how to create a new thread...i am really struggling....
    where would i find a button NEWTHREAD as mentioned in FAQ?

  3. #3
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    Quote Originally Posted by Cbani View Post
    could anyone please tell me how to create a new thread...i am really struggling....
    where would i find a button NEWTHREAD as mentioned in FAQ?
    First you navigate to the forum in which you want to start the thread e.g "New to Java" or "Advanced Java"

    Then the "New Thread" button is near the top left corner of the page.

  4. #4
    AndreB's Avatar
    AndreB is offline Senior Member
    Join Date
    Dec 2009
    Location
    Stuttgart, Germany
    Posts
    114
    Rep Power
    0

    Default

    Quote Originally Posted by shahdharmit View Post
    Hello,

    I've made a button. Set its image using btn.setImage method. Now what I want to do is - when a user clicks on the button, the button should remain selected. And when he clicks on some part of the shell (except that part where button already exists) the image on the button should appear there. I've image of a PC that I want to handle this way.

    Can someone tell me the exact methods that I need to use. Is DND class to be used for it?

    Thanks.
    You can't let the (push) button be selected bcause it is a native component and the clicks and rendering (of the action) ist handled by the OS

    try to create your own button from a composite or a canvas with desired functionality
    "There is no foolproof thing; fools are too smart."
    "Why can't you solve my Problem ?"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •