In smartform text editor, cursor is coming very very large. huugeee

While doing smartform, in Text editor, cursor is coming in very very large size....I dont know how to reset it...
for other texts created early also, in text editor cursor is much bigger...
help me...i resetted the formatting...kept standard formatting too...

I would say it's not good choice. It's slow with large files (several megabytes). It supposes multiple features (pieces of text with different font sizes) you don't really need so calculation is slow.
I would choose JTextArea with own view to support colored chunks. You calculations of sizes are really faster because you have monospaced font and all chunks has the same char size.
For highlighting you can use Highlighter/HighlightPainters.
If you still the JTextPane is good read the articles http://java-sl.com/JEditorPanePerformance.html about performance improvement.
Neither JTextPane nor JTextArea are modal. You can place them in a modal JDialog.

Similar Messages

  • In smartform Text editor problem

    In smartform in text editor i writing text Invoice number it will in first line Invoice and second line number ,  Exactly very line taken 7 characters what is problem please give me advise.

    hi,
    welcome to SDN
    just increase ur window width.
    or u can adjust it with font size.
    do formatting andeach time check print preview.
    coz not alwys print preview and text editor is same.

  • How can i give conditions in smartform text editor

    Hi all,
    i want to display something based on some condition using text element in smartforms , how can i do it.
    in SAP Scripts normally we give conditions in text element using command line(/:)
    but it wont work in smartforms , how can i give the same in smartforms ?
    please help me soon.
    thank you.

    Hi,
    You can use the Conditions tab for the corresponding text.
    ex: in the text-editor consider you are displaying a name field based on a variable
    <b>
    ws_name
    ws_variable</b>
    In the text give the field to be displayed
    &ws_name&
    In the conditions tab give
    ws_variable = 'X'
    This will print the value from ws_name only when ws_Variable = 'X'.
    Regards,
    Tushar

  • Smartforms - text editor

    Hello,
    When opening some of my forms in Smartforms, when I enter General Attributes TAB, the editor is not the usual editor.
    It looks like WORD editor. How can I change it to the other editor?
    Thank you.

    Hi Ami,
    it is possible to change the Editor. Go to SE38 or SE80. Run the Report 'RSCPSETEDITOR'.
    Then you can select/unselect if you like MS Word as Smartforms-Editor or not.
    Regards,
    André

  • How to change TEXT EDITOR in SMARTFORMS

    Dear All,
    How to change TEXT EDITOR in SMARTFORMS i am getting editor like Microsoft Word but i want the regular editor.
    I am using ECC 6.0 GUI 710
    thanks,
    RP

    Solution By Mr. Eitan Rosenberg is correct.
    Program Name: RSCPSETEDITOR
    Thanks a lot.
    Regards..........

  • After placing a new text box in my document, typing new text, clicking away, then coming back to edit the text, I am unable to get my cursor to reappear within that text box. I can only select the box itself. I cannot select the text. Where is my cursor?

    After placing a new text box in my document, typing new text, clicking away, then coming back to edit the text, I am unable to get my cursor to reappear within that text box. I can only select the box itself. I cannot select the text. Where is my cursor?

    Even simpler than that.
    Clicking once in a text box selects it.
    Clicking once in a selected text box places the insertion point in the box.
    The clicks do not need to be close enough in time to be read as a double click.
    The same behaviour applies to table cells in Pages and in Numbers.
    Regards,
    Barry

  • How to drag global data in text editor in smart forms

    Hello friends,
    I am doing a smartform. I tried to drag the global data from field list and drop it in text editor but its not working.
    can you please help me how to do that or is it need any extra settings?
    Please help me friends.
    Thanks,
    Manisha
    Edited by: PATIL MANISHA on Apr 23, 2010 12:14 PM

    Hi Manisha,
    It is looking very strange. But still try to do following may be helpfull.
    1. First activate your smart form after declaring the variable in Global definition. Then try to drag n drop from Field list
    2. Or else click on Editor tab of Text node, Then Goto-> change editor (You will get a editor same as Sapscripts)
    put the variable like that:
    HT : &W_TOTAL-MASSG&
    Try this. Best luck...
    Regrads,
    Lokesh.

  • Sandy - a simple text editor

    sandy - a simple text editor
    Sandy is a X11 text editor with an easy-to-read, hackable C source. It uses GTK+ and GtkSourceView for convenience and is akin to surf, only it is a text editor, not a web browser. Sandy tries to maximize screen estate, minimize the SLOC used and not get in your way too much. It can somehow be controlled via XProperties and all preferences and keybindings are to be chosen at compile time. Two example configs are provided with the source.
    Features
    - Basic editing, saving, etc.
    - One document per instance
    - Embeddable (e.g. can use http://tools.suckless.org/tabbed for tabs)
    - Regex search, go to line functionalities
    - Pipe selection through arbitrary command
    - Pipe selection through predefined command(s)
    - Syntax highlighting
    - Line numbers, current line highlightnig
    - Simple autoindenting
    - Multi-level undo
    - Configurable at compile-time
    Dependencies
    - GtkSourceView2
    - Gtk+2
    - (probably) xorg-utils to get xprop to set XProperties
    - one method to grab user input: either zenity or dmenu in the pre-defined config files
    Screenshot
    http://sandyeditor.sf.net/sandy_editor.jpeg
    Homepage
    http://sandyeditor.sf.net/
    Download
    http://sourceforge.net/projects/sandyed … z/download
    AUR
    http://aur.archlinux.org/packages.php?ID=36084
    Comments, bug reports and patches welcome.
    Last edited by rafunchi (2010-04-13 23:24:26)

    Procyon wrote:
    It would be nice to be able to do something like this:
    1 abc
    2 dec
    3 abd
    4 edc
    5 {CURSOR}ad
    ^R, sed command: 1,3s/^/%%%/
    1 %%%abc
    2 %%%dec
    3 %%%abd
    4 edc
    5 {CURSOR}ad
    So you can edit and continue where you left off.
    The problem with implementing this behavior is 'sed' is an external command here. The full text is filtered through sed and put back in the buffer, not just lines 1 to 3. You can't just preserve the insert position as the text coming from the pipe might be completely different from your original. Same for searching the current line.
    You *could* remember your line+char position and move the cursor back there, but this would be highly unreliable and move the cursor to a third position in the buffer if your 's' command changes the number of lines (e.g. try s/:/\n/g in a password file)
    Also, a couple of tests with vim prove that it does not behave consistently in this regard, despite :s being an internal command there.
    if you really want to add '%%%' at the beginning of the line quite often, I suggest you define a binding or action for:
    t_editable, t_pipelines, { .v = (char *)"sed \'s/^/%%%/\'" }
    Then select the lines you want to target lousily (you don't need to select full lines) and launche the binding/action. It does move the cursor, but seems fairly quick.
    Procyon wrote:Maybe you can check for "/^s/" in the command to make it work on this current line, just like vim's :s///
    I made a wee change in the hg tip code. Now sandy "listens" to three properties regarding pipes:
    - _SANDY_PIPE: Pipes the selected text, or nothing by default as per f_pipe. This is used by the ^I binding in the default config.
    - _SANDY_PIPEALL: Pipes the selected text, or the full file if nothing is selected as per f_pipeall. This is used by the ^P binding in the default config.
    - _SANDY_PIPELINES: Pipes the selected text, extending the selection to full lines and matching the current line if there is no selection as per f_pipelines. This is used by the ^R binding in the default config. This means now sed is applied to full lines if there is a selection and to the current line if there is not.
    Thanks for your feedback. I hope this helps.

  • Using rich text editor (RTE) for custom applications

    Our users enter texts on two places:
    1) In Oracle Portal in text-items using the Rich Text Editor.
    2) In text-fields in a custom application using html-tags <textarea>blabla</textarea>. For formatting the users currently have to type in html-tags themselves. Now we want to provide them an html-editor.
    We would prefer to use the Rich Text Editor also for the custom application. However, that is integrated in Portal and the java-scripts are not easy to follow.
    Have you tried something similar? So, did you use the Rich Text Editor for your own application? If yes, how?
    If not, a very good alternative would be the qwebeditor (see http://www.qwebeditor.com). Did anybody replace the standard Portal rich text editor with the qwebeditor? In the Portal guides there are instructions about replacing the Portal rich text editor by another editor, but it is not clear if this will also work with the qwebeditor.
    Thanks for your respons !
    Best regards, Jan Willem Vermeer

    Hi Jan,
    I have configured FCKeditor in a few clients, and the process it's pretty straight forward, you can use the steps in the document (http://www.oracle.com/technology/products/ias/portal/pdf/cm_rte_1014_features.pdf) .
    Basically you download FCKeditor and put it in your apache server (you can put it unde rthe htdocs folder) after that, all you need to do is modify $ORACLE_HOME/portal/images/webword/buildUIHTML.html to reference the FCKeditor JS and CSS, and you can do the same type of reference for your custom apps.
    Regards,
    Juan

  • Rich Text Editor with Custom Text Attribute

    Hello All,
    We are using the latest version of Oracle Portal 10G. I have a need to create custom Attributes of the type text to let people enter a lot of text. But when User are in edit mode of an item where this custom attribute is used, the Rich Text Editor is not shown for entering the Text for the Custom Text Attribute. It shows a normal html text area. Has anyone ever used RTE with Custom Attribute?
    I request you guys for help.
    Thanks.

    The Problem with the Custom Attribute is not solved, but I have now compromised with the Situation and now I am not using a Custom attribute.
    Rather, Now I am creating a Custom Item Type using Base Text Type (earlier i wanted to create custom item type at my own without any base item type). In this case now I will not be able to change the Lable of the RTE (that is "Text", when the Custom Item is in Edit Mode), but I hope that my users can understand that much.
    I have created a template for portal pages. In the Template I can edit the Region Properties. When I edit the Region property of the region where I want to display my Custom Items. I get two Tabs on the top, Main and Attributes/Style. ON the main tab I can tell what type of region it should be, width etc, in my case it is item type region. And on the Attributes/Style tab, I can select from the availabe Attributes as which all Attributes I want to display. Here if i select only "Associated Functions" Attribute then normally portal should not render anything by default on the Page. It should rather make a call to the procedure which is associated with the Custom Item and as when I was creating the custom item type, I had clicked on "Display Procedure Results With Item", so portal should now display the result of my Procedure. So far it works without problem.
    But the problem is that the Portal displays the text at its own also. As i have written that Portal should not display anything at its own, this doesn't work in this version of Portal for a Custom Item Type that is made using Base Text Item Type. For all others it has worked till now (I have create 50s of Custom item types).
    You can better understand by going to the following URL. Just have a look between the two dotted lines (Dotted line is also a seperate Custom Item Type). Between the two Dotted Lines is a custom item, in general it would be a Custom News Item having title, image and so on.
    http://sunnode1.edvz.sbg.ac.at:7778/portal/page?_pageid=79,56047&_dad=portal&_schema=PORTAL
    I have really programmed a lot with portal but now at this stage where I am near to end, I am getting problems which are coming from Product. I request you for help.

  • Rich Text editor in Webdynpro

    Hi,
    With the new FormattedTextView in 2004s one will be able to render xhtml compliant rich test in Webdynpro.
    This however only covers the rednering of rich text.
    There still does not seem to be a rich text editor control available for webdynpro applications, which I think might be a common requirement for document centric applications.
    I was wondering :
    1 - will there be a richt text editor control available for WDP in the forseeable future ?
    2 - if not, are there any workardounds available to allow for the generation of rich text ?

    Hi Valery,
    Well, I already thought of that kind of solution, but I do not consider it a very clean solution. I know WDP supports portal eventing. On the other side of such a scenario you could even do without a 3rd party wysiwyg editor, cause SAP does offer an html editor control in its set of HTMLB controls.
    We intend to use WDP as a UI layer on top of SAPs KM. Our scenario involves template based publishing of structured documents (we first looked at xml forms, but they showed too many limitations). The idea is to model the document structure and content at runtime as WDP context structures (based on xml schemas) and then to serialize WDP context into XML content and metadata, with KM acting as business and persistence layer. Markup and insertion of images into the different text parts of the document however has become an additional requirement, which is why we are looking for a ways to fit that in our current design.
    You could indeed think of some kind of data exchange between a regular portal component and the wdp application, but I am not too confident whether that is going to be a reliable solution.
    PS : for the serialization of WDP context, your post in a different thread on this forum helped me a lot in my first attempts to create KM documents from data wdp runtime data (context). The link provided to the online book and your little example was very welcome. Thanks for that !

  • Update the content through Rich Text Editor

    dear all,
    Once i enter the content through the Rich Text Editor data are inside the datebase, but when want to update the things the data are not coming inside the Rich Text Editor, b'caz single quote, double quote,<> symbol is coming,

    Have you consider use Site Studio + Content Presenter?
    http://docs.oracle.com/cd/E17904_01/webcenter.1111/e10149/content_cp.htm
    http://george.maggessy.com/2012/05/inline-editing-in-content-presenter-for_10.html
    []'s

  • OBJECT_OBJREF_NOT_ASSIGNED for Text editor

    We tried to use Text editor on a Screen which is RF enabled. It is working fine when we work in SAP. When this is being connected from LM01 the below error message is coming.
    Runtime error: OBJECT_OBJREF_NOT_ASSIGNED
    Exception: CX_SY_REF_INITIAL
    The code:
      IF g_editor IS INITIAL.
    *-- Create custom Container
        CREATE OBJECT g_editor_container
          EXPORTING
            container_name              = 'EDITOR'
          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.
        ENDIF.
    *-- Create  Text Editor
        CREATE OBJECT g_editor
          EXPORTING
          style                  = 0
          max_number_chars       = 28
          wordwrap_mode          = 2
          wordwrap_position      = 14
          wordwrap_to_linebreak_mode = cl_gui_textedit=>false
          parent                 = g_editor_container
          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.
        ENDIF.
    *-- Remove text editor toolbar
        CALL METHOD g_editor->set_toolbar_mode
          EXPORTING
            toolbar_mode           = cl_gui_textedit=>false
          EXCEPTIONS
            error_cntl_call_method = 1
            invalid_parameter      = 2
            OTHERS                 = 3.
    *--Remove text editor status bar
        CALL METHOD g_editor->set_statusbar_mode
          EXPORTING
            statusbar_mode         = cl_gui_textedit=>false
          EXCEPTIONS
            error_cntl_call_method = 1
            invalid_parameter      = 2
            OTHERS                 = 3.
      ENDIF.
    Can someone please suggest what is missing here.
    Thanks,
    NKumar

    Hi,
    Looking at the code the problem seems to be at:
    ==============
    IF g_editor IS INITIAL.
    Create custom Container
    CREATE OBJECT g_editor_container
    EXPORTING
    container_name = 'EDITOR'
    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.
    ENDIF.
    Create Text Editor
    CREATE OBJECT g_editor
    EXPORTING
    style = 0
    max_number_chars = 28
    wordwrap_mode = 2
    wordwrap_position = 14
    wordwrap_to_linebreak_mode = cl_gui_textedit=>false
    parent = g_editor_container
    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.
    ENDIF.
    Remove text editor toolbar
    CALL METHOD g_editor->set_toolbar_mode   " This point
    EXPORTING
    toolbar_mode = cl_gui_textedit=>false
    EXCEPTIONS
    error_cntl_call_method = 1
    invalid_parameter = 2
    OTHERS = 3.
    *--Remove text editor status bar
    CALL METHOD g_editor->set_statusbar_mode   " This point
    EXPORTING
    statusbar_mode = cl_gui_textedit=>false
    EXCEPTIONS
    error_cntl_call_method = 1
    invalid_parameter = 2
    OTHERS = 3.
    ENDIF.
    ===============
    You are creating the object "g_editor" and catching the exception. I think create object for g_editor is failing and since you are not checking this it is causing the problem.
    You can fix the code as follows:
    =====
    IF g_editor IS INITIAL.
    Create custom Container
    CREATE OBJECT g_editor_container
    EXPORTING
    container_name = 'EDITOR'
    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.
    ENDIF.
    Create Text Editor
    CREATE OBJECT g_editor
    EXPORTING
    style = 0
    max_number_chars = 28
    wordwrap_mode = 2
    wordwrap_position = 14
    wordwrap_to_linebreak_mode = cl_gui_textedit=>false
    parent = g_editor_container
    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.         -
    > put the below code under this if. That means the code is executed only
                                          if g_editor is created.
    Remove text editor toolbar
    CALL METHOD g_editor->set_toolbar_mode   " This point
    EXPORTING
    toolbar_mode = cl_gui_textedit=>false
    EXCEPTIONS
    error_cntl_call_method = 1
    invalid_parameter = 2
    OTHERS = 3.
    *--Remove text editor status bar
    CALL METHOD g_editor->set_statusbar_mode   " This point
    EXPORTING
    statusbar_mode = cl_gui_textedit=>false
    EXCEPTIONS
    error_cntl_call_method = 1
    invalid_parameter = 2
    OTHERS = 3.
    ENDIF.
    ENDIF.
    =====

  • Saving the text in text editor changes text line format

    In my program I have an output witha  text editor box where
    we type in text and save , and if we want to print it it prints it out
    on a smartform. When I type in a text on the text editor box for example :
    "This will include a policy and best practice for
    what files can be stored on the server and where
    they should reside. The policy will include
    required ownership of each folder and required
    authorizations for access to folders. Also
    included in the policy will be a section describing
    best practices on the file and folder naming
    conventions. Anew file struicture of the drive that
    better aligns with the business. An drive with only
    four folders at the root level also will be de"
    After I type in this text in teh text editor and try saving it
    , it save sthe text but shows up with lots of gaps like below.
    "This will include a policy and best practice for
    what files can be stored on the server and
    where
    they should reside. The policy will include
    required ownership of each folder and
    required
    authorizations for access to folders. Also
    included in the policy will be a section
    describing
    best practices on the file and folder naming
    conventions. Anew file struicture of the drive
    that
    better aligns with the business. An drive with
    only
    four folders at the root level also will be de"
    I am not preety sure why on saving teh typed text it chnages to this format.
    I would like to have my program save it as is typed. Is this possible to do so
    and how?
    Thanks.

    Hi Aarav,
    Check the internal table used to store the text is having line length 100. Change that to 200 or more . You can see the difference . If still the problem persists, enter each line in the text editor and conclude each line with a carriage return( ENTER ) 
    key press.
    Hope this will help you.
    Regards,
    Smart Varghese

  • A text editor required

    Hi,
    i am stuck in the failsafe mode or if i even try to login from the single user mode i need a text editor all the editors in solaris 10 are useless they are graphical but i am stuck in command line please guide me something simple such as vim in linux because vim in solaris has problem even with the back space and other keys it really is not a good option i was using gedit but now my computer has got a problem and i need command line.
    i am a newbie to solaris and was using linux so it was much easier please help if you know how to get one good editor to work on command line.
    best regds
    ali

    you can use delete in suns vi instead of backspace. Also just remember to hit esc before trying to move the cursor. Once you get on your feet check out pkg-get at either sunfreeware.org or blastwave.org. If you install the pkg-get utility you can grab apps like vim from the command line when you need them.

Maybe you are looking for

  • Exchange emails lost when sent w/o connectivity?

    Hello, Are others losing messages when composing and sending emails via Exchange ActiveSync and hit "send" only to find out that they are in an area without coverage and it disappears? The message does not appear in drafts, sent folder, or the outbox

  • How to save Safari bookmarks when changing ownership and ID?

    My wife has her own iPad which I tied to my ID and account.  Now I would like to let her have her own account and ID.  I hope to share a few things eventually with home sharing.   I can use her iCloud email address to set up an account for her but am

  • I lost all my itunes songs. How can i get them back?

    My name is Nickie Berrellez. My computer got a virus and my pc completly turned off. I need help on getting all my songs, music videos, shows and games downloaded on to my new computer. Please help. Thank you.    

  • Java.io.IOExecption; must be caugh or declared to be thrown - omg?

    Hello everybody, I'm kind of new to java and as part of a school project I've got to make a fully functional program. When compiling (I use BlueJ, if it matters), I'm getting this message: java.io.IOExecption; must be caugh or declared to be thrown W

  • How do I migrate OnOne and NIK elements to CS6?

    Just loaded CS6 but need to access my OnOne software and NIK software withing CS6 as I have been right along in CS4?  Thanks.