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)

Similar Messages

  • 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.

  • 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!

  • 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

  • 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.

  • 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-

  • 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!

  • Java Imaging API for Displaying CGM IMAGES along with Hotspot on Applets

    Are there any java imaging API's which displays the CGM Images on Applets? The CGM Image has Hotspot keys built in. So the Image displayed through Applet should also display the Hotspot keys.
    Also any Event Handler API's when the hotspot key is clicked?
    It would be great, if anyone can send any link regarding this subject

    You may want to try the jcgm library, though it doesn't support hotspots yet.
    [http://jcgm.sourceforge.net/]
    Philippe

  • Standard java libraries "do not exist"

    I'm fairly new to Java programming, and, well, programming in general. I've been building small, simple java programs for a couple of months now.
    But all of a sudden (after a short period of not coding anything) I tried to write a program with that imported a standard java library (javax.sound.midi), and on compile, got the error message "package sound does not exist." Upon trying other packages, I've found that none of them work. Not Swing, not even util. This hasn't happened before. I've written plenty of other programs that imported standard libraries with no problem. I've tried mussing with %CLASSPATH% to no avail, (namely setting it to "C:\j2sdk1.4.2_04\jre\lib" among other things), and at best can cause it to not be able to find java.lang anymore.
    What gives?

    error message "package sound does not exist." I question if your import statement is valid - how come the complaint is about the sound package (a non-existent package) rather than javax.sound.midi?
    I tried various invalid imports, though, and couldn't duplicate that exact error text.

  • Acessing EJB from standard java applications

    Hello,
    What is the best way to access Enterprise Java Beans from a standard java Application? Any suggestions, documentation, links, ... are welcome.
    To illustrate the problem, take the shopping cart example (http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Session.html). Suppose I now want to create a shopping cart from another swing application started with the 'java' command and not the 'runclient' command. Is this possible? Has it been done before? What is the best thing to do ? Both the J2EE application (like the shopping cart) and the plain java application are already used by customers and cannot be fundamentally changed (the java command cannot be replaced by runclient).
    Thank you.

    Several options are available.
    The easiest is to have the java app call the EJB via RMI/IIOP. You should wrap that process in the "ejb-home factory" and "business delegate" design pattern. I recommend downloading this design pattern book and reading it through.
    http://www.theserverside.com/books/EJBDesignPatterns/index.jsp

  • Immediate help needed - passing parameters from jnlp to standard java app

    hello guys,
    i am new to the java world. i need some help from you immediately please.
    i want to pass information stored in the session varibles to the standard java application through jnlp.
    for example i want to pass customerid having customer information through the jnlp file to the standard java application. how to do it.
    i am creating the jnlp file dynamically and saving the session variables of a client as arguments in it(such as customerid described above). i generated the jnlp something like this...
    <application-desc>
    <argument>21</argument>
    <argument>cltds21.txt</argument>
    </application-desc>
    is this the way i am supposed to pass arguments through the jnlp file to the standard java application . if yes how to get these arguments from the jnlp file in standard java application using code. please help me.
    your help will be appreciated,
    thanks.

    Yes - you can pass args in this way,.
    with these settings, the args will be available to the programs main:
    public static main(String [] arg) {
    then arg[0] will be "21", arg[1] will be "cltds21.txt".
    /Dietz (aka Andy)

  • A good book or a Tutorial about java Imaging

    Hello. I am new to java imaging and i was wondering if there is a good book or e-book or a tutorial that can help me learn about image processing. Do you have any suggestions? Thanx

    You can try this link ....
    hope it will help u a lot....
    http://www.javalobby.org/articles/ultimate-image/

Maybe you are looking for

  • SQLPlus problem - user enters quote in substitution variable

    Hello, I have a SQL Plus script report, where user is prompted to enter "customer name". Some customer names contain single quotes/apostrophes. When user type such name, the script will error out with ORA-01756: quoted string not properly terminated

  • Yellow Screen (Even with 2.1)?

    I got a replacement yesterday and it has a bright pixel, a lot of light leak and a VERY yellow/brown tinted screen. The black looks washed out and grays look brownish yellow... Is this a known issue? Do you need to downgrade to 2.0 to fix it? Is this

  • Suddenly, I can't move purchased music to my Nano!!!

    I have been using my Nano v1.0 with iTunes 6.02 and updating with no problem. The other day I udpated the Nano to 1.1. For the longest time after that, whenever I attached the Nano, iTunes would crash. I've since remobved iTunes and reinstalled the e

  • Question about usb in labview

    I am currently doing a project about designing standalone data acquisition module with USB 2.0 interface. For the hardware, a USB FIFO chip(FT245BM) is used to communicate with PC via USB with the driver DLL provided by the manufacturer (FTDI). I wan

  • Accounting entry required.

    Hi Experts, We are generating a invoice against STO/Delivery, since it is an Stock transfer so customer sholud not be debited but we are paying a extra duty to govt. while transfering the stock from manufacturing plant to another plant. So we need to