Popup Message Displayed twice - Java 5.0 Swing

Hi,
We are upgrading our Desktop Appln. from Java 1.3.1 to 1.5.0. In many places in our aplications, we have attached Input Verifiers to JTable's, so that the columns can be validated. But in case of Java 1.5, the verifier is getting called more than Once. So, the error message pops up multiple times.
Help Need,
petro

Hi,
Thanx for the Reply,
After a little bit of Workaround, this is the result:
In our Appln., We have extended JTable and override the editingStopped(e) method of JTable , so that, if the input value is wrong, then the Focus should stay in the Same field after showing the error message (By default the focus moves to the next field after showing the message). For achieving above condn., we are calling Input verifier's Verify() method (Is there any way ???) in the overridden method.
In case of Java 1.5, the JComponent's requestFocus(bool) also checks whether the input is valid by calling Input Verifier's shouldYieldFocus() method.
So, that's why message is getting displayed twice...so what is the soln., bcoz i want the focus should not be lost if the input is wrong.
thanx.

Similar Messages

  • Forms Error Message displayed twice

    But on clicking the save button to commit the changes in the form, the validation trigger fires and the error message is displayed twice. This is once for the item and at the other at the form level.
    The error message has to be displayed only once i.e. while submitting the form by clicking the save button. Please suggest.
    Thanks in advance.
    Edited by: sri_menon on Sep 24, 2008 8:30 AM

    Do you alter the data in your Character Item through a program unit? Since you only have a WVI trigger at the item level, something in the form is causing the status of the item to become "Dirty" or "Invalid" after the WVI trigger fires. Therefore, Forms fires the WVI trigger again. Something else you can try is to turn "Debug Messages" on (go to Preferences => Runtime tab => check Debug Messages). This will display an Alert for each trigger that fires during Runtime. Then you can record all of the triggers that fire after the WVI trigger fires the first time. Once you know which trigger fire between the first execution of the WVI and the second execution of WVI then you can put break points in these triggers and then run the Form with the Debugger and see what it happening during the validate cycle. If you are using Form6i, the debugger is very easy to use. If you on Form 9 or greater, there is some setup that must be done to debug the web deployed form, but it well worth the setup to be able to debug your form.
    Hope this helps.
    Craig...
    Edited by: CraigB on Sep 25, 2008 8:18 AM

  • Messages displayed twice in inbox

    Since about a month I notice something strange in my inbox of apple mail. Some messages, particularly the ones sent via gmail, are shown twice in the inbox, the second one appearing in grey. This happens when I leave the message in the inbox and open mail some time later again. I can mouse-click on either one of them getting the same message text. When I remove one of the two the other one disappears as well.
    Can somebdy tell me what might be happening here?

    You’re welcome.
    I don’t know what’s going on here. It looks as if the the account had been set up twice in Mail > Preferences > Accounts, even though you say it appears there only once...
    Try re-creating the file where the account settings are stored:
    1. Quit Mail if it’s running.
    2. Make a backup copy of the ~/Library/Mail folder, just in case something goes wrong while trying to solve the problem. You can do this in the Finder by dragging the Mail folder to the Desktop while holding the Option (Alt) key down, for example. This is where all your mail is locally stored.
    3. In the Finder, go to ~/Library/Preferences/. Locate com.apple.mail.plist and move it to the Desktop (to be deleted if this solves the problem).
    4. Open Mail. You’ll have to set up your non-.Mac accounts from scratch all over again. If given the option to import existing mailboxes or something like that, don’t. Just enter the account information and Mail will automagically rediscover the data in ~/Library/Mail/ when done.
    5. You’ll have to re-configure most of your settings in Mail > Preferences. For spam-related security reasons, the first thing you should do is go to Preferences > Viewing and disable Display remote images in HTML messages if it’s enabled.
    6. As a side effect of re-creating com.apple.mail.plist, Mail might rename Outbox (which is where messages waiting to be sent are stored) to Delivered. The name of that mailbox is actually a misnomer, as it would contain messages (if any) that couldn’t be delivered for some reason. You can delete that mailbox if you wish.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. You can easily locate any of the folders referred to in this post by copying the folder path here, doing Go > Go to Folder in the Finder, and pasting the folder path there.

  • Mail messages sometimes displaying twice

    Lately, Mail sometimes displays new messages that have just arrived twice. There don't seem to be 2 actual copies of the message in the inbox, just the same messages displayed twice. It's kind of an odd behavior, really. If a message is clicked on and viewed in the preview window, the duplicate displayed doesn't change from unread to read. However, if a message is deleted both lines displaying the message go away and only one appears in the trash.
    This doesn't happen all of the time, just sometimes. Shutting down mail and reopening it gets rid of the duplicated message displays, but then some other time checking mail it will happen again.
    Anybody have any ideas on how to make this go away permanently? Thanks in advance.
    iMac G3 450 & eMac 700   Mac OS X (10.4.9)  

    You’re welcome.
    I don’t know what’s going on here. It looks as if the the account had been set up twice in Mail > Preferences > Accounts, even though you say it appears there only once...
    Try re-creating the file where the account settings are stored:
    1. Quit Mail if it’s running.
    2. Make a backup copy of the ~/Library/Mail folder, just in case something goes wrong while trying to solve the problem. You can do this in the Finder by dragging the Mail folder to the Desktop while holding the Option (Alt) key down, for example. This is where all your mail is locally stored.
    3. In the Finder, go to ~/Library/Preferences/. Locate com.apple.mail.plist and move it to the Desktop (to be deleted if this solves the problem).
    4. Open Mail. You’ll have to set up your non-.Mac accounts from scratch all over again. If given the option to import existing mailboxes or something like that, don’t. Just enter the account information and Mail will automagically rediscover the data in ~/Library/Mail/ when done.
    5. You’ll have to re-configure most of your settings in Mail > Preferences. For spam-related security reasons, the first thing you should do is go to Preferences > Viewing and disable Display remote images in HTML messages if it’s enabled.
    6. As a side effect of re-creating com.apple.mail.plist, Mail might rename Outbox (which is where messages waiting to be sent are stored) to Delivered. The name of that mailbox is actually a misnomer, as it would contain messages (if any) that couldn’t be delivered for some reason. You can delete that mailbox if you wish.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. You can easily locate any of the folders referred to in this post by copying the folder path here, doing Go > Go to Folder in the Finder, and pasting the folder path there.

  • A popup message in between logon screen and easyaccess

    hai
    i want to show a popup message displaying
    a message which must be again in the logon language
    choosen and that popup message should appear immediately
    in between the logon screen and the sap easy access screen
    i tried, as suggested by sridhar,Alejandro López,Rich Heilman,
    by writing simple message for the logon language 'EN' but the ehancement SUSR0001 is not triggering  and in the include i added some message type.
    can u please check and send me how to execute it
    please give me reply as early as possible.
    regards
    kiran

    Hi Kiran,
    Go to enhancement SUSR0001 ... then go to Components...
    Double Click on EXIT_SAPLSUSF_001 ....Double Click on ZXUSRU01....
    Be Careful. sy-langu will be E, so add this code in the end.
    IF SY-LANGU = 'E'.
        MESSAGE ' YOU HAVE LOGGED IN ENGLISH' TYPE 'I'.
    ENDIF.

  • Prevent that error messages are displayed twice

    Hi All!
    How can I prevent that error messages are displayed twice.
    The FuBa is called at the backend more than one time (at least twice)
    therefore I get every message twice.
    Regards
    sas

    Sas-
    I'm not sure if I understood your problem. Are you saying that you have a service which you call in a loop, and display the error message in the loop as well? If so an option would be to have a [HashMap|http://java.sun.com/j2se/1.4.2/docs/api/java/util/HashMap.html] where the key is the error message id, and the value is the error message. In the loop check if the error message id returned by your service already exists in the map and add it only if absent. Then after your loop is complete use the MessageManager to display your consolidated error messages.
    Cheers-
    Atul

  • Throw Exception message is displayed twice.

    Hi all,
    In my java class based on a condition, I am throwing an exception. In runtime the exception message is displayed twice. I am sure that my code is gettign executed only once.
    Anyones help is greatly appreciated.
    Thanks in advance
    prabhakar

    Hi all,
    In my java class based on a condition, I am throwing
    an exception. In runtime the exception message is
    displayed twice. I am sure that my code is gettign
    executed only once.
    Anyones help is greatly appreciated.
    Thanks in advance
    prabhakarPlease be a little more explicit about what you're doing, what you expect to happen, and what you actually observe.
    Please post a short, concise, executable example of what you're trying to do. This does not have to be the actual code you are using. Write a small example that demonstrates your intent, and only that. Wrap the code in a class and give it a main method that runs it - if we can just copy and paste the code into a text file, compile it and run it without any changes, then we can be sure that we haven't made incorrect assumptions about how you are using it.
    Post your code between [code] and [/code] tags as described in Formatting Help on the message entry page. Cut and paste the code, rather than re-typing it (re-typing often introduces subtle errors that make your problem difficult to troubleshoot). Please preview your post when posting code.
    Please assume that we only have the core API. We have no idea what SomeCustomClass is, and neither does our collective compiler.
    Help us help you solve your problem.

  • How to display a popup message in query (through process chain)

    Hi Gurus,
    I need your help.
    I have an input query that triggers an event (through a button) and runs a process chain.
    I would like to show a popup message to inform the user when the process chain is over.
    Using function modules I've been able to show popup messages in the workbench, but I want to display this message directly in Bex Analyzer 7.0.
    Thanks
    Gabbo

    Hi,
    I'm also looking for a solution to display a custom message in the Bex Analyser at logon.
    Using function module in the logon user-exit works but only when loggin to the workbench.
    I don't want to use SM02 (which works in both cases) because I need to display a variable message depending on the user.
    If someone has an idea, I'll really appreciate.
    Best regards and happy New Year to all of you.

  • Error Message Displaying the status Bar not like popup message

    Hi all,
    My Requirement is while creating  invoice if pricing conditons is repeted , system should thorough the error message like (uplicate Condition Types Are Not Possible  in the status Bar but Im getting poup Error message So I want to display the same message in the status Bar.
    Please Help me any one.
    Regards,
    Prathap

    I dont want to Display the popup, I want to Display in Status Bar as a Error Message.
    Like this .
    If I put  message type 'E' its Displaying popup message , MESSAGE ' Duplicate Condition Types Are Not Possible.' TYPE 'E'.
    If I Put messge type 'I' its Displaying in Status Bar .
    Regards,
    Prathap
    Edited by: giri prathap on Sep 13, 2011 12:35 PM

  • To display a popup message alongwith ALV grid

    Hi Experts,
    I have a requirement where I need to display data using ALV Grid. Also, in case there are any errors encountered during the data extraction I need to inform the user about it by using either a popup message or a status message stating that he needs to check the error log. To display the error log I have provided a push button which will take the user to another screen where he can see all the errors encountered.
    Can anyone please let me know as to how to accomplish the task of displaying a status message alongwith a ALV grid display?
    Looking forward to your reply.
    -Warm regards,
    Prajakta K.

    use exception handling and pop up.........
    try following in grid..
    *--Exception handling
    ENDIF .
    ENDIF .
    WHEN 'EU' .
    READ TABLE gt_list INDEX ls_selected_row-row_id .
    IF sy-subrc = 0 .
    CALL FUNCTION 'ZPOPUP_CONV_CURR_AND_DISPLAY'
    EXPORTING monun = 'EU'
    quant = gt_list-paymentsum.
    ENDIF .
    ENDCASE .
    ENDFORM .

  • Display popup message on SRM portal

    Hi,
    I need to display a popup message on the SRM portal while doing a PO confirmation. Can you please guide me how to do it?
    Do I need to modify the templates or can it be done using a BADI?
    Thanks in advance.

    Hi,
    Try using CHANGE badi.
    See these related threads also for more pointers:
    Error in pop up (dialog box)
    Customized Pop-up window in Shopping Cart
    POPUP window in shopping cart during Order
    BR,
    Disha.

  • Display popup messages

    hi,
    i am using adf11g,jdeveloper 11g.in form i drag and drop one vo.
    in that form,for one attribute which is used as LOV,i have written valuechangelistener method.
    in that method i wrote some code for validaiton.when validaiton occur i am able to show popup messages regarding particular error.
    when any validaiton occur,popup message is coming,but my data is partially submitting to form after showing that error message.
    it should not submitted to form in case of any error.
    please give me the solution.
    IN JSFF page
    <af:panelFormLayout id="pfl8" fieldWidth="100" labelWidth="150"
    binding="#{GLPolicyBean.bindFormEvent}">
    <af:inputListOfValues id="GlstpAcDesc"
    popupTitle="Search and Select: #{bindings.GlstpAcDesc.hints.label}"
    value="#{bindings.GlstpAcDesc.inputValue}"
    label="#{bindings.GlstpAcDesc.hints.label}"
    model="#{bindings.GlstpAcDesc.listOfValuesModel}"
    required="#{bindings.GlstpAcDesc.hints.mandatory}"
    columns="#{bindings.GlstpAcDesc.hints.displayWidth}"
    shortDesc="#{bindings.GlstpAcDesc.hints.tooltip}"
    autoSubmit="true"
    partialTriggers="GlstpGlCode"
    valueChangeListener="#{GLPolicyBean.glACDescChanged}">
    <f:validator binding="#{bindings.GlstpAcDesc.validator}"/>
    </af:inputListOfValues>
    </af:panelFormLayout>
    in glpolicybean.java
    public void glACDescChanged(ValueChangeEvent valueChangeEvent) throws TransactionException{
    // Add event code here...
    System.out.println("account desc new value----------->"+valueChangeEvent.getNewValue().toString());
    String accDesc=valueChangeEvent.getNewValue().toString();
    System.out.println("account description1----------->"+accDesc);
    System.out.println("account desc old value----------->"+valueChangeEvent.getOldValue());
    ADFUtils.setBoundAttributeValue("GlstpGlSubcd", "");
    XBSystemMastersServiceImpl systemImpl=(XBSystemMastersServiceImpl)ADFUtils.getDCBindingContainer().getDataControl().getDataProvider();
    ViewObjectImpl glPolicyAddVO=systemImpl.getGLPolicyAddVO1();
    try {
    for (Row row : glPolicyAddVO.getAllRowsInRange()) {
    String accDesc1 = (String)row.getAttribute("GlstpAcDesc");
    System.out.println("account description1----------->"+accDesc1);
    if (accDesc.equals(accDesc1)) {
    throw new TransactionException("A/C Desc already entered for this setup");
    }catch (TransactionException e) {
    JsfUtils.addContextMessage(JsfUtils.getStringFromBundle("A/C Desc already entered for this setup"),FacesMessage.SEVERITY_WARN); }
    thanks in advance,
    Edited by: sravanthi on Dec 14, 2011 6:12 AM

    Hi,
    Try using validator.
    See
    http://docs.oracle.com/cd/E17904_01/apirefs.1111/e12419/tagdoc/af_inputListOfValues.html

  • How to display Popup message in ABAP Web Dynpro

    Hi All,
    Is it possible to display popup messages like SAP to collect information from the user? is it possible to display information messages like SAP? If possible, Please let me know how to handle in Web Dynpro.
    Thanks & Regards,
    IA Kumar.

    Agree with the two firend on my head :).
    you can find a demo from:   SWDP_TEST&#65288;package&#65289;-->   WDR_TEST_POPUPS also.
    I have a lazy idea, two step:
    1. create a popup function module;
    2.call the function module;
    function module:--Begin--
    FUNCTION ZFUNM_CONFIRM .
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(P_API) TYPE REF TO  IF_WD_VIEW_CONTROLLER
    *"     REFERENCE(P_CMP_API) TYPE REF TO  IF_WD_COMPONENT
      DATA:
        L_WINDOW_MANAGER      TYPE REF TO IF_WD_WINDOW_MANAGER,
        L_CMP_API             TYPE REF TO IF_WD_COMPONENT,
        L_API_MAIN            TYPE REF TO IF_WD_VIEW_CONTROLLER,
        L_POPUP               TYPE REF TO IF_WD_WINDOW,
        L_TEXT                TYPE STRING_TABLE.
       wd_this               type ref to IF_MAIN,
       wd_comp_controller    TYPE REF TO IG_COMPONENTCONTROLLER.
       l_api_main = wd_this->wd_get_api( ).
    l_cmp_api = wd_comp_controller->wd_get_api( ).
      L_WINDOW_MANAGER = P_CMP_API->GET_WINDOW_MANAGER( ).
      APPEND 'POPUP text' TO L_TEXT.
      L_POPUP = L_WINDOW_MANAGER->CREATE_POPUP_TO_CONFIRM(
                  TEXT                   =  L_TEXT
                  BUTTON_KIND            = 4
                  MESSAGE_TYPE           = 1
                  CLOSE_BUTTON           = ''
                  WINDOW_TITLE           = 'messagebox Title'
                 WINDOW_LEFT_POSITION   = L_CONF_CONTEXT-WINDOW_LEFT_POSITION
                 WINDOW_TOP_POSITION    = L_CONF_CONTEXT-WINDOW_TOP_POSITION
                 WINDOW_POSITION        = L_CONF_CONTEXT-WINDOW_POSITION
                 WINDOW_WIDTH           = L_CONF_CONTEXT-WINDOW_WIDTH
                 WINDOW_HEIGHT          = L_CONF_CONTEXT-WINDOW_HEIGHT
      L_POPUP->SUBSCRIBE_TO_BUTTON_EVENT(
              BUTTON             = IF_WD_WINDOW=>CO_BUTTON_YES
              ACTION_NAME        = 'YES'
              ACTION_VIEW        = P_API
              IS_DEFAULT_BUTTON  = ABAP_TRUE ).
      L_POPUP->SUBSCRIBE_TO_BUTTON_EVENT(
              BUTTON             = IF_WD_WINDOW=>CO_BUTTON_NO
              ACTION_NAME        = 'NO'
              ACTION_VIEW        = P_API
              IS_DEFAULT_BUTTON  = ABAP_FALSE ).
      L_POPUP->OPEN( ).
    ENDFUNCTION.
    function module:--End--
    call the function module  Begin----
    METHOD ONACTIONDELETE .
      DATA:
        L_API                               TYPE REF TO IF_WD_VIEW_CONTROLLER,
        L_CMP_API                           TYPE REF TO IF_WD_COMPONENT,
        NODE_ZTAB_PROJ                      TYPE REF TO IF_WD_CONTEXT_NODE,
        ELEM_ZTAB_PROJ                      TYPE REF TO IF_WD_CONTEXT_ELEMENT,
        STRU_ZTAB_PROJ                      TYPE IF_ZV_PROJ_DISPLAY=>ELEMENT_ZTAB_PROJ,
        SELECTED_ELEM                       TYPE  WDR_CONTEXT_ELEMENT_SET .
      navigate from <CONTEXT> to <ZTAB_PROJ> via lead selection
      L_API = WD_THIS->WD_GET_API( ).
      L_CMP_API = WD_COMP_CONTROLLER->WD_GET_API( ).
      CALL FUNCTION 'ZFUNM_CONFIRM'
        EXPORTING
          P_API     = L_API
          P_CMP_API = L_CMP_API.
      IF WD_THIS->A_DEL = ''.
        EXIT.
      ENDIF.
      NODE_ZTAB_PROJ = WD_CONTEXT->GET_CHILD_NODE( NAME = IF_ZV_PROJ_DISPLAY=>WDCTX_ZTAB_PROJ ).
      IF ( NODE_ZTAB_PROJ IS INITIAL ).
        EXIT.
      ENDIF.
      ELEM_ZTAB_PROJ = NODE_ZTAB_PROJ->GET_LEAD_SELECTION( ).
      ELEM_ZTAB_PROJ->GET_STATIC_ATTRIBUTES(
        IMPORTING
          STATIC_ATTRIBUTES = STRU_ZTAB_PROJ ).
      DELETE FROM ZTAB_PROJ
      WHERE COMCODE = STRU_ZTAB_PROJ-COMCODE
        AND PROJID  = STRU_ZTAB_PROJ-PROJID.
      WD_THIS->ONACTIONSELECT(
        WDEVENT = WDEVENT                        " Ref to cl_Wd_Custom_Event
    LOOP AT selected_elem .
    ENDLOOP.
      ELEM_ZTAB_PROJ
      @TODO handle not set lead selection
      alternative access  via index
      Elem_Ztab_Proj = Node_Ztab_Proj->get_Element( Index = 1 ).
      @TODO handle non existant child
      if ( Elem_Ztab_Proj is initial ).
      endif.
      get all declared attributes
    ELEM_ZTAB_PROJ->GET_STATIC_ATTRIBUTES(
       IMPORTING
         STATIC_ATTRIBUTES = STRU_ZTAB_PROJ ).
    ENDMETHOD.
    call the function module  End----

  • After upgrading to os josemite cs4 applications will not run. Message displayed that I need to install the legacy java SE 6 runtime. Is this necessary to fix the application loading?

    after upgrading to os josemite cs4 applications will not run. Message displayed that I need to install the legacy java SE 6 runtime. Is this necessary to fix the application loading?

    Found the answer:
    Java for OS X 2014-001 includes installation improvements, and supersedes all previous versions of Java for OS X. This package installs the same version of Java 6 included in Java for OS X 2013-005.
    installed above and it now works
    Blessings

  • 5800 Keeps Displaying Popup "Message: number"

    Hi,
    I've had a 5800 for nearly a year now, and love it. However, for the past 2 days, its been doing something weird, and I'm not sure why. Randomly, and for no reason at all, it will get a popup message on the screen which says 'Message: 0771xxxxx' (my mobile number). Anyone know why? I've not asked it to display, or request my number from Vodafone or anything, this just randomly pops up!
    Any suggestions on how to stop this?
    Cheers
    Ben

    does ure country have something like .. STOP or STOP ALL and send to a specific gateway? .. if so, try tat, u can disable any notification msgs from ure telco.
    I'm an Xploit - Please feel free to post your issues, feedbacks in this discussion forum and I'll do my level best to help, otherwise my knowledged friends whom are around willing to help you. Thank you !

Maybe you are looking for

  • SPSS not working... please help!

    Hi! I'm desperately looking for help... I really need SPSS to work on my mac! I have a new mac with the following specs: Processor  2.5 GHz Intel Core i5 Memory  4 GB 1333 MHz DDR3 Graphics  AMD Radeon HD 6750M 512 MB Software  Mac OS X Lion 10.7.2 (

  • Smartforms : Repeation of data on the smartforms, but in ABAP is correct.

    Hi all, I am fetching the data on the smartforms by ABAP program, but when it is comming on the smartforms, it is repeat. In the ABAP program, i have a internal table which is contain the some fields, and in the smartforms, i am using the table ->Pro

  • Reduce File Size doesn't work!

    When I click the (new) option 'Reduce File Size' in Keynote '09 the app prompts a estimated new size which is smaller than the current size. When I click on 'Reduce' the app doesn't do anything except for showing an error report which tells me someth

  • Where is the folders for weblogic as BI server

    anyone can help me,pls. P6 R8: I have installed the report database(staging ,ODS and star),and finished BI server with weblogic. now what should i do if i want to see how the P6 works with reports. (in p6 web, I can see the reports menu ) following t

  • Authorization Control on Transaction Type Fields

    Hi Friends, I have created 4 customised fields in Complaint Transaction Type. Lets say A1,A2 and B1,B2. Now the requirement is to control the fields based on roles or users. Is this Possible? if yes how? I mean UserA will be able to see and edit fiel