JCombo values disappear on single click

I have a JCombo box for some tree nodes with some values which are attribute values in my xml.
The combo box value disappears on a single click when the attribute is not present for a particular node in xml.
The problem is the absence of the attribute......
Is there any way I can work around this?

The problem is the absence of the attribute......
I beg to differ - the problem is not in the xml but in your code. However, since you have not posted any code, it is a little difficult to help you.

Similar Messages

  • Outlook 2007 Search emails disappear after single-click

    Greetings,
    I have at least two users that have a peculiar problem. For each, when they perform a search of their emails via Outlook 2007 (against Exchange 2010) and receive the results, upon clicking on some emails, the email clicked on will disappear from the search
    results instantly. There is almost no time for the user to read the email after selecting it from the search results because it disappears so fast. These are not unread emails and it doesn't happen to all emails they click on within the search results so I
    am leaning away from there being a filter applied.
    If they re-run the search, the emails show back up again so it doesn't appear that they are truly deleted in any way. The users are not using Cached Exchange Mode.
    Again, this is only happening for emails that show up as a result of a search, not in the users' regular inbox or other folders.
    Thanks!

    Hi,
    It doesn't sound like an expected experience in Outlook and I didn't reproduce it. Just confirm, are the users using Instant Search or Advanced Find? Please also confirm if the same problem persists on OWA.
    I doubt if it's caused by any 3rd-party add-ins, we can start Outlook in Safe Mode:
    Press Win + R and type “outlook.exe /safe” in the blank box, then press Enter.
    If there’s no problem when searching in Safe Mode, disable the suspicious add-ins to verify which add-ins caused this issue.
    We can also have the users start Outlook with the switch "/cleanviews", this will reset all custom views and change back to the default view, test if this helps.
    Regards,
    Melon Chen
    TechNet Community Support

  • SharePoint JS grid paging, capturing values using single click event

    Hi 
    I need some help with getting the following work using the SharePoint JS grid, the reference articles available are not sufficient to continue work. 
    1) Setting up Paging
    2) Capturing individual field values on single click or any other relevant event.
    Sample code or references would be of great help.
    References
    http://msdn.microsoft.com/en-us/library/office/ee535898(v=office.14).aspx
    http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010programming.aspx?ID=d6e32632-d0e4-4337-95c3-c2d06fc3ef86
    http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010programming.aspx?ID=5c952c6d-b2be-4563-b805-b00e7c8136ff
    http://msdn.microsoft.com/en-us/library/ff681039.aspx
    http://social.msdn.microsoft.com/Forums/en-US/a439fcc2-42de-45ca-9f74-935498e0d246/js-grid-oncelleditcompleted-event-infinitely-fired?forum=project2010custprog  
    Thanks,
    Sharat
    Sharat Menon (Sharepoint Developer)

    Hi,
    Please try to use PagingFilter class to achieve paging in JS Grid.
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.jsgrid.pagingfilter.aspx
    Here is a similar thread for you to take a look at:
    https://go4answers.webhost4life.com/Example/sharepoint-jsgrid-2692.aspx
    If you want to implement more complex functionalities for a list, I suggest you use SPGridView to achieve it.
    Best regards
    Dennis Guo
    TechNet Community Support

  • How to make default value in form input field disappear on user click

    I have an HTML input tag with a default value.
    How can I have that value disappear when user begins to type?
    Form is here:
    http://www.kardsbykaren.us/10pack.php
    Happy Holiday and thanks.

    Have a look here http://www.matiasmancini.com.ar/ajax-jquery-validation-html5-form.html
    Gramps

  • Single click in abap objects

    hi,
        can any1 pls explain me the single click event LINK_CLICK in abap object.
    does this single click event mean that if i click anywhere on my alv report it will trigger the event.
       pls explain me about this LINK_CLICK event in details pls

    answered the similar question last week. You can see here Event
    Link_click or ALV_Object Model HYPERLINK.
    This example demonstrates how to use a Hiperlink field in ALV. These example was based on 'SALV_DEMO_TABLE_COLUMNS' that contains Hiperlink, icon, Hotspot...
    The Code is:
    REPORT zsalv_mar NO STANDARD PAGE HEADING.
          CLASS lcl_handle_events DEFINITION
    CLASS lcl_handle_events DEFINITION.
      PUBLIC SECTION.
        METHODS:
          on_link_click FOR EVENT link_click OF cl_salv_events_table
            IMPORTING row column.
    ENDCLASS.                    "lcl_handle_events DEFINITION
          CLASS lcl_handle_events IMPLEMENTATION
    CLASS lcl_handle_events IMPLEMENTATION.
      METHOD on_link_click.
        DATA: l_row_string TYPE string,
              l_col_string TYPE string,
              l_row        TYPE char128.
        WRITE row TO l_row LEFT-JUSTIFIED.
        CONCATENATE text-i02 l_row INTO l_row_string SEPARATED BY space.
        CONCATENATE text-i03 column INTO l_col_string SEPARATED BY space.
        MESSAGE i000(0k) WITH 'Single Click' l_row_string l_col_string.
      ENDMETHOD.                    "on_single_click
    ENDCLASS.                    "lcl_handle_events IMPLEMENTATION
    DATA: gr_events TYPE REF TO lcl_handle_events.
    TYPES: BEGIN OF g_type_s_outtab.
    INCLUDE TYPE alv_tab.
    TYPES:   t_hyperlink TYPE salv_t_int4_column,
           END   OF g_type_s_outtab.
    DATA: gt_outtab TYPE STANDARD TABLE OF g_type_s_outtab.
    DATA: gr_table   TYPE REF TO cl_salv_table.
    TYPES: BEGIN OF g_type_s_hyperlink,
             handle    TYPE salv_de_hyperlink_handle,
             hyperlink TYPE service_rl,
             carrid    TYPE s_carrid,
           END   OF g_type_s_hyperlink.
    DATA: gt_hyperlink TYPE STANDARD TABLE OF g_type_s_hyperlink.
    SELECTION-SCREEN BEGIN OF BLOCK gen WITH FRAME.
    PARAMETERS: p_amount TYPE i DEFAULT 30.
    SELECTION-SCREEN END OF BLOCK gen.
    START-OF-SELECTION.
      PERFORM select_data.
      PERFORM display.
    *&      Form  select_data
          text
    -->  p1        text
    <--  p2        text
    FORM select_data .
      DATA: line_outtab  TYPE g_type_s_outtab,
            ls_hype      TYPE g_type_s_hyperlink,
            lt_hyperlink TYPE salv_t_int4_column,
            ls_hyperlink TYPE salv_s_int4_column,
            v_tabix      TYPE sytabix.
      SELECT *
        FROM alv_tab
        INTO CORRESPONDING FIELDS OF TABLE gt_outtab
            UP TO p_amount ROWS.
      LOOP AT gt_outtab INTO line_outtab.
        v_tabix = sy-tabix.
        ls_hype-handle    = sy-tabix.
        ls_hype-hyperlink = line_outtab-url.
        ls_hype-carrid    = line_outtab-carrid.
        INSERT ls_hype INTO TABLE gt_hyperlink.
        ls_hyperlink-columnname = 'URL'.
        ls_hyperlink-value      = sy-tabix.
        APPEND ls_hyperlink TO lt_hyperlink.
        line_outtab-t_hyperlink = lt_hyperlink.
        MODIFY gt_outtab FROM line_outtab INDEX v_tabix.
        CLEAR line_outtab.
        CLEAR lt_hyperlink.
        CLEAR ls_hyperlink.
      ENDLOOP.
    ENDFORM.                    " select_data
    *&      Form  display
          text
    -->  p1        text
    <--  p2        text
    FORM display .
      TRY.
          cl_salv_table=>factory(
            IMPORTING
              r_salv_table = gr_table
            CHANGING
              t_table      = gt_outtab ).
        CATCH cx_salv_msg.                                  "#EC NO_HANDLER
      ENDTRY.
      DATA: lr_functions TYPE REF TO cl_salv_functions_list.
      lr_functions = gr_table->get_functions( ).
      lr_functions->set_default( abap_true ).
    *... set the columns technical
      DATA: lr_columns TYPE REF TO cl_salv_columns_table,
            lr_column  TYPE REF TO cl_salv_column_table.
      lr_columns = gr_table->get_columns( ).
      lr_columns->set_optimize( abap_true ).
    *... §4.7 set hyperlink column
      DATA: lr_hyperlinks TYPE REF TO cl_salv_hyperlinks,
            ls_hyperlink  TYPE g_type_s_hyperlink.
      DATA: lr_functional_settings TYPE REF TO cl_salv_functional_settings.
      TRY.
          lr_columns->set_hyperlink_entry_column( 'T_HYPERLINK' ).
        CATCH cx_salv_data_error.                           "#EC NO_HANDLER
      ENDTRY.
      TRY.
          lr_column ?= lr_columns->get_column( 'URL' ).
          lr_column->set_cell_type( if_salv_c_cell_type=>link ).
          lr_column->set_long_text( 'URL' ).
        CATCH cx_salv_not_found.                            "#EC NO_HANDLER
      ENDTRY.
      lr_functional_settings = gr_table->get_functional_settings( ).
      lr_hyperlinks = lr_functional_settings->get_hyperlinks( ).
      LOOP AT gt_hyperlink INTO ls_hyperlink.
        TRY.
            lr_hyperlinks->add_hyperlink(
              handle    = ls_hyperlink-handle
              hyperlink = ls_hyperlink-hyperlink ).
          CATCH cx_salv_existing.                           "#EC NO_HANDLER
        ENDTRY.
      ENDLOOP.
      DATA: lr_events TYPE REF TO cl_salv_events_table.
      lr_events = gr_table->get_event( ).
      CREATE OBJECT gr_events.
      SET HANDLER gr_events->on_link_click FOR lr_events.
      gr_table->display( ).
    ENDFORM.                    " display

  • Closing the browser with a single click from form

    Hi All,
    Will u please help me anyone how to close the browser with a single click pressing exit button or closing the cross buton.
    Arif

    Always start with a search on this forum
    Solution
    Instructions:
    1. Using an html or text editor, create an html file with the following code:
    <html>
    <head>
    <script type="text/javascript">
    // Create a ref to the original method
    var windowClose = window.close;
    // Re-implement window.open
    window.close = function ()
    window.open("","_self");
    windowClose();
    </script>
    </head>
    <body onload="window.close()">
    <!-- The following text added in case users have disabled Java Scripting -->
    <!-- or if browser fails to close for some other reason. -->
    Your browser or system settings have prevented this window from closing.
    In order to ensure the highest level of security,
    please close/exit this browser session immediately.
    </body>
    </html> 2. Save the html file with the following name: close.htm
    3. Store this file on the middle tier, in a directory which has an associated virtual path configured in the HTTP Server. You can use a pre-existing path or create a new one. For example, in version 10.1.2 you could copy the html file to this directory:
    ORACLE_HOME\tools\web\html
    The above virtually maps to the following by default:
    /forms/html/
    For information on creating a virtual path for the HTTP Server, please refer to the HTTP Server Administrator's Guide.
    4. In the Forms application, choose the desired trigger where you would like to execute the closing of the browser. Remember that by executing this code, the application will be ungracefully terminated, therefore it is recommended that the following code only be entered in the Forms POST-FORM trigger.
    web.show_document ('/forms/html/close.htm','_self');
    5. Compile and run the form.
    Upon exiting the form, the web browser will call close.htm resulting in the browser closing.
    This has been successfully tested using IE7 on XP-SP3. Although this code will work with other browsers, for example FireFox 3, a configuration change in FF must be made in order for it to work correctly.
    Manual Steps Required for FireFox:
    1. Open one instance of the FireFox browser.
    2. In the address bar, enter the following and press Enter on the keyboard:
    about:config
    3. In the list presented, locate the following parameter:
    dom.allow_scripts_to_close_windows
    4. Double-click on this parameter to set its value to TRUE
    5. Exit the browser
    Edited by: BaiG on Mar 30, 2010 12:23 PM

  • Display values of a single field in a multiple rows in a table region

    Hi Tech-Gurus,
    I want to display values of a single field ( which is in a table region) in multiple rows and also need to restrict the values from decimal number. If i click save, then it will throw exception "Decimal not allowed".
    xxxxxx
    yyyyyy
    Reg.No
    1234
    5678
    7654
    I need to display the values of REG.NO in different rows like,
    1234
    5678
    7654
    and also need to validate as well against Decimal values.
    Please help me with the code how i will iterate ?

    Hi,
    I am assuming you are talking about displaying substrings from the Reg No in different rows. For this you would need to write a query which identifies the substrings and creates a separate row for each (ensure you choose values for all other columns in the table row). Kindly let me know if the understanding is incorrect.
    To validate against decimal value you can use the java code by checking the difference of the number and the number on which modulus has been applied. Hope that helps.
    Regards
    Sumit

  • Enabling screen for single click in OOABAP alvs

    Hello All,
    I have a requirement where I am displaying ALV grid in screen 100. In this grid I have defined double click event in which I call 101 screen (with coordinates i.e. starting at 10 10) which displays another grid. The problem here is that in screen 101 the buttons and screen fields are not responding to single click. I mean that for every action (change the cell value in 101 screen ot selecting a row or clicking on pushbutton in this 101 screen) I have to click twice. But I want all this actions to be performed with single click. If anyone knows the solution to know please let me know.
    Note: <b>Helpful answers will be duly rewarded.</b>

    Please do not make duplicate postings.
    Rob

  • Regarding single click in alv's

    hi guru's
    i have a small problem.
    iam using a alv grid display. after clicking on the row in alv , i need to navigate to a transaction mm03. 
    My problem is the navigation is happening in double-click. how can i use the single click option.
    my program consists of:
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = sy-repid
          i_structure_name       = l_c_struc
          i_inclname             = sy-repid
        CHANGING
          ct_fieldcat            = fp_l_i_fieldcat
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program      = sy-cprog
          i_callback_user_command = l_c_user_command
          i_grid_title            = text-004
          is_layout               = fp_wa_layout
          it_fieldcat             = fp_i_fieldcatalog
          i_save                  = l_c_a
          it_events               = fp_i_event
        TABLES
          t_outtab                = fp_i_makt
    FORM at_user_command USING fp_ucom     TYPE sy-ucomm
                               fp_selfield TYPE slis_selfield.  "#EC *
        CASE fp_ucom.
          WHEN '&IC1'.
            READ TABLE i_makt INTO wa_final
                                        INDEX fp_selfield-tabindex.
            IF sy-subrc EQ c_0.
              SET PARAMETER ID 'MAT' FIELD wa_final-matnr.
              CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
            ENDIF.
          WHEN OTHERS.
            MESSAGE i009.
        ENDCASE.
    ENDFORM.                  
    please give me a detailed description as iam new to abap programming.

    HI USE THIS EXAMPLE ,
    use the hot spot for this option.
    *& Report  Z_TEST001
    REPORT  Z_TEST001.
    TYPE-POOLS:  slis.
    tables: rseg.
    DATA: begin of TAB_ARSEG occurs 0.
            INCLUDE STRUCTURE RSEG.
    DATA: END OF TAB_ARSEG.
    DATA: T_FIELDCAT TYPE slis_t_fieldcat_alv.
    DATA: c_user_command TYPE slis_formname VALUE 'USER_COMMAND'.
    START-OF-SELECTION.
    <<<  YOUR CODE  >>> ***********************
    select * from rseg into table tab_arseg .
    END-OF-SELECTION.
    perform build_fieldcat.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
        i_buffer_active                   = space
        i_callback_program                = sy-repid
       I_CALLBACK_USER_COMMAND            = c_user_command
      I_STRUCTURE_NAME                  =
      IS_LAYOUT                         =
       IT_FIELDCAT                        = T_FIELDCAT[]
      TABLES
        T_OUTTAB                          = TAB_ARSEG
    EXCEPTIONS
       PROGRAM_ERROR                      = 1
       OTHERS                             = 2.
    IF SY-SUBRC ne 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    **&      Form  USER_COMMAND
    FORM USER_COMMAND USING F_UCOMM LIKE SY-UCOMM
                    I_SELFIELD TYPE SLIS_SELFIELD.
      DATA: F_SUBRC LIKE SY-SUBRC,
            s_arseg like tab_arseg.
      READ TABLE tab_arseg INDEX i_selfield-tabindex INTO s_arseg.
        CASE F_UCOMM.
            WHEN '&IC1'.
            CASE i_SELFIELD-SEL_TAB_FIELD.
            WHEN 'TAB_ARSEG-BELNR'.
              CHECK NOT S_ARSEG-BELNR IS INITIAL.
              SET PARAMETER ID 'RBN' FIELD S_ARSEG-BELNR.
              SET PARAMETER ID 'GJR' FIELD S_ARSEG-GJAHR.
              CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
            ENDCASE.
        ENDCASE.
    ENDFORM.
    **&      Form  build_fieldcat
    FORM build_fieldcat .
    DATA: FIELDCAT TYPE SLIS_FIELDCAT_ALV.
      CLEAR FIELDCAT.
      FIELDCAT-FIELDNAME     = 'BELNR'.
      FIELDCAT-TABNAME       = 'TAB_ARSEG'.
      FIELDCAT-REF_TABNAME   = 'RSEG'.
      FIELDCAT-REF_FIELDNAME = 'BELNR'.
      fieldcat-hotspot   = 'X'.
      FIELDCAT-COL_POS       = 1.
      APPEND FIELDCAT TO t_fieldcat.
      CLEAR FIELDCAT.
      FIELDCAT-FIELDNAME     = 'GJAHR'.
      FIELDCAT-TABNAME       = 'TAB_ARSEG'.
      FIELDCAT-REF_TABNAME   = 'RSEG'.
      FIELDCAT-REF_FIELDNAME = 'GJAHR'.
      FIELDCAT-COL_POS       = 2.
      APPEND FIELDCAT TO t_fieldcat.
    ENDFORM.                    " build_fieldcat
    REGARDS,
    VENKAT.

  • Different WT values in a single field in Payslip.

    Hi,
    1. We need to group together 2 or 3 deduction wage types amount as a single field and bring into payslip, how to bring this value in a single field.
    2. How to bring values of adjustment wage types in payslip if in case adjustments comes not a statutory field , thi sfield should be dynamic, if there there is any adjustment the name and WT amount should reflect in Payslip.
    SD

    Hi SD,
    You can see a good example in standard form EF01 for molga 04.
    If you go to the single fields section in trx PE51, there is a field at the bottom:
    Tot.Deduct.!
      BETRG_____!
    double click on betrg:
    It shows:
    Table            ZRT
    Table field      BETRG
    Identifier      DS01
    Now to see how DS01 is made go in trx PE51 to the cumulation ids section:
    double click on DS01. you will see all the summands:
    RT     **11     Forms - Discounts. Person
    RT     **12     Forms - Discounts. Person
    RT     **13     Forms - Discounts. Social
    RT     **14     Forms - Discounts. Tax de
    This means that all WTs that in table T512W are assigned to ev-class 11,12,13,14 will add to DS01.
    But you can add individual WTs too. e.g. double click on cumulator DE01 and you will see that /552 is added directly.
    BR,
    Carlos Martinez Escribano.

  • Uncontrollable mouse button events (single clicks are doubled?)

    Hello, folks--
    I am having a mouse problem that is driving me up the wall. The mouse in question is an optical IM/PS2 mouse--it is a cheap no-name product, but has worked fine for 2 or 3 years. The trouble started maybe six weeks ago when I did a full upgrade. The most important change that I know of in that upgrade was the introduction of HAL, so I strongly suspect that the cause of the problem is related to my HAL configuration, or perhaps a conflict between that and my X config. But anyway, the symptoms I've been seeing include (but are not limited to):
      * Firefox: a single click selects an entire paragraph
      * Thunderbird: a single click in the message list opens the message in a new window
      * Xfwm: a single click on the "windowshade" button collapses the window, then expands it again
        (or vice versa, depending on the initial state)
      * Xfwm: when dragging a window quickly, the mouse "loses its grip"--i.e. the window stops moving even
        though I am still moving the mouse
    None of these things happens every time, but they all happen often. The problems seem most severe in Firefox, but given that similar things happen elsewhere, I would imagine that's due to Firefox's complex event handling exposing a pervasive problem, rather than any kind of application-specific issue.
    With the possible exception of the window-dragging issue, all the above symptoms are consistent with a problem I have seen reported elsewhere, that single clicks are being read as double clicks. However, the only clearly applicable solution I've seen for that issue is to remove all mouse configuration from Xorg.conf, leaving it up to HAL. I tried that and it didn't seem to change anything. However, at the same time I purged the mouse from Xorg.conf, I created an FDI file for the mouse in /etc/hal/fdi/policy. I wonder now if that was necessary--there was no FDI for the mouse before, but perhaps there doesn't really need to be one if you aren't applying any special settings? Dunno, I don't understand much about HAL yet.
    I have tried a couple of other things: first, I set the double click speed to the minimum using the Xfce Mouse Settings applet (BTW, I suppose this applet is a front-end to some shell command or config file, but what?). That seems to help, but only a little. Second, if I use the mouse in an unnaturally precise manner (e.g., when single-clicking, I click as quickly as possible and lift my finger all the way off the button), the problems mostly, but not entirely, disappear.
    Any suggestions?

    mgushee wrote:
    bernarcher wrote:Sounds like faulty hardware.
    Did you try another mouse by chance?
    Well, no, and I suppose to be thorough I should try that. But I am quite sure that the problem appeared suddenly, and exactly at the time of the upgrade I mentioned.
    Well, it could be that your fdi modification tries to catch the mouse events twice in a row. Perhaps you should post the file.
    Besides: There is are no mouse specific fdi settings in my system. I currently have no idea where the mouse behaviour was defined besides my still old xorg.conf. (I did only activate Option "AutoAddDevices".)

  • Can't single click on groups in email since latest update

    Can't single click on groups in email since latest update

    Firefox now always stores the old session, and you can access it by going to the History menu and selecting "Restore Previous Session"
    If you want Firefox to display the message to save the session, it can be turned back on by changing some preferences.
    # Type '''about:config''' into the location bar and press enter
    # Accept the warning message that appears, you will be taken to a list of preferences
    # Locate the preference '''browser.tabs.warnOnClose''', if its value is set to '''false''', double-click on it to change its value to '''true'''
    # Repeat this for these 3 preferences '''browser.warnOnQuit''', '''browser.warnOnRestart''' and '''browser.showQuitWarning'''
    If you always open the last set of tabs, an alternative approach is this:
    # Click the orange Firefox button, then select options to open the options window
    # Go to the General panel
    # Change the setting "When Firefox starts" to "Show my windows and tabs from last time"

  • Selection on single-click with custom TreeCellEditor

    Hi,
    In a JTree with a custom treecell editor (contains checkbox, label with icon) that overrides abstractcelleditor, selection of nodes does not highlight the selection on a single click. The selection is highlighted on a double click. clicking on the checkbox works fine. any ideas? the treecellrenderer works fine. So if i remove the custom editor and only have the renderer (for checkbox, label and icon) selections are highlighted properly.
    Thanks!

    Ok, came up with a solution - it makes keyboard navigation and mouse-based multiple selection work. Here's the fixed code:
    creating the tree :
    JTree tree = new JTree( root  );
    tree.setUI( new MyTreeUI() );
    tree.setCellRenderer( new OverlayTreeCellRenderer() );
    tree.setCellEditor( new OverlayTreeCellRenderer() );
    tree.setEditable(true);
    tree.getSelectionModel().setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
    tree.setInvokesStopCellEditing( true );
    scrollPane.setViewportView( tree );
    add( scrollPane );the renderer / editor:
      protected static class OverlayTreeCellRenderer extends JPanel implements TreeCellRenderer, TreeCellEditor
        protected Color selBdrColor = UIManager.getColor( "Tree.selectionBorderColor" );
        protected Color selFG = UIManager.getColor( "Tree.selectionForeground" );
        protected Color selBG = UIManager.getColor( "Tree.selectionBackground" );
        protected Color txtFG = UIManager.getColor( "Tree.textForeground" );
        protected Color txtBG = UIManager.getColor( "Tree.textBackground" );
        protected JCheckBox visibleCheckBox = new JCheckBox();
        protected JLabel overlayName = new JLabel();
        protected JCheckBox showLabelCheckBox = new JCheckBox();
        protected LinkedList<CellEditorListener> listeners = new LinkedList<CellEditorListener>();
        protected final ActionListener checkBoxListener = new ActionListener() {
          public void actionPerformed ( ActionEvent ae )
            if ( stopCellEditing() )
              fireEditingStopped();
        protected final MouseListener labelListener = new MouseAdapter() {       
          public void mouseReleased ( MouseEvent e )
            if ( stopCellEditing() )
              fireEditingStopped();
         * Constructor.
        public OverlayTreeCellRenderer ()
          setLayout( new BoxLayout( this, BoxLayout.LINE_AXIS ) );
          visibleCheckBox.setOpaque( false );
          showLabelCheckBox.setOpaque( false );
          add( visibleCheckBox );
          add( overlayName );
          add( showLabelCheckBox );
          setBackground( txtBG );
          setForeground( txtFG );     
          visibleCheckBox.addActionListener( checkBoxListener );
          showLabelCheckBox.addActionListener( checkBoxListener );
          overlayName.addMouseListener( labelListener );
         * Returns the renderer
        public Component getTreeCellRendererComponent ( JTree tree, Object value,
            boolean selected, boolean expanded, boolean leaf, int row,
            boolean hasFocus )
          DefaultMutableTreeNode node = (DefaultMutableTreeNode) value;           
          OverlayDescriptor data = (OverlayDescriptor) node.getUserObject();
          overlayName.setText( data.overlayName );
          visibleCheckBox.setSelected( data.visible );
          showLabelCheckBox.setSelected( data.label );   
          if ( selected )
            setBackground( selBG );
            setForeground( selFG );
          else
            setBackground( txtBG );
            setForeground( txtFG );
          return this;
        // ------------------------------------------------- Cell Editor
        // Returns the editor
        public Component getTreeCellEditorComponent ( JTree tree, Object value,
            boolean isSelected, boolean expanded, boolean leaf, int row )
          return getTreeCellRendererComponent( tree, value, true, expanded, leaf, row, true );
        // Implement the CellEditor methods.
        public void cancelCellEditing ()
        // Stop editing only if the user entered a valid value.
        public boolean stopCellEditing ()
          requestFocusInWindow();
          return true;
        // This method is called when editing is completed.
        // It must return the new value to be stored in the cell.
        public Object getCellEditorValue ()
          return new OverlayDescriptor( overlayName.getText(), showLabelCheckBox.isSelected(), visibleCheckBox.isSelected() );
        // Start editing when the mouse button is clicked.
        public boolean isCellEditable ( EventObject eo )
          return true;
        public boolean shouldSelectCell ( EventObject eo )
          return true;
        // Add support for listeners.
        public void addCellEditorListener ( CellEditorListener cel )
          listeners.add( cel );
        public void removeCellEditorListener ( CellEditorListener cel )
          listeners.remove( cel );
        protected void fireEditingStopped ()
          if ( listeners.size() > 0 )
            ChangeEvent ce = new ChangeEvent( this );
            for ( CellEditorListener l : listeners )
              l.editingStopped( ce );
      }subclass of BasicTreeUI:
       * Fix multiple-selection handling in BasicTreeUI which doesn't appear to work
       * when the tree has a custom editor.
      protected static class MyTreeUI extends BasicTreeUI {   
        protected boolean startEditing ( TreePath path, MouseEvent event )
           * BasicTreeUI startEditing(..) method doesn't handle multiple selection
           * well. This circumvents that for when Ctrl or Shift is held down by
           * first saving the current selection, and then restoring it after calling
           * super.startEditing(..).
          ArrayList<TreePath> selectedPaths = null;
          if ( tree.getSelectionCount() > 0 && event.isControlDown() )
            selectedPaths = new ArrayList<TreePath>( tree.getSelectionCount() + 1 );
            for ( TreePath p : tree.getSelectionPaths() )
              selectedPaths.add( p );
            if ( !tree.isPathSelected( path ) )
              selectedPaths.add( path );
            else
              selectedPaths.remove( path );
          else if ( tree.getSelectionCount() > 0 && event.isShiftDown() )
            int endRow = tree.getRowForPath( path );
            int startRow = tree.getAnchorSelectionPath() == null ? endRow : tree
                .getRowForPath( tree.getAnchorSelectionPath() );
            if ( startRow > endRow )
              int temp = endRow;
              endRow = startRow;
              startRow = temp;
            selectedPaths = new ArrayList<TreePath>( endRow - startRow + 1 );
            for ( int row = startRow; row <= endRow; row++ )
              selectedPaths.add( tree.getPathForRow( row ) );
          boolean val = super.startEditing( path, event );
          if ( selectedPaths != null )
            tree.setSelectionPaths( selectedPaths.toArray( new TreePath[0] ) );
          return val;
      };

  • Apply multiple effects to multiple objects with single click box

    I would like to click on a click box and have one object appear and another object disappear. I guess what I'd like to do is apply effects to multiple objects with a single click box. Is that possible?
    Thank you.

    Welcome to our community
    Sure it can be done but you won't use effects to do it.
    When you insert an object in Captivate, you have an option to enable or disable Visibility. You also have an option to name the object. So you would give the object a meaningful name and clear the Visibility option to "hide" it until needed.
    Then you would create an Advanced Action that would hide some objects and show others.
    After that, you would assign the Advanced Action to a Click Box or a Button or some other event.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Single Click on simple tree node

    Hi Experts,
    I have a problem ,please help me.
    I need event is trigger on single click on node of simple tree.There is event of double click but i need on single click only.
    If you have any test program please forward it also.
    Ankur Garg.

    i dont think for single click you can get any event in simple list... you can make hotspot on by this way single click will trigger the at line-selection event.
    REPORT  ZSPDEXDET LINE-SIZE 200 line-count 19(4).
    TABLES : MAST,STPO,MARA,MARC.
    INCLUDE <SYMBOL>.
    DATA : BEGIN OF I_BOM OCCURS 0.
            INCLUDE STRUCTURE STPOX.
    DATA : END OF I_BOM.
    DATA : BEGIN OF ITAB OCCURS 0,
           STUFE LIKE STPOX-STUFE,
           IDNRK LIKE STPOX-IDNRK,
           WEGXX LIKE STPOX-WEGXX, "NODE NO
           TTIDX LIKE STPOX-TTIDX, "NODE NO WITH PARENTNODE + 1
           VWEGX LIKE STPOX-VWEGX, "NODE NO OF PARENT
           MENGE LIKE STPOX-MENGE,
           SYMBOL,
           END OF ITAB.
    DATA : ITAB1 LIKE ITAB OCCURS 0 WITH HEADER LINE,
           ITAB2 LIKE ITAB OCCURS 0 WITH HEADER LINE.
    DATA : V_PARENTID LIKE STPOX-VWEGX,
           V_WEGXX LIKE STPOX-WEGXX,
           V_STUFE LIKE STPOX-STUFE,
           PREV_STUFE LIKE STPOX-STUFE.
    DATA : V_OFFSET TYPE I VALUE 1,
           V_CONTENT TYPE I,
           TABIX LIKE SY-TABIX,
           V_TABIX LIKE SY-TABIX,
           T_TABIX LIKE SY-TABIX,
           V_SYMBOL,
           V_LINE LIKE SY-TABIX,
           T_INDEX TYPE I.
    DATA :  V_PAGE LIKE SY-PAGNO,
            T_PAGE LIKE SY-PAGNO,
            V_LIN LIKE SY-LILLI.
    PARAMETERS : P_MATNR LIKE MAST-MATNR,
                 P_WERKS LIKE MARC-WERKS.
    PERFORM BOM_EXPLODE.
    ITAB1[] = ITAB[].
    READ TABLE ITAB1 INDEX 1.
    APPEND ITAB1 TO ITAB2.
    PERFORM PRINT TABLES ITAB2.
    AT LINE-SELECTION.
      V_LIN = SY-LILLI.
      T_PAGE = V_PAGE.
      PREV_STUFE = ITAB2-STUFE.
      V_STUFE = ITAB2-STUFE + 1.
      V_WEGXX = ITAB2-WEGXX.
      V_SYMBOL = ITAB2-SYMBOL.
      IF ITAB2-SYMBOL = '+'.
        ITAB2-SYMBOL = '-'.
        MODIFY ITAB2 INDEX V_TABIX.
      ELSEIF ITAB2-SYMBOL = '-'.
        ITAB2-SYMBOL = '+'.
        MODIFY ITAB2 INDEX V_TABIX.
      ENDIF.
      LOOP AT ITAB WHERE STUFE = V_STUFE AND VWEGX = V_WEGXX.
        V_TABIX = V_TABIX + 1.
        IF V_SYMBOL = '+'.
          MOVE-CORRESPONDING ITAB TO ITAB2.
          ITAB2-SYMBOL = '+'.
          INSERT ITAB2 INDEX V_TABIX.
        ELSEIF V_SYMBOL = '-'.
         IF V_TABIX GT 2.
          LOOP AT ITAB2 FROM V_TABIX WHERE STUFE = PREV_STUFE.
            T_TABIX = SY-TABIX.
            T_TABIX = T_TABIX - 1.
            EXIT.
          ENDLOOP.
           IF V_TABIX LE T_TABIX.
            DELETE ITAB2 FROM V_TABIX TO T_TABIX.
           ELSE.
            LOOP AT ITAB2 FROM V_TABIX.
    *          T_TABIX = T_TABIX + 1.
              IF ITAB2-STUFE GT PREV_STUFE.
               DELETE ITAB2 INDEX SY-TABIX.
              ELSE.
                EXIT.
              ENDIF.
            ENDLOOP.
    *        DELETE ITAB2 FROM V_TABIX WHERE STUFE LT V_STUFE.
           ENDIF.
           EXIT.
          ELSE.
            DELETE ITAB2 FROM V_TABIX.
            EXIT.
          ENDIF.
        ENDIF.
      ENDLOOP.
      SY-LSIND = 0.
      T_INDEX = 1.
      PERFORM PRINT TABLES ITAB2.
      SCROLL LIST INDEX T_INDEX TO PAGE T_PAGE . " LINE V_LIN .
    *&      Form  BOM_EXPLODE
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM BOM_EXPLODE .
      CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
        EXPORTING
          CAPID                 = 'PP01'
          DATUV                 = SY-DATUM
          MEHRS                 = 'X'
          MTNRV                 = P_MATNR
          WERKS                 = P_WERKS
        TABLES
          STB                   = I_BOM
        EXCEPTIONS
          ALT_NOT_FOUND         = 1
          CALL_INVALID          = 2
          MATERIAL_NOT_FOUND    = 3
          MISSING_AUTHORIZATION = 4
          NO_BOM_FOUND          = 5
          NO_PLANT_DATA         = 6
          NO_SUITABLE_BOM_FOUND = 7
          CONVERSION_ERROR      = 8
          OTHERS                = 9.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      ITAB-IDNRK = P_MATNR.
      ITAB-MENGE = '1'.
      ITAB-STUFE = '0'.
      ITAB-WEGXX = '0'.
      ITAB-TTIDX = '0'.
      ITAB-VWEGX = '-1'.
      ITAB-SYMBOL = '+'.
      APPEND ITAB.
      CLEAR ITAB.
      LOOP AT I_BOM.
        MOVE-CORRESPONDING I_BOM TO ITAB.
        APPEND ITAB.
        CLEAR ITAB.
      ENDLOOP.
    ENDFORM.                    " BOM_EXPLODE
    *&      Form  PRINT
    *       text
    *      -->P_ITAB1  text
    FORM PRINT  TABLES   P_ITAB1 STRUCTURE ITAB.
      DATA : V_ID LIKE STPOX-VWEGX.
      DATA : T_LINE LIKE SY-TABIX,
             V_LINE TYPE I,
             V_HLINE TYPE I.
      DATA : PAGE TYPE I.
      DESCRIBE TABLE P_ITAB1 LINES V_LINE.
      T_LINE = V_LINE - 1.
      LOOP AT P_ITAB1.
        V_OFFSET = P_ITAB1-STUFE * 3.
        V_CONTENT = P_ITAB1-STUFE * 6.
        V_LINE = P_ITAB1-STUFE * 4.
        IF P_ITAB1-STUFE NE 0.
          V_HLINE = V_LINE + 2.
        ELSE.
          V_HLINE = 2.
        ENDIF.
    *    T_INDEX = T_INDEX + 1.
        COMPUTE PAGE = SY-TABIX MOD 13.
        IF PAGE EQ 0.
          NEW-PAGE.
          V_PAGE = SY-PAGNO.
    *     T_INDEX = 0.
        ENDIF.
        V_TABIX = SY-TABIX.
        IF P_ITAB1-SYMBOL = '+'.
           WRITE : /.
            WRITE AT : V_OFFSET  SYM_PLUS_FOLDER AS SYMBOL
                    COLOR 4 INTENSIFIED HOTSPOT.
            WRITE : AT V_CONTENT P_ITAB1-IDNRK,P_ITAB1-MENGE.
          HIDE : P_ITAB1,V_TABIX,V_PAGE.
        ELSEIF P_ITAB1-SYMBOL = '-'.
          WRITE : /.
          WRITE AT V_OFFSET SYM_MINUS_FOLDER AS SYMBOL
                    COLOR 4 INTENSIFIED HOTSPOT.
          WRITE : AT V_CONTENT P_ITAB1-IDNRK,P_ITAB1-MENGE.
          HIDE : P_ITAB1,V_TABIX,V_PAGE.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " PRINT
    regards
    shiba dutta

Maybe you are looking for

  • HT1553 How to backup an image of internal hard drive on external hard drive with disk utility

    I've followed the instructions under the paragraphph 'Instructions for backing up to an external hard disk via Disk Utility in this article: http://support.apple.com/kb/ht1553. My external hard drive is plugged in. I mount my install DVD of Leopard a

  • Crash when running presentation

    Hello, I have a Keynote 08 presentation running on an Intel MiniMac but after 8 or so hour it will crash, any ideas? Below is my crash report; Process: Keynote [8100] Path: /Applications/iWork '08/Keynote.app/Contents/MacOS/Keynote Identifier: com.ap

  • CiscoWorks LMS 4.0.1 - some questions

    Hello community, I would like to ask some questions about CiscoWorks LMS 4.0.1. We are using for a few days, and I can't set some request in the system. I hope someone could help me to customize the CW as I would like to use it. - We have some Cataly

  • Ebay page scroll bar stays small-long way down to see rest of page

    when i look at ebay selling-buying pages the scroll icon at side of pc does not expand and staye small,it means i have to scroll a long way down from item at top of page--- through nothing on page to reach the wording at bottom of page

  • Curve keeps turning of

    Need some help, I have a curve 8520 and it just keeps resting its self all the time, I went to vodaphone and they said it just needs to be updated so I done that, and it still keeps resting its self when it wants to, its freezes then cuts of then sum