How can i input some text in bold and other in normal font in h:messages

Hi
I have a message which comes from properties file.I need half of the text in bold and the other half in normal font.

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Test extends JFrame {
    public Test() {
     setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
     Container content = getContentPane();
     JEditorPane jep = new JEditorPane("text/html",
              "Joe: <font color=red>R u <b>There</b>?</Font><BR>"+
              "Mary: <font color=green>Keep ur shorts on...</Font>");
     content.add(new JScrollPane(jep), BorderLayout.CENTER);
     setSize(200,200);
     show();
    public static void main(String[] args) { new Test(); }
}

Similar Messages

  • How can i input Arabic text in my web application using unicode

    hello
    i am working on struts project i m working on internationalization api now as far as label and messages are concern are properly displayed through resource file s but i want to input the text throught text field in Arabic also now can any one telll me how can i achieve this i will be thankful if some one helps me .
    thanks
    Farrukh

    gimbal2 wrote:
    sabre150 wrote:
    AccadSoft wrote:
    please guys I need an answer.To get answers about using iText I use "iText In Action, 2nd edition" by the prime author of iText - Bruno Lowagie.Classic way to make money - make the API free and sell the documentation. Also an honorable way to make money IMO.I was using iText before 2004 when the first edition of the book came out ( 4 years or so after the library was first introduced) and it was hard work. PDF is a very complex document format and just using the Javadoc does not really get you anywhere. There are many 'gotchas' in iText and most of the iText tutorials cover only the very basics and pretty much none of the 'gochas'. The book starts off with very simple examples that could be constructed from the Javadoc but then it does move on to the more complex issues. Worth every penny.

  • How can I put some text on a circular shape and make it visible in a Picture?

    I work with LabVIEW 5.1.1 (FDS), the Picture Control Toolkit and IMAQ 4.1.1.
    I'd like to make some text to flow on a circular shape of given radius just like I can do with the most common graphic programs like CorelDraw!
    How can I do?

    A new overlay VI was developed to address the need to add text to an image easily.
    IMAQ Overlay Text (Functions >> Vision Utilities >> Overlay).
    - It is available in IMAQ Vision 6.0 (which requires LabVIEW 5.1 or greater).
    It will allow you to rotate text, but it currently does not support circular shapes.

  • How can i disable some text and item in the reports from printing

    i have a requirment to prepare a report for cheque printing on a formatted cheque paper..so i want the data should be printed in the paper not the whole thing..how can i do this...
    it is like this
    Name:- <coming from database>
    Address :-
    Rs :-
    in printing i need only the data not Name,Address and Rs headings..
    plz help me out??

    Hi,
    The usual method to influence whether an item should be printed or not is to adjust the function which lies underneath the item (simply return FALSE when you don't need it. You can also adjust the input and then return TRUE). I hope this will help you to solve your problem.
    Regards,
    Vincent ([email protected])

  • How can I get some text from string like AB_CD_9.9.9_Sometext

    How Can I get
    only 9.9.9 from  string "AB_CD_9.9.9_Sometext" with powershell and regular expression?
    Thank you,
    Lei

    This works.
    if('AB_CD_9.9.9_Sometext' -match '\d\.\d\.\d'){$matches[0]}else{'notfound'}
    ¯\_(ツ)_/¯

  • How can I change the text for 'Return' and 'Back' links

    Hi everybody,
    How can I change text of standard links 'Return' and 'Back' that appear at the report bottom when user drills down?
    I need to change it in Hebrew interface.
    Thanks in advance,
    Alex

    You have to Customize the viewmessages.xml file. The original file path for English Language is
    oraclebi\web\msgdb\l_en\messages\viewmessages.xml.
    and The entries for back and return are
    <WebMessage name="kmsgEVCLinkBack"><HTML>Back</HTML></WebMessage>
    <WebMessage name="kmsgEVCLinkReturn"><HTML>Return</HTML></WebMessage>
    For more details, about language cusotmization read oracle documentation, page no 197.
    http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/b31766.pdf
    - Madan

  • I have two questions. 1 how can I put attachments with my email. 2 how can I see my folders eg sent, and others I have set up on my Mac. Thanks, Arie.

    Oops, was a bit premature with the questions.
    1 Basically I want to be able to attach a picture to my email. I know I can email from my pictures but it is hard to keep track of those emails.
    2 how can I get to my folders. I know they are there when I sort my emails into folders, but say I want to get into one of the folders, eg sent. How ?
    Thanks, Arie.

    If you start in the photos app and select the photo(s) to email, then that email should go into your Sent folder on your email account, so you should be able to keep track of them from there.
    To get to your other email folders just tap your account id at the top left of your Inbox (it will be Mailboxes if you've only one account set up on the iPad) and that should take you to a list of your folders, and just tap the one that you want to go into. If you have more than one account active on the iPad you will have a Mailboxes button at the top of the list of folders that allows you to go up another level so that you can select a different account and then folder

  • How can I install Dutch language for SMS and other...

    Hello there,
    I got a Nokia 6220c bought in the UK, and now need Dutch language for SMS and other common tasks... how can I get it?
    Many thanks,
    Mariano

    You need to take the phone to a nokia care point and ask them to install it for you.
    Language packs are not available for self install.
    http://europe.nokia.com/support/repair-and-recycle/repair/care-points
    Any methods that you may read about elsewhere will void the warranty and cannot be discussed here.

  • Just got a new Macbook Air. How can I get quicktime to play wmv and other video formats?

    I just purchased a new Macbook Air. I have loaded quicktime, but it doesn't play all formats such as wmv and others. What is the best way to accomplish this?

    Download and install (or re-install even if you already had them) the latest versions, suitable for your flavor of Mac and operating system, of:
    RealPlayer SP for Mac from:
    http://www.real.com/realplayer/mac
    Flip4Mac WMV Player from  http://www.telestream.net/flip4mac-wmv/overview.htm  (Windows Media Player for the Mac is no longer supported, even by Microsoft)
    Perian from  http://perian.org/
    You should read this support page  http://perian.org/#support   in case you need to delete older codecs.  In Macintosh HD/Library/Quicktime/ delete any files relating to DivX (Perian already has them), particularly any DivX extension to Safari. However it should be noted that Perian is not an internet plugin and will not play DivX files imbedded on a website. For that you will need the DivX Player browser plugin available from  http://www.divx.com/en/software/mac
    The latest version of Adobe FlashPlayer can be obtained from here:
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFl ash
    You can check here what version of Flash player you actually have installed:
    http://kb2.adobe.com/cps/155/tn_15507.html
    You can check here:  http://www.adobe.com/products/flash/about/  to see which version you should install for your Mac and OS.
    You should first uninstall any previous version of Flash Player, using the uninstaller from here (make sure you use the correct one!):
    http://kb2.adobe.com/cps/909/cpsid_90906.html
    and also that you follow the instructions closely, such as closing ALL applications first before installing. You must also carry out a permission repair after installing anything from Adobe.

  • Actually i don't  know where to post this, but I'm MBA student and have to do a project about the HR functions in a famous company. and I'd like to talk about Apple inc, so how can i get some information about that, and who can help me in this?

    Can anyone help me in this?

    Sara ~ Apple's mission statement is HERE. But the following statement from Apple's now-CEO Tim Cook during a quarterly earnings conference call on 21 January 2009 may give more insight:
    "There is an extraordinary breadth and depth and tenure among the Apple executive team, and these executives lead over 35,000 employees that I would call "all wicked smart". And that's in all areas of the company, from engineering to marketing to operations and sales and all the rest. And the values of our company are extremely well entrenched.
    We believe that we're on the face of the Earth to make great products, and that's not changing. We're constantly focusing on innovating. We believe in the simple, not the complex. We believe that we need to own and control the primary technologies behind the products we make, and participate only in markets where we can make a significant contribution.
    We believe in saying no to thousands of projects so that we can really focus on the few that are truly important and meaningful to us. We believe in deep collaboration and cross-pollination of our groups, which allow us to innovate in a way that others cannot.
    And frankly, we don't settle for anything less than excellence in every group in the company, and we have the self-honesty to admit when we're wrong and the courage to change. And I think, regardless of who is in what job, those values are so embedded in this company that Apple will do extremely well."

  • How can I validate a DataTable with inputText and other JSF components?

    I have a DataTable with various input components. I need to be able to validate what the user has entered on all the rows of the DataTable. Does anyone have any examples they can point me to, experiences with this, or knowledge on how to do this?
    Thank you so much.

    Do you have to use backing beans instead of managed beans to validate components inside a DataTable?

  • Bespoke Digital Media: How can i share files between my iPhone5 and other company phones ?

    hi
    I am from Bespoke Digital Media. I wants to share files between iPhone5 and Samsung galaxy S4. How should i do this? Kindly help me.
    Thanks
    Aan Rai

    Not sure what type of files you are trying to share, but you can't use Bluetooth.
    Emails/text the files to each device.

  • How can my client most easily update photos and other content herself?

    My client wants to upload photos into photo gallery widgets I've already designed in Muse. Will she be able to do this through Business Catalyst? This person is not a designer and will not want to learn/pay for Muse. If this isn't possible now, is Adobe working on a solution? Thanks!
    Sarah

    You can't do this with the current version of muse. Adobe is planning to expand the software with a CMS feature in the near future, but you/we need to wait.
    The are some possibility to embedd external blog features in your design, but is not like having a full feature CMS for content management.
    Whatch this video for some example about how to embedd some Business Catalyst features into muse:
    http://tv.adobe.com/watch/muse-feature-tour/muse-advanced-cms-integration/
    Francesco

  • How can I change my default PDF viewer and other things

    Hello,
    I am using Iceweasel 3.6.16 on Debian Stable (currently Squeeze) and the download Manager in Firefox (it should be the default one though I have the All-in-One Sidebar installed) always wants to open PDF files with the foxit reader. I don't know when it happened, how or why but everytime I click on a pdf file in the download manager it tries to open it with the foxit reader using wine, same thing happens with txt (he's trying to open them with notepad, using wine).
    Now when I download pdfs I don't have a problem because I use the PDF Downloader and I set it to use okular when I want to open a pdf but once it's downloaded and I want to open it using the sidebar on the left it uses the foxit reader. So my question would be where I can specifiy what program I want to certain files.
    When I go to Edit -> Preferences -> Applications and to PDF Document it says under Action "Always ask" and changing that to okular doesn't solve the problem.

    AWESOME - PROBLEM WAS, AT THE TIME ADOBE AND FOXIT FILE TYPES WERE NOT APPEARING IN MY TOOLS/OPTIONS/APPLICATIONS TAB - THIS IS A MYSTERY . . . .

  • How can I  play mpeg on my iMac and other apple devices

    I received a movie clip to my email(apple) from a cell phone. It is labeled video0131.mpeg. I can not play it. Would like to be able to play. I have installed on my iMac flip4mac. Still does not play. When I click on the link that says video0131.mpeg I get an error message error: no associated application could be found. Please help. Greatly appreciated.

    Hello
    I am sorry I am not able to understand the link you sent me about quicktime. I am operating Mac OS X version 10.6.7. I sent myself from my cell phone a video to my mailbox. When i go to mail and open it up it shows the logo pic of movie clip then right next to it the link video0131.mpeg when i highlight the link it also shows this right after video0131/cid:422, I go to click on link or movie clip pic and i get an error message no associated application can be found. I have installed on my computer quicktime player 7 also flip4mac.Not sure hat has happened or am I doing something wrong. Thanks for your help

Maybe you are looking for