• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Displaying Long String in JTextField..(Urgent)

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
Whenever I enter long text in JTextField it truncates characters from left and displays the right most characters only. Is there any way to change the order of displaying the text in order from LEFT to RIGHT instead of RIGHT to LEFT.

Kindly provide your valuable comments !!!
Thanks and regards...
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
are you talking about as you enter text? seems a silly requirement
to have text go 'out-of-sight' on the right, so you can't see what
you've typed.

or is it a paste action you want to have the initial characters shown?
if so, something like this

 
nitin goswami
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for replying!!!
I was talking about the case when we type a long string in JTextField or when we set text using JTextField.setText("Long String") method....
Only the left most characters get visible.I have a requirment that in such case i want to see the text from the start,it should truncate from the right end.
thanks
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic