JTextArea not reformatting with font change

I have a JTextArea Which allows font changes through a combox in a toolbar. When the font gets changed to a wider font, e.g. from Serif to Book Antigua, the wrapped lines reformat to a different line spacing and, if a new wrap is needed, write over the next row. The non-wrapped lines do not get reformatted. Is there any way to force reformatting for all lines?

for anyone interested in a workaround:
setLineWrap(false);
setLineWrap(true);
forces a reformatting of the line heights and positions of all lines

Similar Messages

  • What is the problem with fonts changing to myriad pro? Is this problem ever going to be resolved? Its driving me mad!

    What is the problem with fonts changing to myriad pro? Is this problem ever going to be resolved? Its driving me mad!

    Browser Dog, Amy,
    The default font remains Myriad Pro until you change it, either in the RGB/CMYK Startup files or in the preferences, options depending on versions.
    Concerning missing font names, I believe this may solve it:
    Open System Preferences and go to Accessibility. Next, select Display from the source list along the left, then check the box labelled Reduce transparency.
    It was first presented in this post #15 by TheUlser:

  • Database table not updating with the changes

    Hi friends,
                    Iam having a tablecontrol where iam gettting the data from the ztable for a particular key field.  When i change certain fields in the table control and when i click save, it should update the changes in the ztable.
       module save output.
       modify zslip_po1 from table x_po1_slip.
    here slpno is the key field.  if I change a field for a particular slpno it should update the changes for that slpno value only.
    but it is not updating the changes. although iam setting the slpno field dynamically.
    Please give me ideas.
    thanks and regards
    Murali Krishna T

    Hi,
    1. Have 2 Internal Tables, the first one must contain the original data(before change ) and the second one  contains the update data(after changed ie. table control data).
    2. loop the first table and read the data from the second table using index.
    3. inside the loop, compare the work area of both the internal table.
       if both are same, then no change was made to that particular record, so no need for updation
       if both are not same, then some changes were made on that record, so need to update.
    4. use modify command to update that particular record from the work area.
    i think in performance wise also this logic will be helpful, since we are updating only the changed record.
    since this is addon table, so i hope the no of records will also less, so no need to worry about loop.
    check with this, it may work out......
    thank you,
    SenthilPandi C
    Edited by: SenthilPandi ChandraSekaran on Feb 4, 2010 5:36 PM

  • Profit center not updating with plant change

    We have an issue with the profit center not updating with change in delivering plant.
    A CSR entered a material on a sales order but the material is not extended to their location.  They select a plant to deliver the material from.  At this point the profit center fills in for that plant, from the material master. 
    The issue then is the material is not currently available at that plant so when the availability check is preformed the CSR checks for availability in another plant.  They are able to find an available item at another location so they select that location. 
    When they save the sales order the plant reflects the new delivering plant, but the profit center still reflects the first selected plant.  The profit center does not pull from the material master correctly.
    Has anyone seen this issue before and developed a solution?

    Hello Matthew
    May be you have substitution defined in CO.
    T codes 0KEM or 0KEL
    See the following OSS notes:
    167912 - Substitution call-up points for sales order/billing document
    Hope this helps.

  • Reflection: invoke(obj, args) - args not returned with any change?

    All,
    I'm trying to invoke Method.invoke(obj, args) with an array of args that I'd like to be returned by reference (i.e. the method I'm invoking is changing the values within the array). For some reason, even though the method alters the values, they don't seem to be returned with any change?
    FYI - the obj returned from the method is fine (i.e. For ret = Method.invoke(obj,args) the ret object is valid and works like a treat).
    Any help on this would be appreciated.
    Kind regards,
    Matthew

    this is how it should be defined:
    target method:
    public type [] targetMethod(type[] arg) {
    //modify array 'arg'
    return arg;
    reflection code:
    modifiedArray = (type [])targetMethod.invoke(targ, args);
    Do you understand what I am saying? When your target method receives an argument that it must modify, it must return that array so that the modified values are available to the calling Object. Other wise, the values are only modified within the scope of the target method.
    Reflection is great for gaining an insight into classes and invoking methods that provide an insight into Object instances for things like a debugging utility, but it does not perform well, so you may want to avoid it if your only need is to modify runtime values.... ... hope this helps.

  • Have a Friends and Family plan. I have unlimited data and want to keep it. Questions on what I can and can not do with account changes.

    Ok,
    So I am on Friends and Family 2000minutes and unlimited Text.
    4 phones.
    My phone has Unlimited Data and Hotspot
    Other 3 do not have any data.
    I am curious what I can do and can't do that will keep keep the plan as is and not force things to share everything.
    I am allowed to have 5 phones under this plan. I am curious about adding and deleting phones.
    I did try and add a 5th phone. When I tried to activate a 5th phone online it would not let me do it. Tried to get me to change plans.
    Here are a few scenarios that I see coming up in the future.
    I would like to add a 5th phone. My father has an account and I would like to roll him into my plan instead of his own account. I have already done this once before many years ago with no problem with 2 of the lines that I currently have. Is this possible or is that enough to trigger the move share everything scenario.
    Second. how about removing a line from my plan?
    One of my numbers is for an 18YO that wants to be more independent and have their own account. Can I down the road either transfer that line and number to its own account which would be share everything (I do understand that). Or can I delete that line from the account without triggering the share everything scenario?
    Also it seems when I look online I can change data plans currently three phones are on data block. Can I actually change them to a data plan within the Friends and family or is the Share everything scenario triggered. What about if I change them to a smart phone from their basic/feature phone. I know I can't get unlimited data but can I still get them on my friends and family tiered data plan?
    What is up.
    Thank You

    yes to everything; you can add a line (up to 5 total for Family Share), drop a line, upgrade a basic line to a smartphone (and then add a tiered data plan) and stay on your current calling plan ... it may be easier done in your local Corporate Verizon store, though ... just be sure they don't try to switch you to Share Everything if that's not what you want

  • HT4847 I had a previous e-mail address associated with my Apple Account.  I change this, but Cloud did not update with the change.  Now I can't log-in under the old I.D. and when I try to provide a password or get through by providing my BD it says it is

    For some reason when trying to get ito Cloud, I can't get into my previous e-mail address to make changes, which I must do to delete it.  Cloud does not recognize my old password and the system does not seem to associate my BD with it.  I knowlonger have the old e-mail address associated with Cloud.
    I have a new e-mail associate with my Apple account and a new password.  The problem is trying to get Cloud to recognize my new I.D. 

    You have to delete the old account, provide the password for the old ID when prompted to turn off Find My iPhone, then sign back in with the ID you wish to use.  If you don't know the password for your old ID, or if it isn't accepted, go to https//appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Tap edit next to the primary email account, tap Edit, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https//appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • I am not happy with the changes in recent versions of Firefox

    Hey Guys and Girls in the 'Development Team'
    Have you noticed that the vastest majority of Firefox users
    are looking for ways to return the interface to the one they know and love. Clearly this has been ignored. The changes have taken away all of the features people have been used to using for yonks, just to make it more geeky and user unfriendly to newbie's & 'old folks' like my 86year old mum.
    ''deleted'' I am probably wasting my time, I guess will need to start looking for different browser technology to include in my teaching as well as my recommendations to business clientele.
    ''edited by a moderator - [https://support.mozilla.com/en-US/kb/Forum+and+chat+rules+and+guidelines Forum Rules and Guidelines]''

    We are '''''unpaid volunteers''''' here to help other users. If you have comments for the developers use Help > Submit Feedback. Note that your lengthy ramblings will not fit in the space provided there.
    The following been posted here many, many, many times.
    How to make Firefox 4/5/6 look like Firefox 3.6:
    *http://www.computertechtips.net/64/make-firefox-4-look-like-ff-3-6/
    *http://blog.fligtar.com/2011/01/16/how-to-customize-firefox-4s-ui/
    '''''Firefox 3 Theme for Firefox 4''''': https://addons.mozilla.org/en-US/firefox/addon/firefox-3-theme-for-firefox/
    *Add color home, back/forward and other buttons (like Firefox 3) to the Navigation Toolbar in place of the gray buttons in Firefox 4
    *See: http://ffaddons.game-point.net/ff3ff4/
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Include this in your '''''"teaching as well as ... recommendations to business clientele."''''' Keep your other applications with plugins updated.
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • SSO does not work with DNS change

    Hi all,
    I have an ITS service which works fine on intranet but do not work on internet.  But the same service when put on internet (ofcourse with a different DNS i.e. abc.mycompany.co.uk) and it breaks down.  When clicking on a webgui service or webrfc service it opens up the logon screen asking for password.  In the whole ITS service there is no cross domain service.
    The same thing works fine on intranet with different domain name.
    Is there any other settings to be changed to accomodate for the new domain to work on the internet?
    Thanks in advance for your replies.
    Surendar

    Hi Surendar,
    cross domain support is from security point not a proper solution.
    The ITS issues a MYSAPSSO2 cookie. The cookie specification says that the browser rules who is getting cookies. Normally only site with the corresponding DNS name will get.
    Possible solution would be:
    If you switch your application, the service which creates the ticket must be connect with another DNS name. Your DNS server allows to configure aliases. So just connect your WebServer with WGate with this new (alias) name, then you will get a cookie with another entry in DOMAIN property of the cookie.
    See ITS parameters:
    http://help.sap.com/saphelp_webas620/helpdata/en/4b/0c00273d6d11d480aa00c04f99fbf0/frameset.htm
    regards,
    -markus

  • Iphoto does not respond with batch change

    Recently, when I do a batch change for example "descriptions" iphoto does not respond.  I tried to see if it was the number of pictures that I was batch changing but it freezes even with one photo.  I tried rebuilding thumbnails.  Any ideas?

    Make a temporary, backup copy (if you don't already have a backup copy) of the library and try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home()/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
         User/Home()/Library/Caches/com.apple.iPhoto folder. 
    Click to view full size
    3 - launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    NOTE:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    OT

  • Generic delta not working with '0calday' change pointer

    I have created a generic datasource based on a database view and extracted data with afull load infopackage into BI. Then, I configured the generic delta with a date field and 0calday type. Set the safety interval of 1 day as a lower limit. Saved the datasource in R/3 and Replicated and activated the datasource in BI. Done some changes to a record in R/3.
    After that, I created an Init delta infopackage (with data) and extracted the data with the same number of records as extracted in the full load. Note that all these were done on the same day.
    If I have done something wrong by doing it on a same day, I should get 0 records.
    Why did I get the same data with a delta init package? I wonder the generic delta is configured correctly or not? Please tell me where I have gone wrong. Thanks..

    Hi Shiva,
    While running the delta init, you have option of without data transfer and, with data transfer.
    I am sure, you used with data transfer and thats why  got all those records same as full load.
    U can use different options like.
    1. DO the init without data transfer and then do the full load, and then run delta everyday for delta records
    2. Do the init with data transfer then no need to do the full load and the subsequent delta will take care day onwards,
    I guess your are good to do the delta load by tomorrow.
    Thank-You.
    Regards,
    Vinod

  • Problem with fonts changing on acrobat reader

    I'm exporting a document from Pages to PDF and have received a report from one viewer that the fonts are changing sizes erratically when viewed on a PC.   no other complaints but want the document to look nice for all viewers. Advice?

    Perhaps you haven't installed all the nice ttf fonts, like ttf-bitstream-vera and so on.

  • Problem with font changes making video unrenderable

    Hi- I hope someone can give me some advice. I have been creating different language versions of a video and until now I merely duplicated the original sequence and then changed the individual titles to create a new language version ( there is no narration - only text). Now for some reason, whenever I try to change the text, it make the corresponding video unrendered. The title appears but the video disappears- and cannot be rendered.
    I have completed about six different versions without problems, but now I can't make further changes on the video.
    Grateful to anyone who can give me some advice.
    Best regards,
    L O Foster

    cannot be rendered...that's odd. But becoming unrendered is standard. When you render the text on top of the video it makes one renderd file out of the two layers, If you change one of the layers, then the rendered file is no longer current and it has to make a newly rendered file with the current settings (in this case the altered text.) It's no different than if you were to change a setting on a filter, even one tiny notch, or change the duration of a transition. If you want to limit the amount of the render, cut the bottom clip at the beginning of the text clip and the end and it will only need to re-render the area overlapped by the text.

  • Mock costing run not updating with recipe changes to labor and overhead

    We have made changes to the labor and overhead values assigned to a master recipe.  We are trying to determine what the new standard cost will be when we do our costing run at the end of the the month.  However,  when we do our mock costing run using CK40N it does not reflect the changes we made to the labor and overhead it still pulls in the old values.  We have tried this in our test system on several other products and it has worked for some materials but not others.  I don't think it matters but the material we are costing is a semi finished good.  Any ideas?

    Problem has been resolved.  Thank you!

  • Help with Font changes

    Recently, my Pages documents won't allow me to change fonts. Anything I create comes up as Arial. Picking another font in the font window does nothing. What do I need to do? I've already tried deleting preferences for Pages in my User library.

    I had to reset my fonts in the Font Book.

Maybe you are looking for