How to hide a text in RTF Editor

Hi,
I'm trying to create a RTF editor using JTextPane, RTFEditorKit and DefaulStyledEditor.
Does somebody know how to hide a text in a RTFEditorKit ?
Thanks in advance
Maurice

What about
setVisible(false);
Haven't tried it, no clue wether is works. If u need to select a certain portion of the text this might help:
int posStart = editorPane.getSelectionStart( );
int posEnd = editorPane.getSelectionEnd( );
int selLength = posEnd - posStart;

Similar Messages

  • How to hide / unhide text baxes on button click in JSF page using javascrip

    Hi,,
    I want to hide/unhide text boxes on a button click.
    How to do it in .jspx page using javascript.

    Hi,
    refer this
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1" title="#{lcRes['page.title']}">
         <af:resource type="javascript">
            function hide(evt){
                evt.findComponent('itToHide').setVisible(true);
         </af:resource>
          <af:form id="f1">
            <af:commandButton partialSubmit="true" id="cb1">
                <af:clientListener method="hide" type="action"/>
            </af:commandButton>
            <af:inputText id="itToHide" value="xx" label="this will hide" clientComponent="true"/>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>

  • How to hide DecisionUserNote text edit box?

    Hi everybody,
    Could you tell me the way to HIDE the text edit box which appears in the UWL preview of some tasks used to include a note?
    It is supposed that filling NOTES in the Sections to exclude iView property would do it but I'm not getting the expected result.
    Neither including the property DecisionUserNote to false in the XML configuration tasks...
    THanks in advance!

    HI Jesus,
    What version of the Universal Worklist are you using?  This is really important as I know that there was a fix with regards to the UserDecisionHandler.  The following are the values that should be maintained with this propery:
    Memo is turned on by specifying u201Ctrueu201D as a value.
    <Property name="UserDecisionNote" value="true"/>
    Mandatory memo is specified by putting u201Cmandatoryu201D to value.
    <Property name="UserDecisionNote" value="mandatory"/>
    Memo is disabled by using  u201Cdisabledu201D as a value.
    <Property name="UserDecisionNote" value="disabled"/>
    After changing configuration in regards to decision note cache should be cleared.
    If this doesn't help please let me know the version you are using so I can check and see if there is a patch available for your version.
    Beth Maben
    EP - Senior Support Consultant II
    AGS Primary Support
    Global Support Centre Ireland
    Please see the UWL Wiki @
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/bpx/uwl+faq  ***

  • How to hide extra text and icons in address bar

    I want to make the icons and extra text in the address bar go away since they do nothing for me and only take up space that I need to use to see the whole URL. Right now there's a green padlock icon on the left side with 1/4 of the space taken up by "Mozilla Foundation (US)" instead of the URL, other times it's a little globe or a little lego/car battery looking thing, or several icons in a row. There's a permanent star shaped thingy on the left and a down arrow that want to get rid of as well. I don't care at all what they mean, I just want them gone. I need to see as much of the URL in the URL bar as possible, not a bunch of icons and extra non-URL text. The address bar should be for addresses, and that's how I want my browser to function. I don't care one single bit what those icons or extra text are for, so please don't try to advocate for their staying. I've made up my mind 100% that I want them gone. Can I make them go away, yes or no?

    I use code to hide the URL in case of a EV certificate and only show it on hover.
    You still see the green padlock.
    That gives me extra space on the location bar
    Add code to the <b>userChrome.css</b> file below the default @namespace line.
    *http://kb.mozillazine.org/userChrome.css
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #identity-box #identity-icon-labels {display:none}
    #identity-box:hover #identity-icon-labels {display:-moz-box}
    </nowiki></pre>
    The customization files userChrome.css (user interface) and userContent.css (websites) are located in the <b>chrome</b> folder in the Firefox profile folder.
    *http://kb.mozillazine.org/Editing_configuration
    You can also add some background color.
    <pre><nowiki>/* Site Identity Button background */
    #urlbar[pageproxystate="valid"] #identity-box.verifiedDomain *{
    background-image: -moz-linear-gradient(hsl(215,60%,92%), hsl(215,58%,88%))!important;
    box-shadow: 0 1px 0 hsla(215,54%,33%,.05) inset!important;
    -moz-border-end-color: hsla(215,54%,33%,.2)!important;
    color: hsl(215,54%,33%)!important;
    #urlbar[pageproxystate="valid"] #identity-box.verifiedIdentity *{
    background-image: -moz-linear-gradient(hsl(91,70%,90%), hsl(93,60%,81%))!important;
    box-shadow: 0 1px 0 hsla(92,81%,16%,.05) inset!important;
    -moz-border-end-color: hsla(92,81%,16%,.2)!important;
    color: hsl(92,81%,16%)!important;
    </nowiki></pre>

  • How to  hide information on the rtf template based on some condition

    Hi,
    I'm writing a new rtf template for our custom PO print program in EBS 11.5.10.. In reports 6i, you can have a format trigger on a frame or repeating frame and you can achieve this.. Can you please let me know if this is possible in XMLP and how can i do it..
    Thanks,
    Shree

    Hi Shree,
    see for example if you want to get the employees record group by department number then...in this case if you want to hide some columns of employees then use if condition...where you are using ur column name.....
    like this .....if you want to hide salary column for dept no 20 then
    if dept no<> 20 then sal end if;...... use this at the column def....
    its like a dynamic data column generation.....for the exact code you can refer to XML Publisher User Guide......Chapter is Creating RTF Template.....section is dynamic Data Columns...
    Regards
    Ravi

  • How to hide title text while launching a ECC transaction thru ITS in ICWC

    Dear all,
    We are calling an ECC transaction into ICWC through Transaction Launcher.
    Our client doesn't want to see the Title of ECC transaction which appears top of the ECC transaction screen. (for ex: Create Sales Order).
    How can we hide it, kindly help me to resolve this issue.
    Your suggestions will be highly appreciated.
    Best regards
    Raghu ram

    Answer is in
    Note 1010519 - SAP GUI for HTML: Simplified title area w/o menu and OK code

  • How to clear the text in the Text Editor

    Hi all,
    I created a Text editor and also i am having language field in the screen.
    whenever i change the language auomatically the text has to change when the text exists for that
    language.
    this is working fine, but when the Text exist , the text editor should be blank.
    But it is carrying the Previous editor text itself into it .
    How to clear the text in the Editor.
    Regards,
    Madhavi

    Hello Madhavi
    The simple report ZUS_SDN_TEXTEDIT_CONTROL shows how to switch the texteditor contents when changing the language.
    *& Report  ZUS_SDN_TEXTEDIT_CONTROL
    *& Thread: how to clear the text in the Text Editor
    *& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1145272"></a>
    *& By default the itab GT_OUTTAB contains texts in DE and EN.
    *& To switch the language directly enter into the command window:
    *& LANGU=DE, LANGU=EN or LANGU=FR
    REPORT  zus_sdn_textedit_control.
    TYPE-POOLS: abap.
    TYPES: ty_t_text     TYPE TABLE OF as4text
                         WITH DEFAULT KEY.
    TYPES: BEGIN OF ty_s_outtab.
    TYPES: language TYPE spras.
    TYPES: text     TYPE ty_t_text.
    TYPES: END OF ty_s_outtab.
    TYPES: ty_t_outtab    TYPE STANDARD TABLE OF ty_s_outtab
                          WITH DEFAULT KEY.
    DATA: gt_outtab       TYPE ty_t_outtab,
          gs_outtab       TYPE ty_s_outtab.
    DATA: gd_language     TYPE spras.
    DATA: go_docking      TYPE REF TO cl_gui_docking_container,
          go_textedit     TYPE REF TO cl_gui_textedit.
    DATA: gd_okcode       TYPE ui_func,
          gd_repid        TYPE syst-repid.
    START-OF-SELECTION.
      PERFORM fill_texts.
      gd_language = syst-langu.
      PERFORM init_controls.
    * Link the docking container to the target dynpro
      gd_repid  = syst-repid.
      CALL METHOD go_docking->link
        EXPORTING
          repid                       = gd_repid
          dynnr                       = '0100'
    *      CONTAINER                   =
        EXCEPTIONS
          OTHERS                      = 4.
      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.
      PERFORM set_text_editor.
    * NOTE: dynpro does not contain any elements
      "       ok-code => GD_OKCODE
      CALL SCREEN '0100'.
    * Flow logic of dynpro (does not contain any dynpro elements):
    *PROCESS BEFORE OUTPUT.
    *  MODULE STATUS_0100.
    *PROCESS AFTER INPUT.
    *  MODULE USER_COMMAND_0100.
    END-OF-SELECTION.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STATUS_0100'.  " contains push button "DETAIL"
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      TRANSLATE gd_okcode TO UPPER CASE.
      CASE gd_okcode.
        WHEN 'BACK'  OR
             'EXIT'  OR
             'CANC'.
          SET SCREEN 0. LEAVE SCREEN.
        WHEN 'LANGU=DE' OR
             'LANGU=EN' OR
             'LANGU=FR'.
          PERFORM get_text_editor.
          SPLIT gd_okcode AT '=' INTO gd_okcode gd_language.
          PERFORM set_text_editor.
        WHEN OTHERS.
      ENDCASE.
      CLEAR: gd_okcode.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  FILL_TEXTS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM fill_texts .
    * define local data
      DATA: ld_string   TYPE string.
      gs_outtab-language = 'EN'. REFRESH: gs_outtab-text.
      ld_string = 'Good morning'.
      APPEND ld_string TO gs_outtab-text.
      APPEND gs_outtab TO gt_outtab.
      gs_outtab-language = 'DE'. REFRESH: gs_outtab-text.
      ld_string = 'Guten Morgen'.
      APPEND ld_string TO gs_outtab-text.
      APPEND gs_outtab TO gt_outtab.
      gs_outtab-language = 'FR'. REFRESH: gs_outtab-text.
      ld_string = space.
      APPEND ld_string TO gs_outtab-text.
      APPEND gs_outtab TO gt_outtab.
    ENDFORM.                    " FILL_TEXTS
    *&      Form  INIT_CONTROLS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM init_controls .
      CREATE OBJECT go_docking
        EXPORTING
          parent                      = cl_gui_container=>screen0
    *      repid                       =
    *      dynnr                       =
    *      side                        = dock_at_left
    *      extension                   = 50
    *      style                       =
    *      lifetime                    = lifetime_default
    *      caption                     =
    *      metric                      = 0
          ratio                       = 90
    *      no_autodef_progid_dynnr     =
    *      name                        =
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5
          OTHERS                      = 6.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CREATE OBJECT go_textedit
        EXPORTING
    *      max_number_chars       =
    *      style                  = 0
    *      wordwrap_mode          = wordwrap_at_windowborder
    *      wordwrap_position      = -1
    *      wordwrap_to_linebreak_mode = false
    *      filedrop_mode          = dropfile_event_off
          parent                 = go_docking
    *      lifetime               =
    *      name                   =
        EXCEPTIONS
          error_cntl_create      = 1
          error_cntl_init        = 2
          error_cntl_link        = 3
          error_dp_create        = 4
          gui_type_not_supported = 5
          OTHERS                 = 6.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " INIT_CONTROLS
    *&      Form  SET_TEXT_EDITOR
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM set_text_editor .
      BREAK-POINT.
      CLEAR: gs_outtab.
      READ TABLE gt_outtab INTO gs_outtab
           WITH KEY language = gd_language.
      CALL METHOD go_textedit->set_text_as_stream
        EXPORTING
          text            = gs_outtab-text
        EXCEPTIONS
          error_dp        = 1
          error_dp_create = 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.
    ENDFORM.                    " SET_TEXT_EDITOR
    *&      Form  GET_TEXT_EDITOR
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM get_text_editor .
      CLEAR: gs_outtab.
      CALL METHOD go_textedit->get_text_as_stream
        EXPORTING
          only_when_modified     = cl_gui_textedit=>true
        IMPORTING
          text                   = gs_outtab-text
    *      is_modified            =
        EXCEPTIONS
          error_dp               = 1
          error_cntl_call_method = 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.
      MODIFY gt_outtab FROM gs_outtab
        TRANSPORTING text
        WHERE ( language = gd_language ).
    ENDFORM.                    " GET_TEXT_EDITOR
    Regards
      Uwe

  • 0 down vote favorite share [fb] share [tw]        How to hide cut/copy/paste/Replace- menu on the UIWebView when it is being displayed over the keyboard.  Detail: I am having a HTML from, having text box, displayed using UIWebView. If user types in text b

    How to hide cut/copy/paste/Replace… menu on the UIWebView when it is being displayed over the keyboard.
    Detail: I am having a HTML from, having text box, displayed using UIWebView. If user types in text box it shows the keyboard. Now If user tap and hold on text box it shows a popup menu. Now while keyboard and pop up are being displayed user scrolls the view. At this time it shows pop up over the keyboard which I need to hide.
    I tried setMenuVisible of UIMenuController when popup rect and keyboard rect intersects each other on viewDidScroll but it didn't help me.
    Any clues will help a lot.
    Thanks.

    You are more likely to get an answer if you post programming problems to the Developer forum. This forum is intended for normal user level problems.

  • How do I Hide the text printed from a standard Text Element in SAP Script?

    Hi,
    I have created one SAP Script which gets printed from IW33 using a standard print program.
    In config the standrad SAP script is replaced by the zsap script.
    Since the Zscript is printed from a Standard print program, I had to keep all the text elements used by the original(standard) SAP script.
    I only kept the text elemets and commented out the printing part.
    But still some values are printing. How do I hide these text element values?
    I want to delete whatever its printing from these text element. Icant delete the standard text elemetns , otherwise the standard print program will give error.

    Hi,
    I am not printing any text under these text element in my zscript.
    I had to include these standard text elemets as they are called from the standard print program using which my zscript is getting printed.
    for example:
    /E OPERATION
    Under operation i didnot print anything. Still some values which are passed in text element Operation by the print program is being printed in the form. i want to hide/delete these values.
    how do I do that?

  • How to change the font of the text in Control Editor??

    How to change the font of the text in Control Editor??

    Hi,
            you have to create a smartstyle and acces that in So10 transaction.in change mode,menu->FORMAT->CHANGE STYLE.
    here you will get all styles available.
    so first you have to create a style in SE72 and activate it. and then
    goto SO10-> change mode
    menu->FORMAT->CHANGE STYLE.
    now you will see the style you have created. select that.
    now you can see the format.
    <b>Reward points</b>
    Regards

  • How to hide the display of  my text in oracle forms

    Oracle Forms 6i
    Hai All
    My question is how to disable my Text.
    I have created a forms for weight management here when the user opens the forms I dont want to show my text and textitem before filling some fields.
    I have have set the text item by Set_item_property display False and how can set the text display false
    Thanks & Regards
    srikkanth.M

    You cannot do any operation on forms label
    other way is to use non-database Display items to show you text.... or if you are looking to hide the prompts of text fields then you can set it to null or hide the text item completely

  • How to hide "Note that the search is case insensitive" text from Query Region

    Hi,
    When create a search page with Query region : Autocustomizationcriteria mode, page is showing automatically "Note that the search is case insensitive" text is showing automatically.
    this is not needed. can you please let me know how to hide this one from page.
    Regards,
    Ram

    Check this link:
    https://forums.oracle.com/message/9227812#9227812
    --Sushant

  • How do I locate Text Editor?

    How do I locate Text Editor?

    Welcome to Apple Support Communities
    The app is called TextEdit and it is stored in /Applications. To access to that folder, open a Finder window and choose Applications in the sidebar.
    Two quicker ways are to use Launchpad (if you are using OS X Lion or later) or Spotlight (press Command and Space keys, and type TextEdit)

  • How do you hide incoming text messages on the iphone 4 to just show the name of the person sending the text instead the entire text message?

    How do you hide incoming text messagtes on the iphone 4.  I can do on the 3G.  Can it be done on the 4?

    Settings>Notifications>Messages. Turn Show Preview to off.

  • How to hide codings in RTF Template

    Hi,
    I'm currently making a report which involves intensive calculation logics, for which I have no choice but to write intensive coding such as <?choose:?>, <?if:?>, <?xdoxslt:set_variable....?>. Howevever, even though all my codes are not supposed to output anything (all the logics are for setting up varialbles). There will be blank lines generated in the report outputs which mess up my format. Pls. don't suggest form fields as most of my lines are too long for the form field help properties to handle.
    Does anyone know a good way to hide coding in the RTF which won't affect the layout of the report?
    TIA,
    Jonathan

    BI Publisher 11g MSFT Plugin now offers a feature (not backward compatible) that allows up to 48kb of code in a form field. This enhancement is important as the original MSFT property limited this to be about 393 chars. Check this link for an example of this limitation: http://oraclebiblog.blogspot.com/2009/11/biee-and-bi-publishers-integration-best.html
    regards
    Jorge
    p.s I do not see other option. So please just close this post

Maybe you are looking for

  • Data Federator Destination

    Hi... we just started using Data Federator in our project. I know that using ew could combine Data from multiple Source systems (such as SAP BI, SAP R/3, Oracle, Flat Files a.s.o) and create a semantic layer (Structure). Could anyone tell us if the d

  • Attachments and history of my emails are not seen by Windows users

    attachments and history of my emails are not seen by Windows users

  • Sort by exclamation point

    How do I sort by exclamation point? When I need to fix files that iTunes says are missing I get tired of scrolling and scrolling and scrolling to find them all. I click on the top of the first column where the exclamation points are but it doesn't so

  • Safari launches with spinning ball and full fans and 100% CPU web processes

    Exactly the same issue on Macbook Air and new iMac both running Safari 5.1 and Lion 10.7.3 When I open Safari  it does not open a page, it just shows a spinning beach ball and shortly after the fans kick in and the activity monitor shows 1 webprocess

  • ALL Clause with correlated sub queries

    I have two Tables. emp and dep. In Employee emp_id and Name where emp_id is pk. emp_id is referencing emp_id in Department where Dep has 3 columns emp_id Dep_no and Dep_name. In Department table emp_id is PK. Say: Employee Has these data: 1|john and