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 / October 2005

Tip: Looking for answers? Try searching our database.

setLeftIndent ()

Thread view: 
Frances Del Rio - 04 Oct 2005 21:25 GMT
setLeftIndent() is not indenting left side of paragr, as it says in docs..

only two left-indent methods under StyleConstants:

  setFirstLineIndent(MutableAttributeSet a, float i)  and
  setLeftIndent(MutableAttributeSet a, float i)

used setLeftIndent(), but it's being ignored.. left side of paragr is
not being indented..
(also, what kind of value is 'float'?  points, pixels, inches?  it
doesn't say what unit of measurement, is there a general rule for this?
 I tried up to 50, it still won't indent paragraph..)

thank you very much..
Roedy Green - 04 Oct 2005 23:49 GMT
>setLeftIndent() is not indenting left side of paragr, as it says in docs..

Do you have to do some sort of selection first?
It is up to do to issue a repaint after your command fiddlings?

I am not familiar with using these commands.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.

Frances Del Rio - 05 Oct 2005 01:53 GMT
>>setLeftIndent() is not indenting left side of paragr, as it says in docs..
>
> Do you have to do some sort of selection first?
> It is up to do to issue a repaint after your command fiddlings?
>
> I am not familiar with using these commands.

thank you Roedy...  I don't think I can actually use this method.. I
think it would indent entire paragraph..  I need all lines indented
EXCEPT first line..  this method probably wouldn't do that..  (I
probably would have to write my own method to achieve this.. which would
probably take me about a week....;)


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.