First time poster with a Stringy problem (new line "\n" not working...)

Hello,
I am having a bit of troble with making a string appear in multiple lines.
I have the following code:
String scores = ("1st Place "+ highInit1 + " " + highScore1 + " points\n");
scores = scores +"2nd Place "+ highInit2 + " " + highScore2 + " points\n";
With this string I am using swing and the following code:
g.drawString(xxx,xxx,blah.getScores());
When I have been doing this it always displays on a single line. I have tried positioning the "\n" in different places with no luck aswell. Any ideas what is going on here?
Thanks

I would suppose that drawString doesn't honor newline characters to do that. There's nothing magical about a \n character. It's just a character. It is up to the thing rendering it how it is going to treat that character. I would also suppose that's what the xxx, yyy parameters are for - to tell it where to place the text. Looks like you need two separate drawString calls.

Similar Messages

  • First time dealing with Greenshift/Gamma problem in Quicktime/Safari

    I've been editing video on a Mac and in Final Cut Pro since version 2  (I am transitioning to Adobe Premiere Pro so don't judge )and this is the first time I've had a huge problem with a shift in color from what I see on the canvas to what is exported - and the first time I've noticed that that problem/shift only happens when the footage is viewed in an Apple program (Quicktime or Safari when uploaded to Vimeo). Opening the footage in VLC or viewing the upload on Firefox? Looks gorgeous. But on Safari or Quicktime? Colors are muted and have a greenish cast.
    In doing some research, especially on various Adobe forums, I've learned that this is a scarily widespread problem (and learned the term 'QuiRktime') so I'm suprised I haven't had this problem before - it may be due to the lovely taupe/grey outfits, skin tones, etc that I got to shoot.
    The footage is for website/computer usage so looking at it on my monitor should be a good indicator. And I've had others look at the Vimeo upload and some have commented on the green cast (so are probably Mac people too...).
    So I'm not sure what to do - how best to give it to the client.
    Workflow: footage is ProRes HQ, shot in 1080, shrunk to 720 to make 'artificial second cam close-up' (don't ask...). Edited in Final Cut Pro, but I've been going back and forth with it in Adobe Premiere Pro to try and tweak the picture color and contrast, as I've been liking the filters in Premiere better than FCP lately, but had some pre-built items I needed to use in FCP as I haven't gotten around to re-building replacements in After Effects.
    I've exported it as ProRes and used Adobe Media Encoder to compress (been using both the Vimeo 720 preset - and tried upping the bitrate, setting quality to max rendering - and the Broadcast 720 preset).
    Only time I've gotten it to look good when opening on Quicktime is when I export it as Animation versus ProRes, but the resulting file is 12X (and thus 12GB) so too large to upload or burn on disc (and compressing it for web usage from that file gives identical results to simply compressing the ProRes file in the first place or exporting directly from Premiere Pro to h.264)
    So my question is...what is the best way to export this footage to get the right color cast in Quicktime based computers and non-Quicktime using computers.
    I've uploaded a screenshot of the footage opened in Safari and Quicktime (left side) and Firefox and VLC (right side) to Flikr
    http://www.flickr.com/photos/44843717@N04/8300689101/
    Thanks for any help  you can give

    The footage is for website/computer usage so looking at it on my monitor should be a good indicator.
    It actually doesn't matter where the footage will end up.  The idea is to see the image accurately while grading, and for that you will need a calibrated, external TV.  You just can't use a normal computer monitor or software media players for this.

  • HT1926 I was prompted to install iTunes 11.1.4 this morning. It failed (first time EVER) with the comment that 'msvcr80.dll' was not available. Upon searching for that .dll in my computer, I found it to be all over the place! Thoughts?

    I've NEVER had a version update fail. I did go to 'Tools' and download for a manual install of this update as the info screen suggested. It, too, failed. After searching for the 'missing' msvcr80.dll on my computer, I found it all over the place!
    Ran a malware & virus scan with nothing evil popping up.
    Tried going back to a restore point before a previous update and doing the install. It failed.
    OS: Vista Home Premium x64, SP2 (and current with all MS updates)
    Now I'm pretty nervous re: syncing with ANYTHING-especially my iPod that has all my music I teach from at work.

    Solving the iTunes Installation Problems in Windows
    1. Apple has posted their solution here: iTunes 11.1.4 for Windows- Unable to install or open - MSVCR80 issue.
    2. If the Apple article does not fully resolve the problem for you, then try Troubleshooting issues with iTunes for Windows updates - MSVCR80.

  • I have lost the remote that was paired. I bought another remote, but the procedure to pair the new one does not work. I suspect the the AT will work with only one remote at-a-time and i have to unpaid the first before pairing the second. How do I unpair?

    I have lost the remote that was paired. I bought another remote, but the procedure to pair the new one does not work. I suspect the the AT will work with only one remote at-a-time and i have to unpair the first before pairing the second. If this is true, how do I unpair? If not, what can I do?

    I was premature in posting the question. I found the answer in andother posting, and it was successful.
    Thanks, and sorry for the false alarm.

  • How do I sync my new ipad mini with my old ipad 2, without losing any apps or data in notes?  I need step by step instructions for first-time sync with ipad mini.  Thanks.

    How do I sync my new ipad mini with my old ipad 2, without losing any apps or data in notes?  I need step by step instructions for first-time sync with ipad mini.  Thanks.

    If you synced it many times, you have to have a backup. It's just a question of how old that backup is now. When did you last sync?
    First of all launch iTunes on your computer and go to Edit>Preferences>Devices. Do you see any backups for you iPad in that window? If so, how new is the newest backup? That will be the backup that you will want to use. But remember that if you use that backup and it is one month old, you can only restore from that date back in time. Anything that you did on the iPad in the past month will not be in that backup.
    Turn on the new iPad Minin and start activating OTA via WiFi. You will get to a certain point in the process where you will be given the choice to Set up as new, Restore from iCloud - or Restore from iTunes. You will want to select Restore from iTunes.
    That is the short and sweet version. There are step by step instructions in this article. This applies to the mini as well as the iPad 4 or the iPad 3 for that matter.
    http://www.everythingicafe.com/how-to-set-up-new-ipad/2012/03/16/

  • Hi First time Posting.  I can't find Preferences.  It is not listed in Finder.  Please make it simple, thanks, Carol

    Hi, My first time posting.  Have been going in circles and need some help.  Started with not being able to find my memory stick, didn't show up on desktop.  Think I found a way in but the main problem right now is I cannot find Preferences.  All posts I have checked say to go to Finder and click on Preferences, but it is not there.  Can anyone help.  Thanks

    You have to click on the word "Finder" in the menu bar. (If you do not see the word click anywhere on the desktop.) When you do that you will see a list of options. In the list, click on Preferences. Another pane will open.
    Now click General (on the top row), then select everything by clicking on all the boxes in the section "Show these items on the desktop:"
    Close this pane.

  • HT204053 Our family has several apple devices, iPad, touch, and now iMac, our original iTunes are all under a different apple id.  do we keep our own accounts even in cloud? do we all have access to each others media? (First time out with all this..)

    Our family has several apple devices, iPad, touch, and now iMac, our original iTunes are all under a different apple id.  do we keep our own accounts even in cloud? do we all have access to each others media? (First time out with all this..)

    There is no problem about using one ID for iTunes, iTunes in the Cloud and iTunes Match, and another for iCloud and its email and syncing facilities. This way you can all use the same iTunes account but have separate emails and calendars etc.

  • ODI 11g 11.1.1.7 with Win64 bit OS : Starange problem : Right click does not work for Create new data server in Topology.

    ODI 11g 11.1.1.7 with Win64 bit OS : Strange problem : Right click does not work for Create new data server in Topology.
    On right click nothing happens at all. I have  reinstall the ODI multiple times with right installer. issue persist.
    Please help.

    Hi,
    Did you use the generic installer or the win32 one ? You should use the former with Win64.
    You can also check that your version of Java is supported in the certification matrix.
    Regards,
    JeromeFr

  • I upgraded Safari in my Mac (10.6.8 Leopard) but the new version does not work with my system so that I now have not a working browser. How can I solve the problem and/or install back my previous Safari version?

    I have upgraded Safari in my Mac, but the new Safari does not work with my system. So I find myself without any working browser. How can I solve this problem and/or install my previous Safari version?

    Reinstall Safari 5.1.10 for OS X 10.6.8: http://support.apple.com/kb/dl1569. Might do the trick.
    But, frankly, I don't think that simply reinstalling the old Safari will work because of all the peripheral, under the hood changes that happen when you upgrade from one version of Safari to another. Reinstalling 5.1.10 may be insufficient to turn back the clock. (This is the moment where a Time Machine or another form of full backup would save your bacon.)
    While you're getting a copy of Safari 5.1.10, get a copy of Firefox (https://www.mozilla.org/en-US/firefox/desktop/), too, so that you have an alternate browser to use as you're sorting matters.

  • I'm having trouble syncing my Iphone to my MacBook Air.  First time I have had this problem.

    This is the first time I am having a problem syncing my IPhone with my MacBook Air.  It has always worked in the past but dates/times I have input into my phone will not transfer to my MacBook??

    My contacts are all on my iMac, but the iPhone5c won't sync w it or iCloud.  I only get a partial list.  I have no idea where the partial list is coming from.  The old iPhone had all of my contacts.

  • Just hooked up new apple tv for first time. able to connect to internet (netflix, youtube) but not able to connect to my itunes account via home sharing. apple tv tells me to make sure computer's itunes has home-sharing enabled, which it does. any advice?

    Just hooked up new apple tv for first time. able to connect to internet (netflix, youtube) but not able to connect to my itunes account via home sharing. apple tv tells me to make sure computer's itunes has home-sharing enabled, which it does. any advice?

    Have done both suggestions, still not working. Could it have somehting to do with my local network? I am using a wireless Internet provided by my apartment building so not sure if apple tv and my computer are not technically on the same "local network?"
    apple tv and main computer are connecting to Internet fine. Just cannot see my itunes on apple tv.
    any other advice? My itunes is turned on to home sharing. i entered the same apple itunes account into aple tv. but appletv keeps saying my computer's home sharing is not turned on...but it is.

  • When i open my emails with outlook first and then with my ipad 4, the ipad does not show me that i have new mail despite that it actually downloads them. iphone 3g and 4s used to do that. any suggestions please?

    when i open my emails with outlook first and then with my ipad 4, the ipad does not show me that i have new mail despite that it actually downloads them. iphone 3g and 4s used to show them as new emails. any suggestions?

    1. Open iTunes.
    2. Click the View option in the iTunes menu.
    3. Select the Show Sidebar option.
    Connect your phone, select it in the Sidebar...the various tabs will now show as before.

  • Mu sons 4(not new) wont connect when connected to pc, first time i tried it said something about mobile me not on?

    My son's iph4 (not new) won't connect when attached to pc, first time i tried it said something about mobile me not being on?

    http://support.apple.com/kb/TS1538

  • After upgraded ios6 i got problem with whatapp. "last seen" function is not working

    HI eveyone
    after upgraded ios6 i got problem with whatapp. "last seen" function is not working .. it's doest show last seen who enter the chat . is anyone have the same problem .. i even restore and reinstall to my ph but it's  not work .. if someone know how to fix it, plz tell me how to do .. thanks

    Also, when I check this post several times a day, I always see warning 'Connection is untrust'. If I close browser and reopen immediately everything is ok.

  • What if sync with new computer does not work. logical connection to old with WindowsXP, 32 bit version of iTunes. New is Windows7 with 64bit version

    What if sync with new computer does not work?
    logical connection to old with WindowsXP, 32 bit version of iTunes.
    New is Windows7 with 64bit version

    Syncing to a new iTunes library or computer will erase your iPod. Only if you back up your iPod manually before syncing, you can restore your device from that backup again. A manual backup does not include the sync process.
    Do this:
    Disable autosync in iTunes, connect your iPod to your new computer and right click on it in the device list and choose backup. iTunes will backup your iPod without syncing.
    Transfer your purchases the same way, choosing "transfer purchases" this time.
    When you connect your phone for the first time, all media content will be erased. But you can restore your settings and app data from your manual backup afterwards.
    Don't forget to set up at least one contact and event on your new computer to be able to merge calendars and contacts when you sync the iPod for the first time.
    Music is one way only, from the computer to your device, unless you bought the songs in iTunes and transferred your purchases.
    There is 3rd party software out there, but not supported by Apple, see this thread: http://discussions.apple.com/thread.jspa?threadID=2013615&tstart=0
    About backups and what's saved: http://support.apple.com/kb/HT4946
    How to back up and restore:http://support.apple.com/kb/HT1414
    How to download apps for free again:http://support.apple.com/kb/HT2519
    Saving other data is also described here. How to back up your data and set up as a new device
    If your iPod can't be recognized by Windows, try these tips: iOS: Device not recognized in iTunes for Windows

Maybe you are looking for

  • My White Macbook is stuck at the loading screen, and disk utility, safe mode doesn't work either. What should I do?

    I went on vacation a few days ago and in El Salvador, they have this mobile broadband sticks. Well, I was using one until it gave me a network error. After that, it shut down my computer entirely. The first time it happened, I didn't think much of it

  • Using accented characters in text

    I'm trying to create a document using text for the Czech republic. I only need "dead" text to be in the Czech language, so am using text objects. Every time I try to paste the Czech words in (via notepad to clear any background Java), LiveCycle crash

  • Can someone help me install lightroom 5

    This is my first lightroom and I bought lightroom 5. I don't have the version 4 or 3. When I try to install is asking the serial number that I have, and also the original serial number. I don't have any. please help me

  • Bacpac import from Windows Azure into sql server 2012 fails

    Very sorry if this is posted in the wrong froum I was not sure where to post I am trying to verify a bacpac file  I downloaded from my windows azure sql  instance and I am getting this error when trying to Import into SQl server express 2012. SQL ser

  • Common query method

    Hi, I need to query an oracle database using bind variables. To do so, I have a method to execute any query, that would receive the query in a "SELECT fieldFROM table WHERE id = :param1" fashion, and a list of the params for the binded variables in t