Help - need text editor component

Hello,
I need a simple text editor component to add to my application.
I need to load it from a database file line by line.
It must be able to handle page breaks (new page) when the user types more than will fit on a page.
I have not been able to find anything to do this in java, I found a .net TextControl, but I want to stay in java if possible.
Are there any code samples or anything available to do this?
If it does not handle page breaks, it is useless to me because I need to write the text back to the database and must be able to handle multi-page.
I thought about fileing a jtextarea one page at a time by loading the text in an array. I still have the problem of if the user types more than will fit on a page.
Thanks for the help.
Frank

That might help you.
http://forum.java.sun.com/thread.jsp?forum=57&thread=42
964
regards,
StasWow! That's a gem - erm - (havent tested /run it yet but) ...thank you

Similar Messages

  • Help with Text Editor

    My requirement is to show a text editor on the screen.allow the user to type in it. (Example  he type n lines). Store the content in D/B table. Next time i display the screen, all n lines should be displayed.Now if he enters m lines in addition to n lines ... then i should display n+m lines in the text editor.
    How can i do that.

    Hi Karthik,
    Go through program <b>RSDEMO_DRAG_DROP_EDIT_TREE</b>.
    Reward if this helps,
    Satish

  • Help needed-regarding swing component and linux

    Hi
    I am trying to run java program on Linux machine which doesn't have GUI support. Due to that following exception is throwing,
    java.awt.HeadlessException:
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
    at java.awt.Window.<init>(Unknown Source)
    at java.awt.Frame.<init>(Unknown Source)
    at javax.swing.JFrame.<init>(Unknown Source)
    at org.jfree.ui.ApplicationFrame.<init>(ApplicationFrame.java:66)
    at ismschart.AbstractIsmsChart.<init>(AbstractIsmsChart.java:82)
    at ismschart.CHART_DAILY_PEAK_ACTIVITY.<init>(CHART_DAILY_PEAK_ACTIVITY.java:56)
    at ismschart.jChartTbl.createIsmsChart(jChartTbl.java:197)
    at ismschart.jChartTbl.main(jChartTbl.java:98)
    Can any one tell me, How to overcome this?
    Is there any tool which provides UI support for Linux?
    Thnaks
    -Ravi

    cut and paste from API
    Thrown when code that is dependent on a keyboard, display, or mouse is called in an environment that does not support a keyboard, display, or mouse.
    environment issue

  • Integrating a Rich Text Editor Like CKEditor with ADF pages

    Dears
    I am looking for a way to use a rich text editor like TinyMCE, CKEditor, etc... within ADF pages
    Is there a simple way how to use such text editor in my ADF application?
    Looking forward for your reply
    Best regards
    Mohamed Chargui

    Mohamed Chargui wrote:
    Dears
    I am looking for a way to use a rich text editor like TinyMCE, CKEditor, etc... within ADF pages
    Is there a simple way how to use such text editor in my ADF application?
    Looking forward for your reply
    Best regards
    Mohamed CharguiThere is an ADF Rich Text Editor component - does that not meet your needs?

  • How to configure customized rich text editor in a dialog

    I have a customized rich text editor component in my project which i want to use it in a dialog component.
    I tried by changing the xtype value from 'richtext'  to the customized rich text editor path as '/apps/project1/components/shared/text_rte' but i am not able to see the editor.

    See http://stackoverflow.com/questions/1946426/html-5-is-it-br-br-or-br for your <br> example.  <br/> is XHTML, not necessarily needed in HTML5.

  • Help Needed for Text Editor

    Hi All,
    I am working with text editor. Error which is displaying while i am activating the my module pool program is.
    "PI_TEXT_KEY" must be a character-type field (data type C, N, D, or T) . "INTERFACE". by "INTERFACE". by "INTERFACE". "INTERFACE". by "INTERFACE". by "INTERFACE".     
    This is declaration that i have done for PI_TEXT_KEY.
    TYPES: BEGIN OF scr_text_line,
             line(line_length) TYPE c,
           END OF scr_text_line.
    DATA:
      BEGIN OF text_idx,
        reqno    TYPE yreqno,   "table field with NUMC and 5 as length
        srtf2    LIKE yrequests-srtf2, "data element is SYBIN1
      END OF text_idx,
      pi_text_key  LIKE text_idx.
    Any suggestions how to over come from this error.
    Regards.
    Balu
    Edited by: Balu CH on Oct 21, 2008 3:57 PM

    Hi Pavi thks for responding.
    As i have mentioned in my previous post my field yreqno & yrequests-srtf2 properties are ..
    yreqno - NUmc and length is 5 since i have to hold only numeric values.
    If i change them to Char then i may not increment my request number so in this type of case how to deal with.
    srtf2 - dataelement SYBIN1 is been used for which INT1 is my data type and 3 is my length.
    Regards
    Balu

  • Need to have a Rich Text Editor

    I require to use a Rich Text Editor where in I can copy both text and attachments (word/excel/pdf) from an email (Outlook or Lotus Notes) and have that stored into an Oracle table.
    The text that is copied must go into a CLOB column in the database whereas the attachments should be stored as a BLOB.
    My preference is copying the complete data (text and attachments) in one go but if that is not possible then copying the text and attachments separately would do.
    Also there is no limit on the number of attachments that might be there.
    Any solution using Java / Oracle would be greatly appreciated.

    Hi,
    We are trying to connect to Lotus Notes mailbox using JavaMail using the IMAP protocol. We are successfully able to ping our mail server but are not able to connect to the mailbox. We tried the default port option for IMAP (143) but were not able to ping the server as well but with port 25 we are able to ping the mail server.
    Please find below the error we are getting on the console -
    Exception in thread "main" javax.mail.MessagingException: 220 SERVERNAME Hello!;
    nested exception is:
         com.sun.mail.iap.ConnectionException: 220 SERVERNAME Hello!
         at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:477)
         at javax.mail.Service.connect(Service.java:275)
         at jmail.javamail.main(javamail.java:51)
    Caused by: com.sun.mail.iap.ConnectionException: 220 SERVERNAME Hello!
         at com.sun.mail.imap.protocol.IMAPProtocol.processGreeting(IMAPProtocol.java:201)
         at com.sun.mail.iap.Protocol.<init>(Protocol.java:91)
         at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:87)
         at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:446)
         ... 2 more
    Please let us know if we need to perform any additional authentication check needed before connecting to the server.
    Any help is appreciated.

  • E4 support Help, editor and view management, text editors, resource views, preference ?

    Hi friends,
    I am create pure E4 RCP Application but E4 support Help, editor and view management, text editors, resource views, preference and properties or not ? and how to support? any other solution ?
    i am confusing E3 use or E4 in my application ?
    Please help me friend.

    Ad help: There was a recent thread on this forum where someone reported
    that he managed to include the help stuff
    Ad text-editors: No not really although the base framework
    org.eclipse.text and org.eclipse.jface.text can be used
    Ad preference: The core stuff is there but the preference dialog as you
    know it from the IDE is not available
    I think the biggest amount of work is to get a decent text-editor for
    your application. It naturally depends on what text you need to edit if
    it is pure ASCII it is trivial, syntax coloring is not a big deal either.
    Tom
    On 16.07.15 10:50, Lalit Solanki wrote:
    > Hi friends,
    > I am create pure E4 RCP Application but E4 suppor Help, editor and view
    > management, text editors, resource views, preference and properties or
    > not ? and how to support? any other solution ?
    >
    > i am confusing E3 use or E4 in my application ?
    >
    > Please help me friend.

  • Newbie help with sample Studio app. "Plain Text Editor"

    I'm trying to make the jump from AppleScript to AppleScript Studio, and because I want to eventually write a document producing application I thought I'd start with the textbook example "Plain Text Editor" included with Xcode. I think I see how menu items are connected to "Target/Actions," and I was able to build and run it without difficulty. It's remarkable how little AppleScript had to be written to produce a rudamentary text editor. But in playing with the built application, I noticed that the Revert menu item does not work exactly as expected.
    If you create a text document, and then make some change to it, and then click the Revert menu item, you get the expected little dialog asking if you want to revert to the most recently saved version, but if you then click the Revert button, the text displayed in the text view object does not revert to the original. However, something is happening, because whatever code is behind the Save, Close, and Quit menu items does seem to be "aware" that the Revert item has been invoked: because if you click one of these after Revert, the "do you want to save changes?" warning doesn't appear, just as one might expect.
    The Revert menu item seems to be connected to a "Target/Action" called "revertDocumentToSaved:" which sounds perfectly reasonable. But does the fact that Revert doesn't cause the displayed editing text to revert mean that (a) there is a bug in the code behind this Target/Action, or (b) that the writer of this textbook example just didn't bother to do everything needed for the Revert item to work in an intuitive manner?
    Whichever the answer, what would I do to make it work properely?
    It seems like there must be some sort of connection between the text view object in the editing window, and the Close, Save, Quit suite of menu items, because the behavior of these is dependant on whether or not there are unsaved changes in the text view object. But looking through the Inspector for this object, I don't see any, neither AppleScripts, nor Outlets, nor Target/Actions. Where and for what should I be looking?
    Dual 1.2 GHz   Mac OS X (10.4.8)  
    Dual 1.2 GHz   Mac OS X (10.4.8)  

    I think -- and I'm sure someone will correct me if I'm wrong -- that this is a place where AppleScript Studio's implementation just isn't done right. Either they intended to add a "revert" handler somewhere and forgot, or else they meant to have it send an existing message and didn't.
    I haven't done any document-based applications -- heck, I've only dabbled slightly in AppleScript Studio -- so there may be a "deeper" answer to this, but you might consider just hooking the menu item up to send its "choose menu item" handler to your document script, and have it react accordingly.

  • Need help in finding mpeg2 component number to unlock key so I can burn a dvd?

    Need help in finding mpeg2 component number to unlock key so I can burn dvd?? I have premiere elements 3.0
    Thanks,
    sylvia

    Sylvia,
    I cannot comment on PrE 3, as I did not start until PrE 4. With the latter, when one went to use one of the modules, they were automatically "registered." Based on comments in the Help file, I asked pretty much this same question, back then. All was done automatically, in PrE 4.
    Maybe those, familiar with PrE 3, can be of help to you.
    Good luck,
    Hunt

  • I, like all users, spend most of my T'bird time composing; we need a credible text editor ... when?

    MS Outlook uses Word as its text editor, and aside from the fact that Outlook in general is a bit clumsy, it's a joy to compose an email. Why can't Thunderbird engage a proper test editor (paid option, perhaps) to free us from the only really bad feature of an otherwise fine product?

    A hoy that makes my life anything but with people here all the time with virus alerts, mails that do not forward or simply do not display correctly. All because Outlook uses a word processor to compose mails that it fills with Microsoft Word proprietary rubbish that send anti virus programs and real HTML programs into a spin. Microsoft gave their customers what they asked for an be damned about the rest. Unfortunately the customer is not always right, even if they think so, and the result is mail is a lot further from a homogeneous standards based thing than ever. It is almost to the point that you have to have a Microsoft client to read mail from a Microsoft client, an Apple client to read mail from an apple client and then there is everyone else.
    Undoubtedly Thunderbird composer needs work, but it will never be a word processor. Your writing HTML for the web. therefore fonts are very limited, as are sizes. anything that pretends otherwise is just making a fool of you and your recipients.

  • To add meta tags, you open your published .html pages with TextEdit or any other text editor and modify as required. You have to do redo it each time you republish. Ihow do I do this? I need step by step instructions

    To add meta tags, you open your published .html pages with TextEdit or any other text editor and modify as required. You have to do redo it each time you republish. I need step by step instructions on how to accomplish this  please .

    Rage Sitemap Automator and iWeb SEO Tool are two different applications.
    Use SEO Tool to add the title tag and meta description. These need to be added to the html file for every page of your website. SEO Tool stores all these so that when you republish you only need to add tags to any new pages and click the re-apply button to refresh the existing ones.
    Once you have added. refreshe the tags with iWeb SEO Tool and uploaded the files with your FTP application, then open the site in Sitemap Automator and create and upload a new sitemap.
    Once you have set up accounts with Google, Yahoo and Bing, verified your site with each and submitted a sitemap, on subsequent publishing Sitemap Automator will resubmit the sitemap with one button click. It will also notify Ask.com whch doesn't require an account since you can add your domain name to this URL to ping them...
    http://submissions.ask.com/ping?sitemap=http%3A//www.domain.com/sitemap.xml

  • Hello.  I am using Breeze text editor on my macbook.  To exit the editor I need to use "keypad 8".  Is there a way to map this to the keyboard or a series of shortcut keys?

    Hello.  I am using Breeze text editor on my macbook.  To exit the editor I need to use "keypad 8".  Is there a way to map this to the keyboard or a series of shortcut keys?

    I have found the solution for myself for the above.  I use a specific scripting program which is accessed by Control A. To pause it, you need to use Control B. not sure if this would work for any other application but it resolves my dilemma after hours of trying!

  • Urgent help needed in Rich Text Functionality in BSP (Bold, Italic, etc)

    The standard Appraisal BSP (HAP_DOCUMENT) displays the documents in a plain text box
    Scenario - Standard  BSP application HAP_DOCUMENT for appraisals provides users to input in plain text boxes (htmlb textedit)
                    However, there is requirement to support rich text (bold, italicised, underline etc) for these text boxes. Basically, there are 3 aspects to  this scenario
    1. Enable these plain textboxes with rich text editor
    2. Store the rich text contents of text  boxes in Database table
    3. Convert and display the data stored in db table as rich text.

    Note that the previous reference to tokens only applies if the field is a Multiline text field. Regular fields can't change their font or display based upon mapping data.

  • Configuration of the rich text editor not working as expected, can you help?

    Hi,
    I'm having a great deal of trouble customising the available features of teh rich text editor to the point where I believe there is either a bug, or the documentation is incorrect.
    I have  defined 3 plugins; edit, format and lists.
    I can configure edit to enable or disable features, but format and lists cannot be configured and always display as default no matter what I configure.
    Here is the configuration:
    <jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
        jcr:primaryType="cq:Dialog"
        xtype="dialog">
        <items jcr:primaryType="cq:WidgetCollection">
            <text
                jcr:primaryType="cq:Widget"
                fieldLabel="Text"
                hideLabel="{Boolean}false"
                name="./text"
                xtype="richtext">
                <rtePlugins jcr:primaryType="nt:unstructured">
                    <edit
                        jcr:primaryType="nt:unstructured"
                        features="[cut,copy]"/>
                    <format
                        jcr:primaryType="nt:unstructured"
                        features="[bold]"/>
                    <lists
                        jcr:primaryType="nt:unstructured"
                        features="[ordered,unordered]"/>
                </rtePlugins>
                <htmlRules jcr:primaryType="nt:unstructured">
                    <links
                        jcr:primaryType="nt:unstructured"
                        ensureInternalLinkExt="{Boolean}false"
                        protocols="[http://,https://,mailto:,javascript:]"/>
                </htmlRules>
            </text>
        </items>
    </jcr:root>
    As you can see I specify only bold for format, and ordered and unordered for lists, but all features are still present (edit however is configured as expected).
    Hopefully someone can point out a schoolboy error that I have made, or agree this is a bug.
    Thanks in advance
    Chris

    Nope, upgrade to 5.6.1 makes no difference.
    @Jr. Jason - What version of CQ5 are you running where you are seeing the above configured correctly?
    Also I've found that I can't enable the image plugin.
    I'll raise a support call.

Maybe you are looking for