Just double checking fonts with JTextArea

Hi
just want to double check something regarding JTextArea --- .
I would like to programmatically enter text in the JTextArea display using different colored font.
I was programmatically adding lines to the textarea using mytextarea.append(); and i noticed that the whole textarea content just flickered through all the different setFont calls .
So I'm guessing the only solution is to programmatically determine the next insertion point and use the insert method to only set that piece of text -- is that the solution you guys came up with in that situation/
stev

Hi,
the problem with it is, you do not read manuals. JTextArea is not for multi-fonts and multi-color text - is it for plain text, in one size, one font and one color. Use JTextPane with a DefaultStyledDocument in it. And please, do not ask, how to use it, before you have read the manual information for these classes.
greetings Marsian

Similar Messages

  • Just double-checking - a question re. right configuration

    Hi all,
    I would like to ask the experts whether my following network setup is configured correctly (or ideally for that matter).
    We have a flat with a lot of walls between the rooms, so one router is not enough to ensure wifi reception in every room. Thus my current setup is:
    a)
    In one room:
    Internet -> TC (configured using dual wifi networks with different names / 2,4 + 5Ghz) -> + additional connection via LAN Port to Powerline Adaptor / wall socket
    b)
    second room:
    Wall socket / Powerline Adaptor -> Airport Extreme via WAN Port (The AE is in Bridged Mode, the wifi networks are configured exactly the same way/same names as in room #1, but however using different channels than in room #1).
    My questions:
    1) Does this setup reflect an ideal setup in a flat that is so large / with a lot of walls that I need a second router to ensure wifi reception everywhere?
    2) If yes,
         2a)     Using the WAN port instead of the LAN ports on the bridged AE is correct? Or doesn't it make a difference if I use LAN or WAN on the bridged AE?
         2b)     Using the same wifi network name in both rooms (but on different channels) makes sense, right? I figured my end-devices will always choose the                      better router (either TC or AE) depending on where I move about in my flat...
    Thanks a lot

    1) Does this setup reflect an ideal setup in a flat that is so large / with a lot of walls that I need a second router to ensure wifi reception everywhere?
    An ideal setup would use Ethernet cabling between the routers. Powerline Adaptors have a good deal more signal and speed loss....and can be "iffy" as far as reliabiliy.  After all, you are sending an Ethernet signal over the electrical wiring in your home.
    Powerline can work OK in some homes,but not others. You just have to try it out to see how it works in your home. Ethernet cabling always works, and there is no signal loss in a wire.
    2a)     Using the WAN port instead of the LAN ports on the bridged AE is correct? Or doesn't it make a difference if I use LAN or WAN on the bridged AE?
    When you have an AirPort in Bridge Mode, it makes no difference whether you use the WAN or LAN port(s), since they all behave as LAN ports in Bridge Mode.
    2b)     Using the same wifi network name in both rooms (but on different channels) makes sense, right? I figured my end-devices will always choose the                      better router (either TC or AE) depending on where I move about in my flat...
    Same Wi-Fi nework name, same wireless security, and same password on channels that are separated at least 4-5 settings on the 2.4 GHz band and another channel on the 5 GHz band.
    Most laptops will automatically switch to the AirPort providing the strongest signal as you "walk" them around the house.  But, do not expect iPhones, iPads, etc to do this, as their operating systems are not as sophisticated.
    If you want an iPhone or iPad to pick up the "other" AirPort when you move it around, you usually need to turn off the Wi-Fi on the iPhone, move it, and then turn it back on again. Hopefully, it will pick up the signal from the closer AirPort router.

  • Just double checking...

    Regarding the GeForce 4 4200 ti "VTD"...no video in?  I would really like to know if this information from a previous thread is true....
    I've been there, been stupid (see previous reply). Except in my case it took the third MSI Tech Support guy to sort it out. To my knowledge the G4Ti4200 actually ends in "TD" not "VTD". "VTD" is only available on the 4400 and 4600 models. The "T" stands for TV out and the "D" stands for digital video out (flat screens) the "V" stands for video in or video capture. The 4200 doesn't have video capture ugh!!!!
    My retail box says VIVO.
    I am getting very frustrated.  MCI reports that no video formats can be recorded.

    I think this is a probelm with the labelling of the box rather than anything else.  My FX5200 has a nice white label on it. It reads:
    FX5200-TDR128 (602-8907-01S)
    FX5200, 128M DDR, DVI-I, 9pin-VIVO with 9-SCR S-S cable, DVI-VGA adaptor, remote controller
    This unit is not a video-in version and is shipped with the two port adaptor with IR receiver.  Misleading, I agree, and my supplier wrongly had it listed as a video-in version until I pointed it out....
    Looking on the board (in conjunction with the manual) the chip layout shows where the video capture chip should be and there is a nice big space on the card as illustrated in the difference between the diagrams of the TD and the VTD versions.  If your card is not a V-blabla card it doesn't have the ability to capture video simple as that.  If you have been supplied this card on the basis that it does, then send it back to your supplier screaming "Trade Descriptions act" (UK Law) or whatever your local consumer law covers.
    As for MSI - clean up the labels so that it says clearly what is included.  Oh that and the fact that the FX5200 is NOT a "Power and Performance" card.

  • Hard Drive question...just double checking.

    Will this drive work in my G4 AGP?
    http://www.newegg.com/Product/Product.aspx?Item=N82E16822148236
    It seems like OWC doesn't carry the smaller drives any longer.
    Thanks in advance.

    Hi-
    It will work, but the 7200.10 drives suffer from slow read speeds in Macs.
    This can greatly effect performance (negatively).
    I would buy this one:
    http://www.newegg.com/Product/Product.aspx?Item=N82E16822136457

  • I have just bought four songs from iTunes store using my iMac. I can play the music on my iMac and throughout my Apple TV. However after several restarts and double checks I can't get the four tunes to sync with either my iPhone or my iPad.

    I have just bought four songs from iTunes store using my iMac. I can play the music on my iMac and throughout my Apple TV. However after several restarts and double checks I can't get the four tunes to sync with either my iPhone or my iPad. All the software is up to date.

    do you use the same Apple ID on your iMac, your iPhone and iPad? This is a requirement.

  • I just got a notification that the phone of somebody I don't want on my imessage account, has been added to my account. how do i double check that they are indeed on my account, and then remove them?

    I just got a message on my computer and my phone that an ex girlfriend of mine's phone was just added to my imessage account. For obvious reasons, I'm not okay with that. I just messaged her on facebook and double checked if the name of the phone sent to me is the label of her phone, and it was. She then sent me a screen shot of her phone's imessage settings page though saying that its only connected to her account. I dont believe that she is lying to to me, but I dont believe my computer is either. Is there a way I can double check what devices are linked to my accccount and remove one if need be?

    Hi Connor,
    The only "accounts" on iMessage are the accounts you have set up. Open iMessage, from the top toolbar click on Messages>Preferences>Accounts
    There you will see what accounts are set up on your iMessage app. If your ex-girlfriend is still set up in your Contacts, you may want to remove her from there.
    Cheers,
    GB

  • I did a backup from all my files saved in old external hd to time capsule. After that double checked and recover one file from TC to mac air and it worked just perfect. Today went through TC to recover another file and none of them were there?

    I did a backup from all my files saved in old external hd to time capsule. After that double checked and recover one file from TC to mac air and it worked just perfect. Today went through TC to recover another file and none of them were there?Anybody has a clue what happened?

    renatocremonese wrote:
    I want to use it for backing up my Mac.
    It's good for that . . . 
    But also I don't keep all my stuff in my Mac.
    But not for that. 
    This older and not day-by-day usage files I want to store in the time machine.
    You can do that (see below), but how are you going to back them up?   If your only copies are on the TC, when (not if) it fails, you risk losing your only copy of the data.
    Is it possible to split TC in two partitions.
    No, but there are some workarounds, including making a fixed-size disk image on it to "reserve" some space.  See #Q3 in Using Time Machine with a Time Capsule.
    But you still won't have backups of the stuff you put there.
    You don't say what kind of Mac you have.  If it's a desktop model, just keep the external HD connected to it, and let Time Machine back it up along with your internal HD.
    However, it sounds like you may have a laptop, where that's not going to be convenient.  In that case, your best bet might be to copy the external HD to a disk image on the TC as above, then keep the HD in a safe place.
    To finish, when i enter the TC and go through the Time line how can I get a file from there and move it back to Mac hd.
    Via the "Star Wars" display, per #15 in Time Machine - Frequently Asked Questions.
    You might also want to review the Time Machine Tutorial, and perhaps browse the rest of the FAQ.

  • I just opened an "old" project in a newer version of iPhoto and the pages in the book doubled in number with the seam in the middle of each page.  Suggestions?

    I just opened an "old" project in a newer version of iPhoto and the pages in the book doubled in number with the seam in the middle of each page.  Suggestions?

    Start with 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 delete the contents the following folder:
    User/Library/Containers/com.apple.iPhoto/
    Data/Library/Caches/com.apple.iPhoto
    3 - reboot, launch iPhoto and try again.
    NOTE: For Mavericks, 10.9,  go to your Home folder and use the View ➙ Show View Options menu to bring the this window:
    where you can check the Show Library Folder checkbox.
    If that doesn't help continue with:
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - Run Option #4, Rebuild Database.
    Happy New Year

  • With Mavericks I have to hold command key down and double click to get a sub folder to open in a new window.  Can I go back to just double clicking ?

    With Mavericks I have to hold command key down and double click to get a sub folder to open in a new window.  Can I go back to just double clicking ?

    Of course. To do it, open a Finder window, go to Finder menu (on the menu bar) > Preferences > General, and untick "Open folders in tabs instead of new windows".

  • I just "upgraded" my iPhone with the new software. As a low vision person, your phone was always previously helpful. I now discover that I cannot use the phone easily. The font has been changed to a very narrow typeface and the greyscale has been altered

    I just "upgraded" my iPhone with the new software. As a low vision person, your phone was always previously helpful. I now discover that I cannot use the phone easily. The font has been changed to a very narrow typeface and the greyscale has been altered to reduce contrast. The background is now grey as well rather than white. The accessibility options permit only three choices. First, increase type size. With the the low greyscale, thin typeface, increasing type size makes it HARDER to read. There is no option for contrast enhancement. Third, the background switch options suffers from the same deficit as the white background. The third choice is to enhance brightness but without the option to change contrast, this is useless. Am I missing something? Can this be fixed? How? When? Are you planning a similar negative "update"/change to other devices?

    I am having the same problem. I have gone through every setting, set the bold font, contrast, larger font....everything I could find in any post to try and help - and between the new color scheme that makes it virtually impossible to use the pictures of my grandchildren as background (the picture colors now become the theme colors - which now match the colors of many of the "flat" icons...) I am finding the phone very difficult to use--espeically things like the calendar which has now become very hard to "see" and use. If I can't revert this thing to iOS6, I may have to get a different phone.

  • I have just bought an ipad with retina display wifi and 4g 16gb how can I check that this is what I have been supplied with please

    I have just bought an ipad with retina display wifi and 4g 16 gb - how can I check that this is what I have been supplied with

    Identifying iPad Models:
    http://support.apple.com/kb/HT5452

  • Hello, I have a problem with my iphone 4 battery, it looses 20% over the night with wifi on and without receiving any phone call or notification. It also uses 1 or 2% each time I check my iphone even if it is just to check up my messages. Is it normal?

    Hello, I have a problem with my iphone 4 battery, it looses 20% over the night with wifi on and without receiving any phone call or notification. It also uses 1 or 2% each time I check my iphone even if it is just to check up my messages. Is it normal? Please someone give me a solution

    Yes this is fairly normal. When you have wifi on the phone, it drains the battery life of the device.
    Here is an article that has some tips that you can follow so you can modify the settings on your device to extend it's battery life to the fullest.
    http://www.apple.com/batteries/iphone.html

  • I just bought macbook pro with 10.8.3 os. When i start the system, all applications automatically start up as well! How can I turn them off. I checked the user settings and no application is set tom open automatically!

    I just bought macbook pro with 10.8.3 os. When i start the system, all applications automatically start up as well! How can I turn them off. I checked the user settings and no application is set tom open automatically!

    You have 14 days to return the computer w/no questions asked.  Plus you have 90 days of FREE phone tech support on top of your standard 1 year warranty unless you also purchased AppleCare which gives you an additional 2 years of coverage plus FREE phone support.
    Strongly suggest that you take FULL advantage of the above before it runs out.  Let Apple deal w/the problems.

  • How to download and upload TROY ECF fonts with SAP for check printing

    Can anyone explain how to download and upload TROY ECF fonts with SAP.I have downloaded  ECF font from TROY wesite as TTF format. but it is not getting upload with SAP.please kindly help me on this issue..

    Hi,
    You can use the SE73 Transaction and upload your TTF files.
    Please check the link here for more details:
    http://help.sap.com/saphelp_nw70/helpdata/en/36/5b3438fd263402e10000009b38f8cf/frameset.htm
    Regards,
    Siddhesh

  • I'm TRYING to try the 30 free trial of Aperture. It downloads fine, but the promised email with serial number (needed to activate) never arrives.  I've double checked email address.  Anyone have a solution?

    I'm TRYING to try the 30 free trial of Aperture. It downloads fine, but the promised email with serial number (needed to activate) never arrives.  I've double checked email address.  Anyone have a solution?

    This has been reported numerous times in the past. It seesms that from time-to-time the response system responsible for sending the key goes away.
    Take a look at the More Like This box on the right hand side of this page. Some users have had success getting the key sent in various ways.

Maybe you are looking for

  • ITunes isn't working with my new Windows 8 x64 HP Envy laptop

    I have reviewed the forums and added the compatibility mode and it still doesn't work.  When I review the event viewer I am getting this: Log Name:      Application Source:        Application Error Date:          10/1/2013 2:05:49 PM Event ID:      1

  • How to hide a keyfigure in query(In wad)

    Hi everyone Iam new to WAD. I have an contains chart and table . In that chart graph, x is values of 3 figures.                           y axis is values of regarding x axis. y axis contains the values from 0 t0 600 x axis contains 3 keyfigures no o

  • How to set a user status (complete) when ever system status is set complete

    Experts, We have configured status profile and few user status (say open, pre-release, complete) and assigned the status profile to the item category(zxxx). The problem we have is if we have a service order that is created with the item (item categor

  • Help! Quicktime Pro

    i purchased quicktime pro about 3 months ago from Apple.com However, i recently had to clean out my hard drive and back everything up. obviously once i got my laptop back, i didn't have QuickTime Pro installed anymore. since i've already paid for it,

  • SAP ECC Migration from Physical to ESX

    Dear All, My company is moving from Physical Servers to Virtual Platform (Vmware ESX). We are using 7.2 kernel on RHEL 5.3 64 bit for SAP HCM. My plan is; 1) Shutdown all services 2) Clone Physical Server into VM using vCenter Converter 3) change all