Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / July 2005

Tip: Looking for answers? Try searching our database.

Jtextfield: how to make left side of the text visible

Thread view: 
jobs239@hotmail.com - 22 Jul 2005 20:39 GMT
I have a Jtextfield in the GUI. I want it to be left aligned and always
the start of the text to be visible. But I see that when the text
length is smaller than the Jtextfield width, the text is correctly left
aligned and whole text is visible.
  However if the text is longer than the width of textfield, I see the
end of the text visible in the textfield. How can I fix it, so always
the start of text is visible.
Monique Y. Mudama - 22 Jul 2005 20:47 GMT
> I have a Jtextfield in the GUI. I want it to be left aligned and always
> the start of the text to be visible. But I see that when the text
[quoted text clipped - 3 lines]
> end of the text visible in the textfield. How can I fix it, so always
> the start of text is visible.

Is this textfield supposed to be editable?  I'd be rather unhappy if I
had to type into a textfield that wouldn't show me the tail end of
what I'm typing.

Signature

monique

Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html

Andrew Thompson - 22 Jul 2005 21:15 GMT
> I have a Jtextfield in the GUI. I want it to be left aligned and always
> the start of the text to be visible.

<http://java.sun.com/j2se/1.5.0/docs/api/java/awt/TextComponent.html#setCaretPosi
tion(int
)>

..'0'

Signature

Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
In Hypno-Vision



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.