Design an RTF Editor

I would like to write an RTF editor that lets you edit, save and open RTF text, which I could integrate into our project. The editor should have at least the
simple functionalities like WordPad has. If anyone has ever worked on a project like this, or is aware of any open source projects, or simple could give
me some hints, or tips, or point me in the write direction where to start off, I sure would appreciate it.

Hi,
Take a look at the Properties object for reading from
and writing to your properties file. For publishing
the content, you could take a look at servlets if you
would like to publish them as a webpage. Keep in mind
that you need some kind of web-container to execute
servlets, Tomcat will do great for these purposes.
For your GUI application, Swing is the way to go.Considering that advice: make sure you strictly maintain MVC separation, or the "will have a Swing GUI latere" part will become lots of duplicate work.

Similar Messages

  • Considerations should be taken into account when designing an RTF Template

    What overall considerations should be taken into account when designing an RTF template?.
    For example, how the tables should be set. When the report is running, I don't want to happen to the fields leaving the position defined during design.

    Hi,
    from my point of view, so general questions are not answered there...
    One note,
    I'm trying to get the data first, "load it" (for example) into Word and only then generate the tables using the wizards. This will give the effect.
    Eldar A.

  • 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;

  • Need RTF Editor which can be brought up from HTML page

    My application needs to be able to bring up a RTF editor in a html page and save the resulting RTF to the database in a BLOB. It appears that the email product in Oracle Collaboration suite does this. Does anyone know of software I can use to do this or any contacts in the Collaboration Suite group that I can talk to?

    I'm not extremely experienced as a JSP/Java programmer but here are my thoughts:
    It sounds like your basic requirements are fairly simple, but you are taking the long way around to get there. If it is a dictionary-style app and the administrator is of limited experience then you need to keep things simple.
    Why create pages to upload when you can create a template with JSP and insert the text data and the images from a form? Text and link info can be stored in a database and the actual image can be uploaded to a directory or put in the db if you know how. Java Server Pages (O'Reilly) has the image upload code you need.
    Am I on track here?
    Brad

  • Runtime tab canvas does not look the same as designed in layout editor.

    I created a tab canvas with the following physical properties:
    Corner Style - Chamfered
    Width Style - Variable
    Active Style - Bold
    The canvas looks nice in the layout editor, with the above properties. However, at runtime, the tab canvas seems to ignore the above properties and instead shows up with non-chamfered looking (whatever chamfered means) fixed-width rectangular tabs and the active tab page label is not in bold font. Is there a runtime setting that I'm missing here?
    null

    I am experiencing the exact same thing. The width of the tabs in the layout editor is varied depending on the length of the text. However, at run-time, the width of the tabs is fixed, causing the tabs to be wider than the window and a set of VCR buttons to appear in the upper right corner of the canvas. Personally, I think this is a Forms bug. Why would they intentionally let us set the width to variable at design-time only to force a fixed width at run-time?

  • Unable to see layout design in page editor

    I am using JDeveloper version 11.1.2.0.0.
    I downloaded the hands-on practices from the site Tuhra2 – Sample application for the Oracle JDeveloper 11g Handbook.
    When I open the jspx files under Web Content, the visual design does not show up in the Design tab, instead I can only see the tags in text form.
    What can I do to see the visual layout of the page?

    I'm having same strange behavior.
    Before my JDeveloper 11g R2 Design Page work OK. Than I checkout application from SVN to another folder in FS (my JDev was closed meanwhile). I opened JDev and closed "old" app and open "new" (from that different folder) app and my Visual Design Page Editor does not work well (it is rendering well unusual with some kind of structure view).
    I have checkouted my app on another computer which has JDev installed in designer works ok. So obviously this is not app-based issue but JDev-vbased issue. What now?
    And if I enable Tools -> Preferences -> JSP and HTML Visual Editor -> Show Design Time Messages in Log I'm getting:
    WARNING: [ADFbc, ADFc, ADFm, ADF_FACES, TRINIDAD] features were found in ViewController.jpr but are not installed. Install these technologies before you proceed.Edited by: zmeda on Sep 1, 2011 11:55 AM Added WARNING

  • When does this kind of error come in RTF Editors?

    Hi All
    I am writing an applet based text editor, based on RTF Editorkit, i have got this pecular error when doing executing this statement.
    rtf.read(fileInputStream1,ep.getDocument(),0)
    Where rtf is my RTFEditorKit instance.
    ep is my JTextPane
    and fileInputStream1 is the fileInputStream which i am using
    The above line of code threw me an IOException saying the below
    'Too many close-groups in RTF text'
    I am unable to understand what could be the source of this error, or may be what will trigger this particular error.
    Please help
    Swaraj

    This happen if u got more closing braces than opening braces in your rtf.. RTFeditor Kit calculate level base on braces

  • RTF Editor

    I am scanning a fairly complex document, and then do an OCR to RTF format using Omnipage.
    WordPad is insufficient for editing the resulting RTF file. I have also not been successful in using a word processor, and then saving to RTF format, as certain formatting is often lost.
    I looked up the RTF standards, but it is difficicult to make heads or tails of.
    I can't be the first person that has run into this problem, are there certain Editors that people use for creating more complex file layouts than WordPad can handle, or is there a way to tell which formatting you will lose when you save a file in RTF format from Microsoft Word.

    Hi Lee
    The RTF spec is certainly a subset of the MSWord 'doc' format and other Word processors. Its owned by MS but an open format so its up to the individual processor developers as to how much of the spec they implement. MSWord should have the most comprehensive implementation of course.
    There are differences in what RTF supports compared to 'doc' but I have not seen a document from MS highlighting them.
    Tim

  • Is it possible to integrate an RTF format editor in an apex page?

    Hi, guys:
    I wonder if it is possible to integrate an RTF format editor in an apex page? so user can edit RTF document in APEX?
    Thanks.
    Sam

    I don't think so. Browsers may be able to show the content of an rtf file (through extensions, like it does with a .doc or .pdf file), but there is no possibility to directly edit the content.
    Even if it were possible, one rtf is not the other. You can save a Microsoft .doc as a .rtf, but it might contain many rtf features that are not supported in another rtf editor.

  • RTF Editing

    I have added an RTf editor to an applet and it works fine but I have 2 questions,
    1. Is there anyways I can get some kind of toolbar to display above it to do editing inside it.
    2. when I copy and paste things into it they appear correctly except when I try to copy and paste a table it, won't work is there a way I can get it to work?
    thank you

    You can create your own Toolbar class. Basically, just extend a Panel object and set it's layout to FlowLayout. Then you can add images to the toolbar. Add a MouseListener to the Toolbar panel (well that is have it implement MouseListener). Attach the listener to the images (which are AWT Components).
    You could have two images per "icon", one would be the off position, the other would be the on position.
    I'm sure Swing has a better way, and I'll bet a more visual-design-time based API.
    I hate Swing. Long live AWT! Although each has good and bad points. Swing is better for people who do not hard code things (i.e. don't really know java) - these would be the visual-design timers such as the Forte studio, JBuilder, etc. I am a hard (or hand) coder. I spend hours and hours typing long lines of detailed and intricate code. However, my apps run better and I can debug them faster - because I know what is happening, what it is called, and where it is and what it should be doing at any given point.

  • Report header issue in .RTF Template

    Hi,
    I have designed a .RTF Template, I need to display a Parameter in the header part of the template, If the Parameter doesn't contain values then I do not want to show them, Can I have If and End if condition in the header part, I believe I cannot use Field in the header part.
    How do I achieve it, If you need the .RTF template i can upload.
    Regards,
    Ashoka BL

    Hi,
    Declare the parameter with the syntax <?param@begin:AAAA?>
    And in the header use <?$AAAA?> if AAAA is the name of your parameter. If theres no value, it will automatically not display since the value is blank, No need of an if wrapper.
    -Domnic

  • PDF formating issue in RTF Template

    Hi,
    I have an XML for which i have data for both subavisor level and fund level and the data at each fund level are derived/aggregated from Subadvisor level(using complex formula which is taken care at the database level not at the RTF level).
    I need to show both Fund level data and SubAdvisor level data in the report, so i have designed the required RTF Template to show the Sub Advisor level data for each fund Level Data.
    The Sample XML is(i have only included one SubAdvisorLevel data(XYZ) for the Fund(ABC) :
    <DATA_DS>
    - <G_1>
    <FUND_NAME>ABC</FUND_NAME>
    <SUB_ADV_ANA_MIL>1234</SUB_ADV_ANA_MIL>
    <MGMT_FEE_PAID>1234</MGMT_FEE_PAID>
    <MGMT_FEE_PAID_O>NA</MGMT_FEE_PAID_O>
    <MGMT_FEE_BP>1234</MGMT_FEE_BP>
    <MGMT_FEE_BP_O>NA</MGMT_FEE_BP_O>
    <TA_BILLABLE_ASSET>NA</TA_BILLABLE_ASSET>
    <TA_FEES_PAID>NA</TA_FEES_PAID>
    <TA_FEES_PAID_O>NA</TA_FEES_PAID_O>
    <TA_EFF_BP>NA</TA_EFF_BP>
    <TA_EFF_BP_O>NA</TA_EFF_BP_O>
    </G_1>
    - <G_1>
    <FUND_NAME>ABC</FUND_NAME>
    <SUB_ADV_NAME>XYZ</SUB_ADV_NAME>
    <SUB_ADV_ANA_MIL>123</SUB_ADV_ANA_MIL>
    <MGMT_FEE_PAID>123</MGMT_FEE_PAID>
    <MGMT_FEE_PAID_O>NA</MGMT_FEE_PAID_O>
    <MGMT_FEE_BP>123</MGMT_FEE_BP>
    <MGMT_FEE_BP_O>NA</MGMT_FEE_BP_O>
    <TA_BILLABLE_ASSET>NA</TA_BILLABLE_ASSET>
    <TA_FEES_PAID>NA</TA_FEES_PAID>
    <TA_FEES_PAID_O>NA</TA_FEES_PAID_O>
    <TA_EFF_BP>NA</TA_EFF_BP>
    <TA_EFF_BP_O>NA</TA_EFF_BP_O>
    </G_1>
    - <G_1>
    Because of this structure the XML, i have designed the RTF template by putting the following code:-
    <?for-each-group:G_1;./FUND_NAME?><?sort:current-group()/FUND_NAME;'ascending';data-type='text'?>
    <?FUND_NAME?> <?SUB_ADV_ANA_MIL?> ............................................(other Attributes are also present)
    <?for-each-group:current-group();./SUB_ADV_NAME?> <?if:SUB_ADV_NAME!=''?> <?SUB_ADV_ANA_MIL?>............(other Attributes are also present)
    <?end if?><?end for-each-group?>
    The only issue i am facing while exporting this RTF Template to PDF is that i am getting a blank row in the PDF(because of the condition <?if:SUB_ADV_NAME!=''?> ) for the 1st level of Sub Advisor level Grouping and there after all the Sub Advisor level data are coming up fine.
    Can you please help me out in resolving this issue

    Thanks Bipuser,
    But the inlines function in not giving the desired result, it is working in the same way even if i haven't put any condition.
    The problem with the existing condition <?if:SUB_ADV_NAME!=''?> is that only PDF is generated with the extra space and Excel does not comes up any space.
    Please let me know if you need any further information from my end.
    Thanks again,
    Regards
    Mrinal

  • Conditional Formatting in RTF templates

    HI
    I am just going around with designing of rtf templates. I have a question regarding the conditional formatting feature. The question is
    IF i am having different type of customers(corporate,individual,etc..) passed as parameters, Can an particular cell be formatted with different colors for different customers. for example, if the parameter is corporate customer the the color of particular cell should be RED in color, and if parameter is Individual the color of cell Must be GREEN in color.
    Please help me out with this.
    Thanks in advance

    Yes you can conditionally format the individual cells.
    Take a look at the guide (link provided) and search for "Cell Highlighting":
    http://docs.oracle.com/cd/E10415_01/doc/bi.1013/e12187/T421739T481157.htm
    Example code: <?if:debit>1000?><xsl:attribute xdofo:ctx="block" name="background-color">red</xsl:attribute><?end if?> <?debit?>
    Thanks,
    Bipuser

  • How to design report like below

    I Want to make report like this
    * I have Query Q1 (vendor_id, vendor_site_id, invoice_id, ....)
    * base on criteria on Q1 for example : vendor_site_code = vendor merchandise
    I want the output on Q2 (select field A, B,C) ==> I already design on Q_M
    base on invoice_Id (Q1)
    * base on criteria on Q1 for example : vendor_site_code = vendor non merchandise
    I want the output on Q3 (select field D,E,F) different from Q2 => Q_NONM
    base on invoice_id (Q1)
    The problem is while showing the lines I cannot filtering, always show the first on repeating frame
    I design on Report Editor Layout like this for detail / lines
    Fix Frame M1
    Repeating R1 source(Q2) => using format trigger
    Repeating R2 source(Q3) => using format trigger
    but it didn't work, always show R1, R2 cannot show
    How do I make report like that??

    if I use 
    SELECT FORMAT(getdate(),'dd-MMM-yyyy hh:mm:00')
    I'm getting the following error
    'FORMAT' is not a recognized built-in function name.
    Thats because your version is below 2012
    then use the other suggestion which is
    SELECT REPLACE(CONVERT(varchar(12),datefield,106),' ','-') + ' ' + CONVERT(varchar(5),datefield,108) + ':00'
    FROM Table
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to generate CSV ouput from JD Edwards 8.11 using rtf template

    Hi,
    I have a report "Critical Date Report" - R15611 in JD Edwards 8.11. This report has to be generated as CSV output from BI Publisher which is embedded to JDE. why we choose the output in BI Publisher is to move some of the data displaying to different place in the page(ex: Move the company address from top left corner to Bottom right corner).
    In order to achieve this
    1.We create blank rtf template and upload to XML repository using P95600 application
    2.Create report definition using P95620 application
    3.Here I see the available output types as PDF,RTF,HTML,EXCEL,POWERPOINT and XML,ETEXT(GRAYED OUT)
    Which output type we can use for CSV ?
    4.Execute the report definition of the critical date report from P95620 to get the XML source
    5.This XML source will be loaded into the blank rtf template
    6.From this point no idea how to design the rtf template in order to get the CSV output.
    7.We did design and output types as excel - but the result data is not in good formatting and alignment.
    If anyone has worked on similar type of requirement,let us know how to do or send a sample XML source,rtf template and how the CSV output will be.
    Thanks in Advance.
    Vijay

    Ive replied to your other post.

Maybe you are looking for

  • Problem with procedure in package

    Problem with procedure in package: create table accounts (acno number(10), name varchar2(20), balance number(10,2)); create package banking is procedure new_acct(acno NUMBER, name IN VARCHAR); procedure acct_dep(acno IN NUMBER, amount IN NUMBER); pro

  • How can you get the car stereo to play songs on nano in order?

    Hi--I just got an ipod nano and connect it to my car stereo via a usb port.  No matter what controls I try (on the car) it just plays songs in alphabetical order of the song (regardless of the album title).  How can I get it to play in the order I wa

  • ME51N - need to concatenate the PR # & the item # into a custom field.

    Hi All, I need to concatenate the PR number and the item number into a custom field in the customer data tab in transaction ME51N. I been looking at some user exits, but the problem is that when I try to use BAPI_PR_CHANGE in a user exit the BAPI fai

  • Web Printing and IE9

    I am using the new IE9 and its true - it has a very minimalistic view - too minimalistic.  How can I get the "Web Printing" button back?  I have enabled every legacy view I can find and I still don't have the button, even though in "manage add-ons" i

  • Link to API for air.swf

    Hi, I've been searching the interwebs all morning and can't seem to find a link to documentation describing the properties, methods and events I can use from the air.swf file in conjunction with using AIR via a web browser.  I'm able to load the air.