Results 1 to 3 of 3
  1. #1
    ronaldrandon is offline Member
    Join Date
    Aug 2010
    Posts
    5
    Rep Power
    0

    Default Can we drag the text from left corner to center using mouse in JTextArea or JEditorPa

    hey ....

    Can we drag the text from left corner to center using mouse in JTextArea or JEditorPane or JTextPane ?


    please reply ...........

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,447
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by ronaldrandon View Post
    hey ....

    Can we drag the text from left corner to center using mouse in JTextArea or JEditorPane or JTextPane ?


    please reply ...........
    Read all about it in the API documentation of the Transferable class (it even has a link to the Drag and Drop tutorial) and the TransferHandler class API.

    kind regards,

    Jos

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,197
    Rep Power
    19

Similar Threads

  1. Java: How do i align the text in the center?
    By nicacutenica in forum New To Java
    Replies: 5
    Last Post: 06-29-2010, 06:50 PM
  2. [SOLVED] Toggle Mouse Left-Right Handed
    By sirwiggles in forum New To Java
    Replies: 4
    Last Post: 04-10-2009, 10:27 PM
  3. Mouse drag and drop to draw
    By Java Tip in forum java.awt
    Replies: 0
    Last Post: 06-23-2008, 11:16 PM
  4. How to mouse-drag a JWindow?
    By cruxblack in forum New To Java
    Replies: 3
    Last Post: 08-06-2007, 09:52 AM
  5. Replies: 1
    Last Post: 05-19-2007, 12:03 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
  •