How can i turn a part of a text of  a JTextArea into bold??

how can i turn a part of a text of a JTextArea into bold?? I mean i just want the selected text to do so and not all of the content of the JTextArea.
Is there a way to do so??
If not, is there another component that i can use to do so??
[Rik]

Use a JTextPane. Here's an example to get you started:
http://forum.java.sun.com/thread.jsp?forum=57&thread=342068

Similar Messages

  • How can I turn a form that is open on my browser into a PDF doc if I cannot save it onto my computer

    How can I turn a form that is on my Safari browser into a PDF if I cannot save the form onto my computer?

    Acrobat XI Pro has a "create PDF from a web page" feature. If you have Acrobat XI Pro installed perhaps you can "capture" the web form as a PDF. If so then this PDF can (of course) be saved to the local machine's HDD.
    Be well...

  • How can I turn on "speak" on highlighted text on iPhone 3GS?

    How can I add "speak" option to highlighted text on iPhone 3GS?

    AustinReyes wrote:
    I just need to locate my iPhone but my location services are off, is there any way to turn them on from another device?
    Sorry... No.
    Lost or Stolen iOS device  >  http://support.apple.com/kb/HT5668

  • HT1807 How can I turn off everything, data, roaming, text messages, and phone calls, without shutting off my Wifi aswell?

    I am travelling and I would still like to get Wifi on my phone but i have no set up plan for anything else so I do not want the charges. Is there a way to turn everything off except for my connection to different Wifis?

    turn airplane mode on and then turn wifi back on with airplane mode on

  • How can I stop my iPhone 4's text notification from screaming into my ear on a phone conversation?

    When I'm on the phone and a text comes across, the notification screams into my ear at full volume.  It's super annoying.  There's got to be a way to lower the volume.  I don't mind being notified - in fact, I prefer it, but my ears are taking a beating if I have the audacity to have more than one friend.
    Is this a job for the feedback people here at Apple, or there a goaround?
    Thanks!
    Tyler

    Here's an interesting bit: iTunes will let me restore my iPod touch from backup: it's still running iOS 4.3.3. I figured as much... there's backups showing in the Preferences -> Devices list for both devices (and even my old, long gone iPod touch 2G), but my iPhone (on iOS5) isn't giving me any such option. I remember I had to downgrade before to get the backup restored (something went haywire in the setup assistant, and I couldn't restore a backup from iTunes there)... If it was possible to go to iOS 5.0 rather than 5.0.1 I would just do the same thing again, but iOS 5.0.1 isn't an option. I attached a screenshot. Hopefully Apple can get this nonsense sorted out; I think iOS 5 might be the root of this, somehow.

  • I forget the pass of my MacBook. How can I turn on my computer?

    I forget the pass of my MacBook. How can I turn on my computer?

    Put your install DVD into the optical drive (CD/DVD drive) and reboot. Be sure to either use the disc that came with your Mac, or, if you installed a later Mac OS X version from disc, use the newer disc. As soon as you hear the boot chime, hold down the "c" key on your keyboard (or the Option Key until the Install Disk shows up) until the apple shows up. That will force your MacBook to boot from the install DVD in the optical drive.
    When it does start up, you'll see a panel asking you to choose your language. Choose your language and press the Return key on your keyboard once. It will then present you with an Installation window. Completely ignore this window and click on Utilities in the top menu and scroll down to Reset Password. After resetting the password use Startup Disk from the same menu to choose your hard drive for startup and restart.

  • HT1657 How can I turn off the scrolling movie ads in itunes store?

    How can I turn off the scrolling movie ads across the top of the screen when I open the itunes store and am in the movies section?

    Thanks varjak paw.
    I was afraid this was the case.  To the degree that Apple marches down this well-travelled road towards making money by trying to pound customers into submission with flashing ads, etc. that actually serve only to aggravate and drive away at least people like me (28 year user of macs) from both Apple and whatever is being advertised, and indeed get in the way of my being able to efficiently do what is my part of what I always thought was the core of the synergism between Apple and its customers -- them innovating to provide the best tools to help us to be creative and productive, then the company will find itself sharing that space with myriad other companies so bankrupt for ideas and innovation that they have no other possible strategy that to promote mindless consumerism.  That does not seem a place of strength for Apple and a complete forfeiting of its unique position.  Sad to watch.

  • How can I turn off the home screen preview of SMS/text messages on 3GS

    How can I turn off the home screen preview of SMS/text messages on my new Iphone 3GS ?

    Go to Settings>Messages and choose "No" under "Show Preview" which will hide the text part of the SMS/text message but still will pop up on who its from and just says "text message" on it.
    Other than this there is not a complete way to disable the notification.

  • HT1657 How can I turn closed captioning off?

    How can I turn off the closed captioning while playing a rented movie on my Apple TV

    Thanks varjak paw.
    I was afraid this was the case.  To the degree that Apple marches down this well-travelled road towards making money by trying to pound customers into submission with flashing ads, etc. that actually serve only to aggravate and drive away at least people like me (28 year user of macs) from both Apple and whatever is being advertised, and indeed get in the way of my being able to efficiently do what is my part of what I always thought was the core of the synergism between Apple and its customers -- them innovating to provide the best tools to help us to be creative and productive, then the company will find itself sharing that space with myriad other companies so bankrupt for ideas and innovation that they have no other possible strategy that to promote mindless consumerism.  That does not seem a place of strength for Apple and a complete forfeiting of its unique position.  Sad to watch.

  • How can I turn off my computer when I push de STOP button from de program?

    How can I turn off my computer when I push de STOP button from de program?

    You might also want to have a look at the old winutil>Windows API Function Utilities (32-bit) for LabVIEW. While they are written in LabVIEW 4.0 (!), they still seem to work fine under W2000 and LabVIEW 7.0. In particular, have a look at "exit windows.vi" inside "winevent.llb" of the above link. It calls the function "ExitWindowsEx" of user32.dll. Since this is part of the OS, you don't need to include extra DLLs.
    (All the above assumes Windows OS. I don't know how to shutdown the OS on e.g. MAC or linux.)
    LabVIEW Champion . Do more with less code and in less time .

  • How can I turn off the Download pop up Window from displaying when downloading a file?

    How can I turn off the Download pop up Window from displaying when downloading a file?

    To not display the built-in Firefox downloads window, Tools > Options > General tab, un-check "Show the <u>D</u>ownloads window when downloading a file". See: http://support.mozilla.com/en-US/kb/Options+window+-+General+panel
    If you have some other download manager installed, you will need to see the documentation for the download manager.
    <br />
    You have installed plugins with known security issues that should be updated. To see the plugins submitted as part of your question post, click "More system details..." to the right of you original question.
    *Shockwave Flash 10.1 r53
    *Next Generation Java Plug-in 1.6.0_18 for Mozilla browsers
    #'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Shockwave Flash'''
    #*Use Firefox to Download and SAVE to your hard drive from one of the links below; '''<u>the links take you directly to the download and you avoid the "getplus" download manager and "extras" (i.e., toolbars, virus scan links, etc.) on the main Adobe page.</u>'''
    #*SAVE to your Desktop so you can find it
    #*After download completes, close Firefox
    #*Click on the file you just downloaded and install
    #**Note: Vista and Win7 users may need to right-click the installer downloaded and choose "Run as Administrator"
    #**Note: Most browsers other than IE will also get updated with this one download
    #**Note: To update IE, same procedure '''<u>but use IE</u>''' to go: http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_ax.exe
    #*After installation, restart Firefox and check your version again.
    #*'''<u>Download links and other information</u>''':
    #** https://support.mozilla.com/en-US/kb/Managing+the+Flash+plugin#Updating_Flash
    #** '''<u>or</u>''' you can download, save, then run the manual installers for IE, then for Firefox (and all other browsers) from here: http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    #* Also see: http://support.mozilla.com/en-US/kb/Installing+the+Flash+plugin
    #* Also see (if needed): http://kb2.adobe.com/cps/191/tn_19166.html#main_Uninstall
    #'''Update Java:'''
    #* Download and update instructions: https://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions
    #* After the installation, start Firefox and check your version again.

  • How can I turn my French apple account into Australian one to be able to buy a Iphoto book I've made?

    hi
    How can I turn my french apple account into an Australian one , to be able to buy a Iphoto book I 've created ?

    And you need to set the "Print Products Store" in the iPhoto Preferences "Advanced" to the country you are in. The credit card you will be using with your AppleID needs to be valid in the country your AppleID is registered to. Will you be staying permanently in Australia? Maybe it wuld be simpler to create a second AppleID just for the time of your stay there.

  • When i ask a question on ebay and send, when i try to back tab it keeps insisting on resend how can i turn this off?

    you search items on ebay,ask a question of the seller and send it, i then want to return to my listing and the searched items, but firefox will only let me do this if i resend my question every time, it means all the messages i send asking a question are duplicated, how can i turn this annoying protocol off?

    Feedback? Did any of this help?

  • My adobe illustrator is in a foreign language. how can i turn it into english?

    my adobe illustrator is in a foreign language. how can i turn it into english?

    First please remember this is a public forum.  If you are going to respond to the thread via e-mail please remove your signature prior to responding.
    To resolve your difficulties you will need to go to the Language & Text preference pane.  Once there click on Edit List and remove all languages besides English.  You will then likely need to remove and reinstall the trial as the language setting I believe is set during the installation process.

  • How can I turn off the WLS 6.1 security in order to develop my own application-based security module?

    Dear Colleagues,
    I am currently developing a J2EE application using WLS 6.1.
    My team and I have to implement a security requirement to suit our company's needs.
    The security requirements are that, users' password need to be aged (30 days maximum) and we need to provided a GUI front-end (JSP) to allow users to change their password when these expire after 30 days.
    Our internal contacts in the company, have already taken the lead to find out about whether we will be able to use the WLS 6.1 platform to do this and the answer we got back, was.
    Now we need to develop our own security module.
    I have 2 questions:
    1. How can we turn off the WLS security in order develop our own application-based security module?
    2. How can we develop a security module that allows us to age users' password and provide them with facilities to change their passwords when these expire?
    At the moment, we are using the default BEA WebLogic login.jsp page and there some configuration in the web.xml for this. I will be grateful if you could advise me on how to turn this default security off so that we can write our own security module.

    hi,
    1.You can write your own realm in 61 which can plugged for your security
    calls.
    2. once you write your ownrealm.. you can access it through weblogic
    api/ur api..
    thanks
    kiran
    "Richard Koudry" <[email protected]> wrote in message
    news:3dd0d081$[email protected]..
    Dear Colleagues,
    I am currently developing a J2EE application using WLS 6.1.
    My team and I have to implement a security requirement to suit ourcompany's needs.
    >
    The security requirements are that, users' password need to be aged (30days maximum) and we need to provided a GUI front-end (JSP) to allow users
    to change their password when these expire after 30 days.
    >
    Our internal contacts in the company, have already taken the lead to findout about whether we will be able to use the WLS 6.1 platform to do this and
    the answer we got back, was.
    >
    Now we need to develop our own security module.
    I have 2 questions:
    1. How can we turn off the WLS security in order develop our ownapplication-based security module?
    >
    2. How can we develop a security module that allows us to age users'password and provide them with facilities to change their passwords when
    these expire?
    >
    At the moment, we are using the default BEA WebLogic login.jsp page andthere some configuration in the web.xml for this. I will be grateful if you
    could advise me on how to turn this default security off so that we can
    write our own security module.

Maybe you are looking for