JOptionPane Probelm : Need to display Colored string in the warning message

I want to display colored string in the JOptionPane. Please suggest me how can I do that.

     javax.swing.JLabel lab = new javax.swing.JLabel("error message");
     lab.setOpaque(true);
     lab.setBackground(java.awt.Color.black);
     lab.setForeground(java.awt.Color.red);
     javax.swing.JOptionPane.showMessageDialog(null, lab);

Similar Messages

  • My mac mini displays a green screen with 'mac os version not yet responded' and 'you need to restart your computer' as a warning message. Inspite of all my tries it doesnt run from the install dvd either.

    My mac mini displays a green screen with 'mac os version not yet responded' and 'you need to restart your computer' as a warning message. Inspite of all my tries it doesnt run from the install dvd either.
    Please help.

    Sounds like you may have a hardware problem since it won't read from DVD, and it is only a year and a half old.  Hopefully all it is, is bad RAM*:
    http://www.macmaps.com/badram.html

  • Can we change the color of the Warning Messages?

    Hi, I had a requirement to change the Color of the warning messages to be in Red. Can somebody suggest on how to do this and also can we do this for one module specific?
    Thankyou

    following statement would show the message in Red Color.
    throw new OAException("Warning Message",OAException.ERROR);
    Use OAAttrValException if you want to highlight the particular field is wrong.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How can I customize the warning message displayed in the Security Dialog

    Hi,
         Before downloading my application on the client machine JWS shows a Security Warning dialog to the client. I want to customise the Warning message displayed in this dialog. How can I do so?
    Thanks,

    Hi,
    Just try one of the following parameters at the formsweb.cfg
    # Forms applet parameter
    restrictedURLparams=HTMLbodyAttrs,HTMLbeforeForm,pageTitle,HTMLafterForm,log,allow_debug,allowNewConnections
    # Forms applet parameter
    formsMessageListener=
    # Forms applet parameter
    recordFileName=
    # Forms applet parameter
    serverApp=default
    # Forms applet parameter: URL path to Forms ListenerServlet
    serverURL=/forms90/l90servlet
    Then Restart your OC4J.
    Regards,
    Hamdy

  • HT1202 The manual mode to transfer music to my iTune from my iPhone does not work as described. When I click on Manually manage... it displays the warning message that all music on my iPhone will be erased and replaced by iTune music.

    The manual mode to transfer music to my iTune from my iPhone does not work as described. When I click on Manually manage... it displays the warning message that all music on my iPhone will be erased and replaced by iTune music.
    How can I transfer my music to a second computer iTune?
    Thanks,

    See this user tip
    Syncing iPhone to a "New" Computer or replacing a "crashed" Hard Drive

  • Need to display a value before the header based on a user parameter.

    I have a select on the user parameter list of values.
    SELECT DISTINCT GROUP_ROWID, STR_GROUP_NAME
    FROM TBL_COMPANY_GROUP;
    I select the option hide the first column in order to show only a list of values and not the row_ids.
    I need to display the str_group_name within the header as a title. I insert a field in the header and in source select the name of the parameter p_groupid but the only thing that I get is the row_id value not the name. I use the row_id to pass it on my queries but I need the name value in the header. Any ideas? Please help.
    Thanks.

    create a parameter called p_header.
    in the after parameter form trigger
    select str_group_name into :p_header
    from tbl_company_group
    where group_id = :p_groupid;Have the header field source be p_header.

  • Tree OOPS ALV - Need to display header & items of the sales order in oops

    HI,
        I need to display some of the header fields of the sales order & items in the oops alv, could you please let me know how to achieve this. I know FM - 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' but how to achieve this through oops alv.
    Thanks

    it is not possible with that function in OO .
    you can try with class cl_salv_hierseq_table
    Just check this Rich's article
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0f03986-046c-2910-a5aa-e5364e96ea2c
    if you don't want that then you may have to use ALV tree.

  • Need to display a Disclaimer on the request CUP request form

    Greetings,
    As part of the organizational Request, I need to include a disclaimer on the AE request form, the person needs to agree or disagree to the disclaimer during submission/approval.
    I tried doing it in multiple ways but was not able to succeed with the requirement:
    Approach 1:  Custom field "DROP DOWN" text made it mandatory field to select the either the user agrees to the disclaimer or not. The issue with it is the disclaimer is about 200 characters and the field restriction on the custom field is 40 characters. Does not work as I intended to.
    Approach 2: Custom Field "Text" made the field as default and provided the default 200 character sentences into the text field. Though I provided the default value it does not show up in the text box and comes up blank, does not solve the requirement.
    Optimal approach : If could do a disclaimer on the request form with a check box and force the user/approver  to check the box would solve the purpose.
    Do anyone of you can suggest or show a way where either I can increase the drop down text size from 40 to 200 characters or display the disclaimer with a check box or probably I can then use the drop down list as "Agree" vs. "Disagree"? Will be helpful.
    I have also need to make a validation that states not to approve/provision the access if the disclaimer is set to 'disagree"
    Any help will be greatly appreciated.
    Best Regards,
    Angara Rao

    Greetings All,
    As an update to my earlier question. SAP came back asking me to log this an an enhancement for future releases using SAP note 1575897 . I have logged it with them and hopefully we will see an solution in hot packs/Next releases.
    As a current solution, We have placed a disclaimer text on the Portal Landing page and have marked with a "Accept" or "Decline" push buttons. The push buttons stores the user identity, date and Time stamp in a custom table for validating purpose and while the accept button launches the GRC CUP application.
    The above was created as a prototype and not currently in use untill signed off from the concerned department head & Global policy head asking for this information.
    Best Regards,
    Angara

  • Why does Photoshop display colors differently from the other applications even in sRGB mode ?

    Hello all !
    Here is my problem :
    Photoshop is set to use sRGB workspace (in edit/colors.../workspace/RVB).
    If I understand correctly this is how all native windows applications work.
    This means Photoshop and the other applications should display the same colors on a file with a sRGB profile.
    Now this is the case until I calibrate my monitor.
    When I do, Photoshop colors become different from the other applications (irfanview, explorer, browsers...).
    The only way I found to let everything display the same colors is to set Photoshop to use Proofing/RVB Monitor.
    What upsets me even more is that Photoshop colors look "better" to me (dark grays seem to dark to me in the other applications.)
    I have read that this is because Photoshop takes the new profile into account and others applications do not. But I don't think this is relevant here because everything is in sRGB so the only profile is my monitor's and I think calibration is handled globally by windows : everything (including browsers, explorer, and Photoshop) changes color if I choose to apply the monitor's profile or not with windows color management tool ("use my parameters for this device").
    Here is my system configuration :
    - Photoshop CS4 (11.0.2)
    - Windows 7 64 bits
    - HP ZR2440W and DELL 2209WA (these are not wide gamut screens)
    I have spent two days trying to figure the logics behind this and really am upset. Any help would be greatly appreciated. Don't hesitate to ask me if there is something that is unclear or some information I forgot to mention.
    Thanks in advance,
    Yannick

    That sounds like an invitation to continue to talk about the issue.  Fair enough.
    I'm not sure where you're getting "insecurity"...  I am just trying to help you help others more effectively.
    I invite you to re-read just the first sentence of what you wrote very carefully, putting yourself in the shoes of someone struggling with both the terminology and the concepts:
    Photoshop (CMS) reads an embedded ICC profile and CONVERTS it to the custom monitor profile for a theoretical 'true color' display
    Think about what "Photoshop (CMS)" might mean to a person who doesn't know the acronym might stand for "Color Management System" (which is I assume what you meant).  Adobe themselves don't call it "CMS", they use the acronym "CMM" (Color Management Module).  The term "CMS" is used in the computer industry for about a dozen different things.
    While a color profile might have been embedded in an image file before it was opened by Photoshop, Photoshop works on documents.  A profile is not "embedded" in a document, it is maintained by Photoshop with the document and describes the color values in the document.  If Photoshop opens a document without an embedded profile, depending on settings and user choices it might assign a profile or it might even operate on the document without color-management.  Oversimplification doesn't help people when they're trying to learn new things unless it's described as such, for example, "This is a bit of an oversimplification..." or "Generally speaking..."
    Not every monitor profile is a "custom monitor profile".  Quite often a standard profile (e.g., sRGB IEC61966-2.1) is associated with a monitor by the operating system as a default, or a factory profile is installed by a driver package or system update.  Your use of the term "custom" is a bit ambiguous and could be read as implying the creation of a profile using a calibration and profiling device specific to the particular monitor.
    Photoshop's color management code does not convert an embedded ICC profile at all (read carefully what you wrote).  As I said, it transforms color values.  That was the key error in your description that prompted me to comment.
    If ever there is a time to pick words carefully, it's in a color-management discussion.
    -Noel

  • 2 23" Displays: Colors are not the same.

    Hi there
    I a running a G5 with two 23" Cinema Displays.
    I had to get one of the two displays exchanged because a USB port wasn't working anymore. The new display has different colors than the older one (the new one has more blue - the older one more red). The first two displays had absolutely the same colors.
    As I have seen the two monitors use the following two profiles:
    - Cinema HD Display-4248B25.icc (older display)
    - Cinema HD Display-4248780.icc (newer display)
    In these two profiles the values are not exactly the same.
    I tried to set the monitors to the same profile (for example: sRGB-Profile) but the colors are still different.
    Is there a way to resolve this or this simply a hardware related issue?
    Any help is highly appreciated.

    There are variations LCDs are made. Differences in color can come from the LCD panel itself or the fluorescent backlight used to light up the screen. Thus, it's very difficult to get two displays that look exactly the same unless they are purchased together and happen to have been made right next to each other at the factory. Try calibrating the LCDs, though that will only go so far to match the colors better.

  • I needs to Display Tree With in the table, Please Help me

    I needs to display
    First Table, then inside the table tree, whenever I expand the tree then all the specified Childeren should display in another table.
    Please give me solution with example(code)
    this is simple Example
    A
    a1
    a11
    a12
    a13
    a2
    a3
    B1
    C1
    But I needs to display following format(that means with in the table)
    first step(Normal mode)
    A
    B
    C
    whenever I expand A(expand mode)
    A
    a1
    a2
    a3
    Whenever I expand a1 then(I needs to display this format) This is final Expand
    A
    a1
    a11
    a12
    a13
    a2
    a3
    B1
    C1
    Please Help me. This is very important for me. Because I am doing project. Please help me..with example

    maybe this,
    http://java.sun.com/products/jfc/tsc/articles/treetable1/index.html

  • Reg: display the warning message in alv out put

    Hi All,
              i am uloading the flat file data ,display in the alv grid in the edit mode. when i am trying to change the output data in grid, for which are having the blank (no value for the field) , i want to display warning message the selected cell is blank.
    could u help me on this please.
    Thanks,
    Kumar

    For  editing the ALV cell .. you would be writing some code .. which is mandt  rite ?
    So  before that  code u check the filed value ..initial or not ..

  • Need to add xml tag in the request message

    Hello Experts,
    Need ur help.
    Right now i am working on the scenario Http -> to -> Proxy.
    Whatever request i am getting is not having XML tag in it, and because of that my mapping is failing.
    Can you tell me that how can i add XML tag in my request so it will not fail in Mapping?
    Need to add : <?xml version="1.0" encoding="UTF-8"?> in request.
    Thanks,
    Hetal

    HI Hetal
    Instead of adding this to the source message. Remove this tag from mapping.
    Use a XSLT mapping without this initial tag. it will work.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:m="http://namespace">
    <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
    <xsl:template match="/">
    <xsl:for-each select="//tag">
    <xsl:value-of select="." disable-output-escaping="yes"/>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>
    Use this mapping without
    <?xml version="1.0" encoding="UTF-8"?>
    If you still see XML tag then use
    <xsl:output method="html"
    instead of
    <xsl:output method="xml"
    Thanks
    Gaurav

  • Need to Display columns depending on the prompt selection

    I  need to show the only the columns as per the prompt selection given by the user.
    Suppose there are 5 prompts say (first name, last name, phone number, address, DOJ). All the prompts should be optional. If the user gave input for first name and last name then only this two columns must be displayed in the report.

    Yes it is possible but you will have to write down formulas for these columns.
    First add all required object in your report and format them in your report.
    Now say you want Last name to appear when you user enters last name in prompt.
    Write down following formula
    Report Detail Area
    =If(UserResponse("Last Name"))="USER INPUT" Then [LNAME]
    For column Heading you can use
    =If(UserResponse("Last Name"))="USER INPUT" Then "Column Heading"
    The same pattern may be applied for other columns.
    Regards,
    Bashir Awan

  • Help needed to display Values one below the other

    Hi Experts,
    I am having three characteristics among eight others whose values are to be displayed in BEx Analyzer. These three characteristics values are line items whose values are being displayed side by side.
    Now, I want them to be displayed one below the other. I do not know how to do it.
    Can anyone guide me?
    Waiting for the reply,
    Thanks in advance,
    With Kind Regards,
    Shreeem

    Hi Shreem,
    As of my knowledge we have only one options for your requirement that is "Hierarchies'.
    You have to create hierarchy for all your line items but this not good pratice.
    Otherwise in reporting only you have to set the hierarchy :- Go to Rows in Rows tab -> Right click-> Select Hierarchy.
    Hope it helps you.
    Thanks and Regards,
    Venkat.

Maybe you are looking for

  • Service Tax payable on road transportation at Goods receipt lavel

    Hi Experts, Scenario-- Materials receipt from vendors through road transportation thus service tax is applicable and we have to accrue liability and pay to the authorities on behalf of transportor, the cost of transportation has to be booked in separ

  • Parent Child Relationship in the table to be queried.

    Hi guys, I have the below query. Table 1: Column_name Reference Value1 Value1 Value2 Value1 Table 2: Column_name Attributes(child Elements) Value1 Child1 Value1 Child2 Now my query is to retrieve records as below using both the tables. Value1 Value1.

  • Bring window to front - appactivate does not help :(

    Hello I am coding with vbscript. I have a need to make certain that sendkeys commands are sent to the proper program. I can use this to activate a window: success = WshShell.appactivate("MyProgram") if success then WshShell.sendkeys "(% ) N" But in W

  • Mail.dat *.csm report

    We are running Presort 8.00c, and when we run our presort jobs, and look at the mail.dat file, in position 49 we have a "N", but according to the printer that should be a "O".  This is to set up EP Facility Type, but we cannot figure out what trigger

  • How can you add images and text to UIScrollBar Component

    I can only add the text, can't add images. Also how can you make paragraphs out of long text in a UIScrollBar? Thanks.