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

    Exclamation Can we move a text to a desired place in JTextArea

    hiii ,,,

    I am a beginner to Java ...

    Can we move or drag a text to a desired place in a JTextArea or JEditorPane or JTextPane ....

    Please reply me.... and solve my doubt

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default

    Perhaps by inserting blanks to fill empty slots

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

    Default

    hey will u please explain it ....

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default

    Add a String like " " to where you want to move data to the right.

    If you want a String to be moved to the right by 5 spaces, Add a string of 5 blanks in front of it.

  5. #5
    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 JEditorPane or JTextPane ?

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default

    Can we ...
    For these types of questions it is best if you write a small program, do your tests and see what happens.

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

  8. #8
    crikey is offline Senior Member
    Join Date
    Jul 2010
    Posts
    125
    Rep Power
    0

Similar Threads

  1. Replies: 0
    Last Post: 08-06-2010, 05:40 PM
  2. Java Keeping Text in One Place
    By xpngamer in forum New To Java
    Replies: 1
    Last Post: 04-09-2009, 06:27 AM
  3. Need Help showing text in JTextArea
    By GuyFawkes in forum AWT / Swing
    Replies: 3
    Last Post: 05-05-2008, 09:19 AM
  4. JTextArea - text align
    By bradder in forum AWT / Swing
    Replies: 1
    Last Post: 11-29-2007, 07:08 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
  •