Removing of standard java image in JOption Pane

anyone can help to remove image(standard java image in JOption Pane).
Looking forward for early response :)
i tried to use (setIcon) method but i ecountered this error:
Exception occurred during event dispatching:
java.lang.NullPointerException
at Sample.errorMsg(Sample.java:209)
at Sample.check(Sample.java:177)
at Sample.actionPerformed(Sample.java:124)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

just use JOptionPane.PLAIN_MESSAGE as a message type.

Similar Messages

  • Standard java Image in JOption Pane

    Hello All!
    i am working on java application. i have to remove image(standard java image in JOption Pane).
    I'll be very thankfull if anybody can help me.
    Looking forward for early response :)

    i tried to use that method but i encountered this error:
    Exception occurred during event dispatching:
    java.lang.NullPointerException
    at LoginGUI.errorMsg(LoginGUI.java:209)
    at LoginGUI.check(LoginGUI.java:177)
    at LoginGUI.actionPerformed(LoginGUI.java:124)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Sour
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

  • Removing removal of standard image from Top Left from java applications

    Hello All!
    i am working on java application. i have to remove image(standard java image in every frame , dialog box and JOption Pane etc....).
    I'll be very thankfull if anybody can help me.
    Looking forward for early response
    Asima

    Hi Asima ,
    you can use:
    setIconImage((new ImageIcon("yourIcon.gif").getImage())); for JFrame.
    For JOptionPane and others where setIconImage does not exist you have to use the constructor which specifies the owner (your JFrame with yourIcon) so it uses that same Icon. If you want to remove the Icon completely you have to create your own icon as a blue (0,0128) square and use that.
    HTH
    Phil

  • Standard button image problem

    Hi,
    I've got a problem when I try to set Image to the button from standard components.. I can set it up, but than I didn't see the image in the browser.
    With the button from basic components there is everything working fine, unfortunately I need that component from standard.. any advice?
    thx.

    Hi,
    I've got a problem when I try to set Image to the button from standard
    components.. I can set it up, but than I didn't see the image in the browser.
    With the button from basic components there is everything working fine,
    unfortunately I need that component from standard.. any advice?
    thx.Standard button has problems with images due to a JSF issue. To work around the issue, remove leading / from the buttons image property and re-deploy. This should cause the standard button image to display correctly.
    Hope it helps,
    Lark

  • How to use standard java functions in a XSLT mapping

    Hi All,
    I wish to use a standard java function in a XSLT mapping, The issue is either i am giving incorrect namespace which is used to invoke the function or the signature of the function call is incorrect, I have read all the links in http://help.sap.com, and i know <b> one can enhance a XSLT mapping by writing one's own java code and thereby using java standard functions </b>, but the requirement is such that i need to try and use java standard function in XSLT mapping itself.
    Please refer to the sample code below:
    <?xml version="1.0" encoding="UTF-8"?>
      <xsl:stylesheet version="1.0"  
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:javamap="java:java.lang.String">
    <xsl:output method="text"/>
    <xsl:template match="/">
    <xsl:variable name="input" select="Title">
    <xsl:if test="function-available('javamap:toUpperCase')">
    <xsl:value-of select="javamap:toUpperCase($input)"/>
    </xsl:if>
    Author:<xsl:value-of select="Author"/>
    </xsl:template>
    </xsl:stylesheet>
    error encountered is: Illegal number or type of arguments.
    please reply if you have tried a similar scenario in SAP XI.
    Thanks & Regards,
    Varun

    Hi Varun,
        First of all i want to tell you that as per the documentation you can only call the static function inside xslt mapping. Your toUpperCase method is a non static function.
    What i am getting is that you have an element called Author and you want to convert its value into uppercase.
    you can write your own user defined function which is static.
    Signature of your java method :
    public static string toUpperCase(String Author,Map inputparam)
    try this xslt map.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="2.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:javamap="java:JavaProgram">
         <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
         <xsl:param name="Author">
                 <xsl:value-of select="//Author_name"/>
         </xsl:param>
         <xsl:param name="inputparam" />
         <xsl:template match="/">
         <Author>
                 <xsl:if test="function-available('javamap:toUpperCase')">
                  <xsl:value-of select="javamap:toUpperCase($Author,$inputparam)"/>
                 </xsl:if>
         </Author>
         </xsl:template>
    </xsl:stylesheet>
    Hope this will work.
    Thanks and Regards
    Vishal Kumar

  • I am trying to use photomerge compose.  I open one standard jpeg image and one image that is my business logo in a png format.  When I select the png image, to extract the logo from it, it appears as all white and will not allow me to select the logo from

    I am trying to use photomerge compose.  I open one standard jpeg image and one image that is my business logo in a png format.  When I select the png image, to extract the logo from it, it appears as all white and will not allow me to select the logo from it.  It has worked in the past but I downloaded the update today and photomerge will not work correctly.  Any ideas?

    hedger,
    How do you expect anyone to help when we don't know a darned thing about the file, abut your setup, exact version of Photoshop and your OS, machine specs, etc.?
    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Remove adjustment from multiple images?

    I have multiple images where I used Sharpen instead of Edge Sharpen. I know I can Lift & Stamp the Edge Sharpen adjustment to multiple images but I can't seem to find a way to remove the Sharpen adjustment from all of them first. Is there a way to accomplish this? Thanks

    I can add the other keyword using your techniqe, but how do I get rid of the wrong keyword without interfering with the other keywords I have already set for the images?
    Keywords are metadata, not adjustments.
    If you want to add or remove keywords to multiple images, without interfering with the keywords that are already set, I'd suggest to configurekeyword sets and to use the keyword controls:
    For example, after designing a keyword set"Himmel" (sky) I can add or remove one of the keywords for all selected images  by simply pressing a button in the keywords panel or using a key combination: for example ⌥6  to add the keyword "Halo" to all images, ⇧⌥6 to remove it from all currently selected images.
    But the question is, how to remove one adjustment from multiple images, and that seems to be behaving buggy in Aperture 3.4.1, at least on my system: If I try to add an adjustment to (or remove from)  multiple images, only the primary selection will be modified - and yes "Primary only is disabled ).
    For example: Trying to add "Sepia Tone" to four images: I see the same on two MBPs and on my iMac with Aperture 3.4.1.
    Regards
    Léonie

  • Realy no one knows how to remove the word "java applet window" besides sign

    Hi, everyone,
    I am trying to remove the line "java applet window" from my nice/colorful interface, but what I was told is that I can not remove if i do not sign for digital singiture. Is this really a limition of Applet?
    I do not know why t he design want to add this stupid feature. As most people are not technical people, they do not care whether it is applet or not. For technical people, they should know that some thing popup from the browser and have a "java" sign on the right top corner is Applet.
    Only too sad about that.

    In the browser window, the address bar will also display the correct URL for the page being displayed.
    An applet window could spoof this address bar and otherwise mimic the look and feel of the browser (or any other application), thus tricking the user into believing the window to be legitimate.
    Just because there are already potential security/privacy issues in the applet specification, doesn't mean we want to open up another one! Why do you want an unsigned applet with a window without a warning message? You'll need a certificate anyway if you're planning on using secure communication - sending client data across an unsecure connection is rather less professional than spawning a window with a well-known and generally-ignored warning message.

  • Java Program in MDM to call a standard java class

    Hi All,
    In MDM- GDS, (Global Data Synchronization), we have a scenario where, once we register the Items , it will be transported to a Data Pool called 1SYNC through SAP PI.
    There is a standard Java PRoxy(Kind of java Class) in MDM, which will be triggered once we register the Item in MDM-GDS.
    That Java Proxy will send the Item INfo as a XML message to PI.
    So we would like to know whether its possible to automate this process.
    Like,Writing a new Java Program which will check all the new items and trigger the Java Proxy and send these items as XML Messages to PI.
    I m new to MDM. So it would be really helpful, If i could get some inputs on this. Like, is it possible in MDM. If so, how?

    Aarthi,
    you can acheive this from MDM itself, and need not to write any Java proxy.
    you may consider following logic.
    Create a field with the Name Status and Initilize it with Value "new". Now define syndicaiton Map to syndicate records which holds value "new" in the status field.  define a workflow with syndication step, using maps defined earlier. After syndication step, execute an assignment to change Status field value from "New" to "Syndicated".
    Revert back if any question.
    ~ Shiv

  • Where are the standard java packages io,util etc found in JRE

    hello,
    can u guys tell me where the standard java packages io,util found in the JRE.
    is it the rt.jar file??
    as i need to set the path in my applicaion to it coz, my application after running generates a .java file and then compiles it and creates a .class file on the local machine every time it is run.

    You want the <JRE Home>\bin directory as your path if you use the JRE to run the class. Eyeball the SDK bin directory, find the same directory in the JRE structure, and set your PATH to it.

  • How to remove antialiasing of vector images?

    Hello. Currently, I am editing bitmap images that are not antialiased, and I made lots of vector shape layers.
    And what I want to do is remove antialiasing of all vector layers  because if they are antialiased, they can not  fit into forementioned non-antialiased bitmap  images.
    I found an option to display aliasing vector images, I mean "Layer image quality" option in time line panel, and I set it  "draft", but if I render my sequence, AE won't allow  me to render the draft, aliasing vector image. They are antialiased. AE ignores the draft setting and renders vector layers as best quality, antialiased image.
    So I want to ask how to remove  antialiasing of vector image completely.
    Please help me. Thank you.

    I found the option.Thank you.
    And I want to ask one more question.
    I guess If I set render settings as Draft quality, AE renders all layers including "Best Quality" layers as Draft quality.If so,there is a problem.
    If I want to render "A" bitmap layer(this layer has effects like Fast blur, Hue/Saturation) as Best quality and "B" vector layer(No effect) as Draft quality, and  If I render A and B layers as Draft quality, it means I can't render "A" layer as Best quality? If so, it will be a problem. I read a manual and it says some effects won't work correctly on Draft quality layers. Is it alright to render them all  as Draft quality?

  • Standard Java RMI and WLS5.1?

     

    I would surmise that the problem you are seeing is the result of the fact
    that we do not except standard Java RMI calls using the functionality in the
    JDK. You must use the WebLogic implementation of RMI. It is exactly the
    same in terms of APIs, but we have gone through and optimize the underlying
    protocol.
    Please see the documentation for more details.
    We offer both RMI over IIOP and RMI over T3.
    Thanks,
    Michael
    Michael Girdley
    Product Manager, WebLogic Server & Express
    BEA Systems Inc
    Mario Felarca <[email protected]> wrote in message
    news:[email protected]..
    Hello,
    I was trying to get a simple callback demo working using standard java
    RMI and the WLS5.1. Unfortunately, although things seemed to compile
    and launch smoothly, when the client started up and tried to talk to the
    WLS I would get the following error:
    weblogic.rmi.server.ExportException: A description for CallbackImpl was
    found but it could not be read due to: [Failed to find a stub for [class
    CallbackImpl] implements at least one interface [interface Callback]
    which extends Remote.]
    weblogic.rmi.StubNotFoundException: Failed to find a stub for [class
    CallbackImpl] implements at least one interface [interface Callback]
    which extends Remote.
    I tried determining if this was a classpath problem, but all my efforts
    kept producing this result.
    On the flip side, if I retool my objects slightly in order to make them
    use weblogic.rmi.*, then everything works perfectly.
    Is there a tradeoff to using weblogic.rmi over java.rmi?
    Also, does anyone have any ideas as to what might be causing my error
    when using standard rmi?
    Thanks so much in advance,
    Mario-

  • Remove shadow on cropping image

    Hi All,
    Can any one help me how to remove shadow on croping image(image from photoshop) in adobe premiere after rendering video?

    Hi Guys,
    Please see the difreent between this two images, im not sure why theres a black border or shadow. If you guys now how to fix this that will be good on my video.

  • Standard Java class communicating with a servlet

    Hey,
    I am trying to access a standard java classes member via a servlet class however the data is never received even though the member is visible on compilation. is there something Im doing wrong ?
    public class Start {
    //lots of stuff
         static List<Plug> plugList = Collections.synchronizedList(new LinkedList<Plug>());
    //lots more stuff
    public class wah extends HttpServlet{
            public void doGet( HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException{
                    doPost(request, response);
        public void doPost(HttpServletRequest request,
                                    HttpServletResponse res)throws ServletException, IOException{
                    res.setContentType("text/html");
                    PrintWriter out = res.getWriter();
                    out.println("wahwahwah");
                    synchronized(Start.plugList){
                            out.println("pluglist");
                            Iterator i1 = Start.plugList.iterator();
                            while (i1.hasNext()) {
                                    Plug oldPlug = (Plug)i1.next();
                                    out.println("PLug : " + oldPlug.getaddress64());
            }//doPost
    }

    Don't post all your code. Instead, make a simplified version of the code that demonstrates what your problem is and that we could compile and see what is going on. Make it as simple as possible but still demonstrating the problem.
    Who knows, when you make the SSCCP (small, self contained, compileable program) you will find your mistake as well.
    But without seeing any code all I can say is that the date you are accessing in the list has not been made available when you try to get it from the servlet. Perhaps the servlet call is blocking the other threads from accessing the list to put data into it, perhaps the other threads haven't begun working yet, perhaps the list you give to the servlet isn't the same list (but instead a copy of the list) that the data is being entered into, or many other reasons.
    One thing I would assume you need to do, since the Servlet is the data consumer, you need to make sure the data has been entered before the servlet tries to read it. The best way to do that is to put a wait() in the servlet code so that it knows it can't do anything until the producers are finished. Then the producers would add a notify() to tell the servlet to go ahead and display the data.
    So some modification might be:
    public class Start {
    //lots of stuff
         static List<Plug> plugList = Collections.synchronizedList(new LinkedList<Plug>());
            //marker to let servlet know that it can consume data
            private static boolean done = false;
            //producers call this method when list is ready for use
            static void setReadyToConsume() { done = true; }
            //servlet calls this to check if the list is ready
            public static boolean isReadyToConsume() { return done; }
    //lots more stuff
        public void doPost(HttpServletRequest request,
                                    HttpServletResponse res)throws ServletException, IOException{
                    res.setContentType("text/html");
                    PrintWriter out = res.getWriter();
                    out.println("wahwahwah");
                    synchronized(Start.plugList){
                           //Hold off trying to use list until list is ready
                            while (!Start.isReadyToConsume()) {
                                  try {
                                          Start.plugList.wait();
                                  } catch (InterruptedException ie) {
                                          log("Waiting for Plugs to be ready interrupted.  Continuing to wait.");
                                          log(ie.getMessage(), ie);
                            out.println("pluglist");
                            Iterator i1 = Start.plugList.iterator();
                            while (i1.hasNext()) {
                                    Plug oldPlug = (Plug)i1.next();
                                    out.println("PLug : " + oldPlug.getaddress64());
            }//doPostAnd don't forget to add a Start.plugList.notify() or Start.plugList().notifyAll() in the producer code after it calls the setReadyToConsume() method.

  • Customize Standard Java Class

    Hi,
    I need to customize a standard java class. I decomplied the source code of the class file, make the changes as required, and then compile it and upload it to the original path.
    The problem is that I am receiving java exception NoSuchMethod error after customizing. Even though I revert it to the original one, I am receiving the same error. I did re-bounce the HTTP server.
    The class is $JAVA_TOP/oracle/apps/po/communicate/POGenerateDocument.class
    Am I missed any important steps?
    Thanks in advance!

    Hi,
    I need to customize a standard java class. I decomplied the source code of the class file, make the changes as required, and then compile it and upload it to the original path.
    The problem is that I am receiving java exception NoSuchMethod error after customizing. Even though I revert it to the original one, I am receiving the same error. I did re-bounce the HTTP server.
    The class is $JAVA_TOP/oracle/apps/po/communicate/POGenerateDocument.class
    Am I missed any important steps?
    Thanks in advance!

Maybe you are looking for

  • Trouble connecting Nano to an external speaker...

    Just picked up the JBL "On Stage" external speakers. I've got the nano plugged in, it is playing, and i can hear distortion coming through the speakers... but no music. any help/advice would be appreciated. Thanks!   Windows XP  

  • Can't get album art up on Nano

    I seem to be having a problem with getting my album art up on my Ipod Nano, has somebody ran into this same kind of problem?

  • SSD/boot drive question

    Just installed an SSD, cloned my old HD and boot from it, have a Mac Pro so I kept the old boot HD in the machine as well... question- do I have to relink all the programs that I use on my dock so that they pull from the applications on the SSD and n

  • Re:re:how to show flexible date in a time component in JSP

    Thank Juan Oropeza. I have tried it according to your solution. In edit.jsp the timefield show YYYY-MM-DD 12:00 then I can change HH and MM by hand. but after I changed it YYYY-MM-DD 11:30 and updated. In browse.jsp the timefield is only YYYY-MM-DD 1

  • How to lock a table

    Hi all, When I insert a record to a table , how to lock it for preventing others write the table at the same time? Thanks.