How to remove JTree +/- button?

I already have my own +/- icon(leafticon, openIcon, closeIcon) but JTree has default +/- button so it is become doube, so how to remove +/- JTree default button?
thx...

DarrylBurke wrote:
IMO the correct way to go about this is to substitute your custom icons for the default ones using UIManager. Don't forget to wrap the icon as a UIResource or it may not be recognized by some LaFs (may still not be recognized by some LaFs, but you increase your chances by using a UIResource ...)UIManager.put("Tree.expandedIcon", new IconUIResource(myCustomExpandedIcon));
UIManager.put("Tree.collapsedIcon", new IconUIResource(myCustomCollapsedIcon));dbyap it work. but i want to remove it, so i set to the non exist icon and it is gone. is it right or not?
ImageIcon icon = new ImageIcon("c:\\iconNonexist.png"); // actually the image is not there
UIManager.put("Tree.expandedIcon", new IconUIResource(icon)); // work the +/- is gone
UIManager.put("Tree.collapsedIcon", new IconUIResource(icon)); // work the +/- is gone
// UIManager.put("Tree.expandedIcon","none"); // not work

Similar Messages

  • How to remove the buttons in ALV GUI?

    Hi All,
    I am using the FM REUSE_ALV_GRID_DISPLAY for disaplying the ALV grid. i need how to remove these buttons ( mail word processing, loal file, Mail recipient,  ABC analysis, Microsoft Execl and Graphics ) from the ALV Gui?
    please give solution.
    Regards,
    Santha

    hi,
    IT_EXCLUDING TYPE SLIS_T_EXTAB OPTIONAL
    you need to append the Fucntion codes to the it_exclude and then pass it to the parameter it_excluding.
    append '&ABC' to it_excluding.
    append '&BAC' to it_excluding.
    call function 'REUSE_ALV_GRID_DISPLAY'
    IT_EXCLUDING = it_exlcuding
    Regards
    Anver

  • How to remove clear button on message file upload bean item?

    Dear Guru's.
                    How to remove clear button on message file upload bean item .
    Regards,
    Srinivas

    Hi Raghu,
    This is srinivas i am also facing this issue how u achieve this can u share me this is urgent for me .
    Regards,
    Srinivas

  • How to remove the buttons coming from report program?

    Hi All,
    I need to remove the buttons from an iview which is a sap transaction. when i execute the  report program which uses a ldb (PCH) shows a selection screen having all the buttons.
    We have created variants for this.Now i want to remove the buttons which are coming from the report program.how to do this ?
    Lakshmi.

    Goto sicf ->sap->bc->gui->sap->its->                              
    open Webgui application                              
    in the GUI Config enter the following parameters.                              
    ~noHeaderOkCode = 1                              
    ~webTransactionType = EWT.                              
    All buttons can also be removed by ~webgui_simple_toolbar =0 ..                              
    Also now open the trancsaction of the program form SE93 for which you want to hide                               
    the Menu bar, in its properties select the EASY WEB TRANSACTION radio button.

  • How to remove the buttons which are coming from a report?

    Hi All,
    I need to remove the buttons from an iview which is a sap transaction. when i execute the  report program which uses a ldb (PCH) shows a selection screen having all the buttons.
    We have created variants for this.Now i want to remove the buttons which are coming from the report program.how to do this ?
    Lakshmi.

    Hi,
    I think u r mentioning about the addition buttons that appear in the selection screen when using a logical database. for removing these buttons u can use a function module RS_SET_SELSCREEN_STATUS  for setting ur own pf-status
    do this in "at selection screen output" of the program..
    in the tables parameter, u have the option for giving the ok-codes that u want to remove. append all the ok-codes into this table.
    for getting the ok-codes u can use "tab" and go the button.. press F1. it will give the ok-code.
    Regards,
    Anoop

  • CRM Survey - How to remove Radio button defaults.

    Hi experts,
    I am trying to remove Radio button default. By default it is selected when I am trying to set attribute for answer options. Even if I unchecked, it reverts and set as selected again. Actually, I need remove Radio button default for the customer sees a response pre filled.
    Please advise on how can I remove Radio button default for answer options.
    Banu

    Hi,
    I see it now.
    You need to change the config of your radio buttons in the transaction itself.
    Goto CRM_SURVEY_SUITE, locate your survey, click on the change button ( a pencil) this will take you to the survey configuration.
    There navigation to the section in the left hand pane that corresponds to the radio buttons. And you will see Yes and No for answers to the questions. Double click on each of them to display on the right side work area and change the property 'Selected' (which is a check box) to unchecked.
    This should be easy.
    Regards
    Prasenjit

  • How to remove forward button from notification Page?

    Hi All,
    I would like to remove (disable ) forward button from Req approval work flow ? How can i achive this functionality ?
    I will be appriciate for help.
    Thanks
    pat

    Well, I'm guessing that you are using PO workflows, and using one of the standard lookups? Without having any details of what you are using, trying to second guess the answer is somewhat difficult.
    If it's the case that you are talking about the PO workflows, then the buttons are standard functionality based on the lookup type that is used as the notification response. Trying to suppress this doesn't actually make much sense - you are sending someone a notification, asking them to take action, and then not giving them any ability to respond to the notification.
    You would need to customize / personalize the notification page if you want to remove the buttons. The question then is - how will the process continue if you are removing the ability to respond to the notification?
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • How to remove NO Button on dialog page

    Hello friends,
    i want to remove no button on my dalog page how to do? my code is below , below this code still i can see on dialog page no button.. can any one help me out..
    OADialogPage dialogPage = new OADialogPage(OAException.WARNING,descMesg, null,"" ,"" );
    dialogPage.setOkButtonLabel("ok");
    dialogPage.setOkButtonItemName("YesButton");
    dialogPage.setOkButtonToPost(true);
    dialogPage.setPostToCallingPage(true);
    System.out.println("Entering To Delete");
    pageContext.redirectToDialogPage(dialogPage);
    Thanks
    krish.

    You can specify your own button bar with the required buttons.
    Extract from Developer's guide.
    The setFooterNestedRegionCode and setFooterNestedRegionApplicationID methods in the OADialogPage class have been deprecated.
    If you use the standard OK/NO buttons provided on the dialog page, you do not need to make any changes.
    However, if you are using the OADialogPage.setFooterNestedRegionCode and OADialogPage.setFooterNestedRegionApplicationID methods to render customized buttons under the footer region, you must update your code to use the new method OADialogPage.setPageButtonBarRegionRefName instead. This new method lets you set a reference to a page button bar region, built declaratively with OA Extension. You can add any number of custom buttons to the page button bar region. OA Framework renders the page button bar region under the footer. Adding your custom content to a page button bar region allows the page buttons to be rendered and positioned in the proper places specified by the latest UI standards. To render the Return To navigation link under the footer, use the existing setReturnToLinkLabel and setReturnToLinkURL methods in OADialogPage.
    To render a nested region, created with OA Extension, under a dialog page header, use the new OADialogPage.setHeaderNestedRegionRefName method.

  • How to remove calender button beside date prompt in infoview

    Post Author: Durga
    CA Forum: Desktop Intelligence Reporting
    Hi ,
    We have developed one deski report which will run through infoview.
    while opening in the infoview in the beside the date prompt calender button is appearing.
    But we dont need the calender button beside the date prompt.we want to select from LOV's only.
    Please advice how to remove the calender button in infoview which is developed in Deski.
    Regards,
    Durga.

    Changing the data of the date to char will get ride of the calendar control.

  • How to remove close button of  JFrame

    Hey all,
    Can anybody tell me how to remove the default close button of JFrame.I mean to say that i only need the minimize and restore button on the top-right corner of the JFrame.
    Regards,
    Sharad agarwal

    http://forum.java.sun.com/thread.jspa?threadID=623108&tstart=0

  • How to remove info button?

    Please, I need to remove Info button. How can I do this from
    Captivate 2?
    Thanks
    [ ]'s
    Renato

    Hi Renato
    Take a look at fellow Adobe Community Expert Paul Dewhurst's
    site.
    Click
    here
    Cheers... Rick

  • How to remove F8 button

    Hi,
    how to remove the execute button in Application toolbar.
    i want to execute a report in background, so i want to delete F8.
    Thanks,

    Hi
    U can avoid to run the program online in AT SELECTION-SCREEN event:
    AT SELECTION-SCREEN.
        CHECK SY-UCOMM = 'ONLI'.
        MESSAGE E208(00) WITH 'Run it background only'.
    or u can try this:
    DATA GT_EXCLUDE TYPE TABLE OF RSEXFCODE WITH HEADER LINE.
    INITIALIZATION.
      T_EXCLUDE-FCODE  = 'ONLI'.
      APPEND T_EXCLUDE.
    AT SELECTION-SCREEN OUTPUT.
      CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
           EXPORTING
                P_STATUS  = '%_00'
                P_PROGRAM = 'RSSYSTDB'
           TABLES
                P_EXCLUDE = T_EXCLUDE[].
    Max

  • How to remove standard buttons on Custom Control?

    Hi ABAPers,
    How to remove the standard buttons that are appear on custom control and also how to remove the description of line column details.
    Because in my requirement I have to create one custom infotype in which I have to add four custom controllers. In record creation it displaying that buttons and line description. So I want to remove those buttons and line descriptions.
    Could you please give me the solution for this?
    Thanks in advance,
    Regards,
    kishore

    Hi Deepak,
        CALL METHOD G_EDITOR1->SET_TOOLBAR_MODE
          EXPORTING
            TOOLBAR_MODE           = 0
          EXCEPTIONS
            ERROR_CNTL_CALL_METHOD = 1
            INVALID_PARAMETER      = 2
            OTHERS                 = 3.
        IF SY-SUBRC <> 0.
                 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    Regards,
    Kishore.

  • How to remove go button for prompt

    Hi everyone,
    I got a requirement from client asking to remove 'GO' button for prompts which has single value to select and have go button for those which need multiple select values.
    If prompt has one select value the report has to change based the selection of value no need to press go button.
    Will it be possible to remove 'GO' button for some prompt filter and have for others .
    Thanks in advance.
    Regards
    Sandeep

    Sandeep,
    I think it's not possible to remove the 'GO' button for prompts. If you need to rename the 'GO' button, follow the below steps.
    Go to {OracleBIDir}:\oraclebi\web\msgdb\l_en\messages and Open the globalfiltermessages.xml file.
    Find this text
    <WebMessage name="kmsgGFPGo"><TEXT>Go</TEXT></WebMessage>
    Edit the 'Go' which is there between the TEXT tags.. for e.g.., replace the Go with Confirm
    <WebMessage name="kmsgGFPGo"><TEXT>Confirm</TEXT></WebMessage>
    Thanks,
    Balaa...

  • Self Service - SIT approval. How to remove "Reject" Button

    Hi,
    In some SIT, i have some employees where they have only to fill some information before continuing the flow cycle of the request without having the possibility to reject the request.
    Can we remove the button "Reject" for one of the approvers in some cases?
    Thanks,
    Elie

    You will have to customize the workflow item, and remove the reject option in the approval node.
    Tushar

Maybe you are looking for

  • MS Access and Coldfusion

    I am trying to set up a website that would have about 150 users (only login in a few times a year). I want to include a login for admin and a simple page for voting for different issues relating to the organization. I am somewhat confused if MS Acces

  • How to install Adobe Acrobat on hardened offline network

    We use Adobe PDF to create PDFs on a hardened stand alone network using Windows Server 2008.  Can we install or update Adobe Acrobat on a system that is always offline?

  • Cannot run Forms-Application

    Hi, i built a new form with forms 10g. Only 1 block and 1 table. Then I startet OC4J and tried to run this form from the forms builder. It does not work. So I mad a .fmx file and tried to start this file from Internetexplorer 8 and Firefox. Internet

  • Type range of

    Hi,     I am trying to create a range object using type range of decalration in a class, but when trying to select data using the range object as one of the condition the program throws an error stating "The in operator with it_pernr-low is followed

  • Search & spotlight return no results

    As the subject states, both search and spotlight return no results. Both appear to search (windmill keeps turning) but they never return any results. Help!