How do you do a newline

when i append some text then a new line to my buffer
so i am doing
buffer.append(" some text \n");
is this the correct way?

when i append some text then a new line to my bufferIt depends on the context of what you are doing.
If you are adding text to a Document then you only need to use "\n" since the Document only stores a single newline character. When you use document.getText() or use the textComponent.write(..) methods then the new line character is converted to the new line String. When you start with an empty Document then I believe the new line String is simple "\n". If you use the read method to load a Document then the Document remembers the new line String of the file read.
If you are building a StringBuffer and appending text then you need to add the appropriate new line String yourself.

Similar Messages

  • How do you find the number of lines in a file?

    I need to count how many lines there are in a file, I am using a BufferedReader to read in the data, but how can I find the number of lines?
    Thanks

    That depends. How do you define a line? Is it a specific number of
    characters, a String that's terminated by a newline character or some
    combination thereof?

  • How do you invoke Edge Web Fonts?

    Assuming this is available in this release, how to you bring up the Edge Web Fonts capability?

    Hi Phil,
    You should be able to trigger the code hints manually anywhere in the font-family value by pressing Ctrl+Space.  It should also pop up automatically if you type "," followed by a space anywhere in the value.  Are those approaches not working for your code?  (If so, please post a snippet of your CSS here so we can investigate).
    - Peter

  • How do you use edge web font in Edge Reflow?

    By default, I don't have a lot of fonts. It's just viewing a few of them.
    How can you get the web font for Edge Reflow? Can you use font from fontbook?
    Is there a way to download Edge Web Font?

    Above: using Brandon Grotesque (web use font) does not display the correct font.
    I'm using Typekit and have an internet connection. If I switch to a "desktop use" font, it shows up, so I'm guessing the "web use" only fonts won't show in Reflow. A little frustrating when you're trying to get an accurate preview/determine best font styling because of the back-and-forth workflow.
    Above: using Source Sans Pro (desktop use font) does display the correct font.

  • Itunes match  how do you to select multiple songs or do you click each one

    In ITunes match  how do you to select multiple songs to download to pc or do you have to click each one.

    First make sure you have the current version of iTunes, which is actually 10.5.1.  I had to manually download it from apples website, for some reason, it wouldnt auto-update.
    http://www.apple.com/itunes/download/
    Once that is complete, go to the iTunes store. In the Quick Links secion to the right, you should see iTunes Match. This will prompt you to activate your subscription to iTunes match.  After that it should ask you to add your computer and once youve done that, it should begin the process of scanning your library and adding it to the cloud
    Alternatively, once you activate your subscription, you can also go to the Store dropdown menu in iTunes and select Turn On iTunes Match.

  • How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    unless i'm missing something, i think you got mixed up, this is easy google for walk throughs
    i'm assuming this is the new 3tb tc AC or 'tower' shape, if so, its wifi will run circles around your at&t device
    unplug the at&t box for a minute and plug it back in
    factory reset your tc - unplug it, hold down reset and keep holding while you plug it back in - only release reset when amber light flashes in 10-20s
    connect the tc to your at&t box via eth in the wan port, wait 1 minute, open airport utility look in 'other wifi devices' to setup the tc
    create a new wifi network (give it a different name than your at&t one) and put the tc in bridge mode (it may do this automatically for you, but you should double check) under the 'network' tab
    login to your at&t router and disable wifi on it
    add new clients to the new wifi network, and point your Macs to the time machine for backups

  • HT1349 How do you get help from apple if you don't know where to find the serial number of my "product."  I don't know if they mean my itunes program, my iphone, my computer, which one, the number on the computer (is there one), or something in Windows or

    How are you supposed to get help from Apple if you don't know what your serial number is?  They say to input the serial number of the "product" that you are asking about.  Since my problem is how to deauthorize/authorize computers, and they are saying I have more than 5 (which I have never owned more than 5 computers in my life), I can't imagine what serial number they mean.  Does it mean your desktop computer?  If so, which one?  Do they mean your device?  LIke your iPhone, iPod or whatever?  Do they mean the software ON one of your computers and/or devices?  If so, which program, and on which computer/device?
    We have three operational computers, one does not have iTunes on it.  Since Apple is saying I have more than 5 authorized computers, and I can't imagine what they are, I am afraid to deauthorize all my computers.  See what I mean?  I just wanted to ask the question about how I can find out WHICH computers Apple thinks I have authorized, so I can decide if it's safe to deauthorize them all or not.  I only know of 2 computers that have iTunes on them, so how can there be 5?  We also have 2 iPhones and 2 iPods in this family, but one of the iPhones has his own apple id.  He may have been using mine, since his computer died.  I read that those don't count as "computers" to the 5.  Do they, then?
    Help!  I can't contact apple because I have no idea what they mean about serial number.  I doubt they would help me anyway.  In order to get the serial number off my desktop computer (that has iTunes on it already), I will have to move furniture, so I don't want to if that's not it.  Is there some way to find the serial number in the software, either on my desktop or my iPhone?

    sunshinecowgill wrote:
    We have three operational computers, one does not have iTunes on it.  Since Apple is saying I have more than 5 authorized computers, and I can't imagine what they are, I am afraid to deauthorize all my computers.  See what I mean?  I just wanted to ask the question about how I can find out WHICH computers Apple thinks I have authorized, so I can decide if it's safe to deauthorize them all or not. 
    You could have more 5 computers authorized if you ever, for example, reformatted a hard drive or replaced a hard drive without deauthorizing the computer first. Apple's system would see that as a different computer, even though you don't. There's nothing to be afraid of in deauthorizing everything and the reauthorizing what you actually have. You won't lose any data. Mistimp is correct, they can't tell you which computers are authorized.

  • How can you watch itunes purchased movies on apple tv. A click on to movies then into purchase thn a click on a movie i want to watch then my apple tv box light starts going on and off plus the screen is blank

    How can you watch itunes purchased movies on apple tv. A click on to movies then into purchase thn a click on a movie i want to watch then my apple tv box light starts going on and off plus the screen is blank

    JasonFromSK wrote:
    With the newest Airport firmware (7.6.1), it seems I should be able to do this.
    Really? I need to check that out!
    You should certainly be able to add content by reference to itunes from such a disk (even before the update) - so long as itunes knows the location of the file (set Preferences not to copy to local library when adding the media) it will stream it to AppleTV if the disk is available.
    I hope you're right, but I'd be surprised if current Extremes can be upgarded to provide a full Home Sharing service - marvellous if they can but I'd be surprised as i've long said we need an Apple media server either based on TC or AE to do this kind of thing.
    AC

  • How Do You Add Multiple CSS Rules to Text?

    Hi everyone, I have these css rules in my css styles window they are all assigned to some text in a cell on my page.
    .Def14grey4 <body>
    .def14grey4 a:link <a>
    .def14grey4 a:visited <a>
    .def14grey4 a:hover <a>
    .def14grey4 a:active <a>
    .def14grey4 a:focus <a>
    How do you add (all of) these styles to the text in the first place, I know how to add the first one (.Def14grey4), you select the text in the cell and choose the rule from the drop-down menu in the css panel, but how do you add the other ones to some text as well, so that it can have the same link properties.
    Basically I have some more text elsewhere on the page and want to assign these rules to that as well.
    thanks Gareth

    You would want to change your order as shown here -
    .Def14grey4 <body>
    .def14grey4 a:link <a>
    .def14grey4 a:visited <a>
    .def14grey4 a:hover, .def14grey4 a:focus <a>
    .def14grey4 a:active <a>
    That way, the hover and the focus states are equivalent.
    How do you add (all of) these styles to the text in the first place, I know how to add the first one
    You don't really.  The 4 bottom selectors say -
    "find an element with a class of 'def14grey4', and style any link inside that element this way"
    So, <span class="def14grey4"><a href="whatever.html">Whatever</a></span> would get the pseudo-class styles, as would any of the following -
    <span class="def14grey4"><a href="whatever.html">Whatever</a></span>
    <td class="def14grey4"><a href="whatever.html">Whatever</a></td>
    <p class="def14grey4"><a href="whatever.html">Whatever</a></p>
    <body class="def14grey4"><a href="whatever.html">Whatever</a></body>
    <div class="def14grey4"><a href="whatever.html">Whatever</a></div>
    <strong class="def14grey4"><a href="whatever.html">Whatever</a></strong>
    and so on.  These examples assume that there isn't some other more specific rule that would apply to the same links.  You need to study up on the CSS cascade and specificity....

  • How do you transfer money from one apple id to another

    How do you transfer money from one Apple ID account to another?

    hello guys i have the same problem before but i fixit already if you forget your security questions what you need to do its so aesy you just call apple 8006927753 from free magicjack app you can get it on your iPhone from App Store  just call and ask them to restore your apple id security questions .
    and the guy going to ask for your apple id address tell hem that and after that he will ask you to log in with your apple id and he will tell you to give hem pin code you can fiend it here just folw me …….
    go to this link and log in with your apple id https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    after you open the link go to ( manage your apple id ) after you click on manage your apple id  log in with your account.. and go to password and security questions there is something down on the left conner like this
    ( temporary support PIN ) click on that and you will see PIN number just tell the guy and he will restore you apple id password & security questions
    and done you have new security questions and password  you can pay what you want now ….. anything you want to ask I’m happy to help just contact me
    <Email Edited by Host>

  • How do you remove credit card from apple store ios7

    How Do You Remove Credit Card From Apple Store With IOS7

    After establishing the Credit Card account (i.e. after you have made purchases), you can remove the credit card information by editing your payment info, choosing "None".
    Settings>iTunes and App Stores>Apple ID>View Apple ID>Sign-in>Payment Information

  • How do you remove credit card # from iTunes account

    How do you remove credit card # from iTunes account without entering a new one because added money to account from gift card?

    On your computer's iTunes you should be able to edit your payment info by going into the Store > View Account menu option and logging into your account, and on your account's details page there should be a payment link.  If you are doing it on your iPhone then try tapping on your id in Settings > iTunes & App Store and select 'View Apple ID' on the popup - that should also give you a payments link on your account's page.
    Changing payment info : http://support.apple.com/kb/HT1918

  • How do you insert an electronically signed report as an appendix into a main report which will be signed electronically at a later date?

    How do you insert an electronically signed report as an appendix into a main report which will be signed electronically at a later date?

    You can add it as a file attachment. Exactly how you do this depends on the version of Acrobat you're using, but if you open the Attachments panel, you should see where you can add a file.

  • I am facing 'How do you want to use this disc' whenever I read/open any lightscribe discs having data.

    Hi,
    When I insert a lightscribe DVD/CD into a lightscribe optical drive, then when I click to open the DVD, I faced this error 'How  do you want to use this disc', although the DVD was full of data. When opening these 
    lightscribe DVD/CD via NON lightscribe optical drive, I noticed that the DVD/CD  opened well without any problems at all.
    Also, how can the System show to me 'How  do you want to use this disc' , in particular when  a DVD is non rewritable(DVD-R) and also contains data)?
    Bear in mind, not all DVDs/CDs were not detected. However, only full lightscribe discs' (having data)
    However, even blank lightscribe discs were detected without problems. When insert a lightscribe disc having data, then I faced that error. However, when inserting  blank lightscribe discs I found that the disc were opened.  Also,
    non lightscribe discs were opened well.
    When checking the device manager, I didn't see any issue with DVD/CD drive. If there were a problem unrecongnising, then I would have seen 'a remarkable mark' in front of it.
    Note: I have faced this problem after trying formating a rewritable CD inserted onto the drive. Althouthg the format failed, all data on the disc was deleted. Anyway, after that, then inserting full-lightscribe  discs are unregonised
    Do you think the problem wth my optical drive. IF so, I would be saying why it wasn't happened with all other non lightscribe discs. If my lightscrib discs were corrupted, then why would they have opened well on another laptop.
    I have done:
    Press the Windows logo key+R to open the Run dialog box.
    Type devmgmt.msc in the Run dialog box, then press Enter. If you are prompted for an administrator password or for a confirmation, type the password, or click Allow
    In Device Manager, expand DVD/CD-ROM drives, right-click the CD and DVD devices, and then clickUninstall.
    When you are prompted to confirm that you want to remove the device, click OK.
    Restart the computer.
    But the same prolbem is existing.
    yes there is a virtual CloneDrive program installed on my PC, however, there is no any CD mounted into it. Even if a CD was mounted into Virtual Clondrive, there would be no problem at all, because the virtual CloneDrive is used to only
      mount ISO disc images into it, and not physical discs.
    Any I have do what you have said, when inserting a light-scribe disc having data, then I open it, I found this
    NOTE: in the above screen shot there is a lightscribe DVD having data inserted. However, in the screen shot below, there  a ightsrbe DVD not having data inserted. In the first screen shot, the disc is not reconginsed by Windows, however, in
    the second is recognised. 
    Even when I have inserted a lightscribe disc not having data(empty), it opened well regardless of  what virutal CloneDrive is enabled or disabled.
    But when cliced on my problem didn't solve,
    A man should convert his anger and sadness into strength to continue living in this life.

    Hi,
    The product Name of my computer is: HP Pavilion dv6-6093ex Entertainment
    Notebook PC support
    The number of my computer is : LM610EA#A2N.
    Could anyone please at this splendid forum take some of their precious time
    out to really reply my questions and solve my problems?
    FIRST OF ALL:
    My HP Pavilion Laptop is about 3 years old.
    My
    sister's Dell Inspiron laptop is 3 years old.
    My HP lapotp is well-cared, as opposed to my sister's Inspiron Dell laptop,
    which is always thrown in dust without caring at all. Also, its battery is
    always inserted even when it is fully charged while the laptop is plugged in to
    the main power supply.
    However, my laptop is either used on only battery, or on plugin. Also, it is
    kept from the dust.
    But, I really found that the battery of the Dell laptop
    still lasts about three and half hours, and there is no problem cooling fan is
    not oproperly preporly.
    I only remember one thing differently done on my laptop battery which is I
    charged it fully, then I stored it without using it for about four months, then
    when I reused it, I found it got worse over time. I.e. first time of using it
    after storing,I found it empty, then I charged it again fully, however, then it
    lasted about 2 hours, then 1 and half hours, next an hour, now it is only
    lasting about 20 minutes without performance. If there is high performance, then
    the computer shuts down suddenly.
    My problem is follows:::
    First: Whenever I inserted any Containing Data OR Data
    CD/DVD-R LightScribe discs, I found that HP optical driver was
    unable to read them. When clicking on the optical disc drive
    'duble-click', then I find that disc opens as this way(NOT: With a CD/DVD player
    is grayed out)
    Blank Or Used CD, DVD±R,RW lightscirbe is unable to be
    read:(clicking on it let it Open like a USB FlashDrive or With a CD,DVD player:
    NOTE: with CD/DVD Player is grayed out)
    Used CD/DVD±R/RW Non-LightScribe disc opens normal:
    Blank CD,DVD±R,RW Non-LightScribe opens normal(Opens like a USB FlashDrive or
    With a CD,DVD)::
    My HP CD/DVD DVD±R/RW specis are::
    Optical Drives
    hp CDDVDW TS-L633R
    Media Type DVD Writer
    Name hp
    CDDVDW TS-L633R
    Availability Running/Full Power
    Capabilities Random
    Access, Supports Writing, Supports Removable Media
    Read capabilities CD-R,
    CD-RW, CD-ROM, DVD-RAM, DVD-ROM, DVD-R, DVD-RW, DVD+R, DVD+RW, DVD-R DL, DVD-RW
    DL, DVD+R DL
    Write capabilities CD-R, CD-RW, DVD-RAM, DVD-R, DVD-RW, DVD+R,
    DVD+RW, DVD-R DL, DVD+R DL
    Config Manager Error Code Device is working
    properly
    Config Manager User Config FALSE
    Drive E:
    Media Loaded
    FALSE
    SCSI Bus 0
    SCSI Logical Unit 0
    SCSI Port 0
    SCSI Target Id
    1
    Status OK
    Trying to solve the problem,
    I have done these steps in order::
    I tried checking with dignostic ulitiy:
    I have tried Advanced View , this is the file of output data
    diagnostic utility
    LightScribe System Software Settings:
    SOFTWARE\LightScribe\MessageDir
    C:\Program Files (x86)\Common
    Files\LightScribe\
    SOFTWARE\LightScribe\LSPrintDialog C:\Program Files
    (x86)\Common
    Files\LightScribe\LSPrintDialog.exe
    SOFTWARE\LightScribe\LSPrintingDialog
    C:\Program Files (x86)\Common
    Files\LightScribe\LSPrintingDialog.exe
    SOFTWARE\LightScribe\LsPrintLauncher
    C:\Program Files (x86)\Common
    Files\LightScribe\LSPrintLauncher.dll
    SOFTWARE\LightScribe\ResourceDir
    C:\Program Files (x86)\Common
    Files\LightScribe\res
    SOFTWARE\LightScribe\LSPrintAPI C:\Program Files
    (x86)\Common
    Files\LightScribe\LSPrintAPI.dll
    SOFTWARE\LightScribe\Update\UpdateShellCommand
    http://www.lightscribe.com/go/downloads/windows
    SOFTWARE\LightScribe\Update\PreviousVersion
    1.18.20.1
    SOFTWARE\LightScribe\Update\CurrentVersion
    1.18.27.10
    SOFTWARE\LightScribe\Update\TrailingVersion
    SYSTEM\CurrentControlSet\Services\LightScribeService\Type
    16
    SYSTEM\CurrentControlSet\Services\LightScribeService\Start
    2
    SYSTEM\CurrentControlSet\Services\LightScribeService\ErrorControl
    0
    SYSTEM\CurrentControlSet\Services\LightScribeService\
    SYSTEM\CurrentControlSet\Services\LightScribeService\DisplayName
    LightScribeService Direct Disc Labeling
    Service
    SYSTEM\CurrentControlSet\Services\LightScribeService\ObjectName
    LocalSystem
    SYSTEM\CurrentControlSet\Services\LightScribeService\Description
    Used by the LightScribe software components to support 3rd party disc labeling
    applications using the LightScribe COM Application Programming Interface
    (LSCAPI). This service needs to run for LightScribe direct disc labeling to
    work.
    SYSTEM\CurrentControlSet\Services\Eventlog\Application\LightScribeService\
    SYSTEM\CurrentControlSet\Services\Eventlog\Application\LightScribeService\
    SYSTEM\CurrentControlSet\Services\Eventlog\Application\LightScribeService\TypesSupported
    7
    SYSTEM\CurrentControlSet\Services\Cdrom\Enum\0
    IDE\CdRomhp_CDDVDW_TS-L633R______________________0300____\4&334f7860&0&0.1.0
    SYSTEM\CurrentControlSet\Services\Cdrom\Enum\Count
    2
    SYSTEM\CurrentControlSet\Services\Cdrom\Enum\NextInstance
    2
    SYSTEM\CurrentControlSet\Services\Cdrom\Enum\1
    SCSI\CdRom&Ven_ELBY&Prod_CLONEDRIVE&Rev_1.4\1&2afd7d61&0&000000
    SOFTWARE\Microsoft\Windows
    NT\CurrentVersion\Winlogon\allocatecdroms
    0
    SYSTEM\CurrentControlSet\Services\CDRom\autorun 1
    SOFTWARE\INTEL\Intel
    Application Accelerator Not detected
    Drives and Media:
    Drive 0 : hp CDDVDW TS-L633R 0300 219 (E, Media
    Imaging Parameter : 114
    I tried running the below command line to fix potential disk issue 'Chkdsk
    /r /f'
    I cleaned the drive, discs, and so on.
    I have uninstalled the all third-party data recording software.
    I have uninstalled the Cyber DVD suite, lightscribe system software which
    came pre-installed with my HP pavilion Notebook.
    I have recovered my system from the Factory Recovery discs.
    I have tried opening all those LightScibe discs not opening on my HP optical
    drive, on a Dell optical drive, and all of them were opened well, although Dell
    optical drive did not have a lightscribe feature at all., nor third party disc
    recording software
    However, the problem is still with opening the discs LIGHT-SCRIBE
    Thus, my questions are:
    How to determine if the drive is corrupted and needs to be replaced with
    another one.
    I think there something needed to be done on the BIOS Of my HP
    laptop[[[A similar problems happened on my Desktop computer's optical
    drive which is as follows:::(ALL discs are opened as empty by Optical Drive of
    My Desktop Computer) ---while my optical drive of my desktop was connected to
    the primary slave IDE, and the HDD was connected to the
    primary master IDE, the optical drive and hard disk are functioning
    well. However, I remember that while burning an image with Nero essential V: 5,
    something went wrong, and then the Optical Drive of My Desktop Computer
    (HL-DT-ST DVD-RAM GH22NP20) became NOT recognised/Installed on
    BIOS, although it was still shown on the device manager as a
    recognised device. Also, it was listed on my computer, however, when entering a
    disc(blank or with data) into the drive, I found it was not recognised, and it
    opened empty(no files at it), although it contains data. Thus, I decided to boot
    to BIOS, and clicked on 'Autodetection for IDE', then I found that only HDD was
    still shown as installed on BIOS. However, the optical drive was not. Th I tried
    clicking on it on BIOS and then clicking on 'enter' to try to let the device be
    re-recognized. However, that made no difference. I had to take part my computer
    ,and then reconnected the optical drive onto the secondary slave
    IDE , and let HDD connected to the same primary master IDE.
    Then, I found that the problem solved and all discs became being read
    normally. Aslo, optical drive became installed on BIOS]]]
    What is meant with with double Layer Support.
    How much does it cost?
    A man should convert his anger and sadness into strength to continue living in this life.

  • How do you use Time Machine with more then one mac

    I just bought a new external hard drive and want to back up my iMac & MacBook Pro using Time Machine. But I do not want to use my airport network.
    I will keep the hard drive connected to the iMac, but want to, as needed, plug my MacBook Pro into the Hard drive to back up.
    Is this possible? Do I have first partition the new backup hard drive?
    Any help is appreciated... Jim

    Ok... I am back again.
    I decided to plug my backup drive into the USB port on the Airport extreme.
    On my Macbook Pro, which I connect wirelessly, I was able to start Time Machine... Time Machine saw the backup drive and did a backup.. Yes it took a long time Anyway all is cool with that.
    My iMac is connected to the Airport Extreme by Ethernet. On the iMac when I started Time Machine, it does not see the backup hard drive. I can see and share the hard drive... works fine. But no luck with TM seeing the hard drive on the iMac.
    Questions is will Time Machine work with a computer that is connected to airport extreme by ethernet. If yes how o you set it up and what might be wrong??
    I might mention that the reason I have the iMac connected with an ethernet cable and not wirelessly is because the iMac does not stay connected well to the internet and when it is connected has a very slow connection. My MacBook Pro is all the way across the house and has a great connection.
    I have guessed the slow connection was because the Airport Extreme sits right next to the iMac and maybe there is some kind of interference.
    Thanks.... any help is appreciated.

Maybe you are looking for

  • How do I default a multi-select to have all values selected

    Hi all, I have a report (standard, not interactive - for various reasons) and I have a number of 'search' fields that the use can use to fulter the results shown. One of these fields is a multi-select list which allows the users to select multiple va

  • Form design Adobe Livecycle Designer ES 8.1

    Hi, I have created a Form in Adobe Livecycle Designer ES 8.1. The form contains 6 pages.I want to display the particular page by clicking the button. I have designed those buttons in MasterPage like header. I am able to display the particular page. O

  • Somyac Font Zoomer ruined my font size??

    I have a nokia n8 with anna. I recently installed font zoomer 3.20 full version. From there i notice a bug (wheneven in the photo gallery the options/exit buttons are in black instead of white making them impossible to see on a black background) so i

  • Logic Pro 9.1.1 AU third-party plug-ins ongoing issue for many

    Where is the Logic development team on this? Nearly all third-party AU plug-ins produce random pops and clicks at the beginning of playback and on occasion randomly during playback but before audio regions in tracks with these plug-ins installed. The

  • Streaming problems

    I've had my iPad mini since Christmas and have had no issues until yesterday. I am having issues with slow, lagging streaming on sites such as YouTube and Netflix. I've already reset it and cleared all my apps. I think it's a problem with safari. How