Basics for a Java based text editor.
I want to try and write a simple java text editor I can upgrade as I learn more about java. Can anyone point me in the right direction or tell me the basic layout of a text editor?
I want to try and write a simple java text editor I
can upgrade as I learn more about java. Can anyone
point me in the right direction or tell me the basic
layout of a text editor?A text editor consists of three parts. User command interaction, text screen presentation and text data handling. Start with a small Java application with a GUI and check out the different Swing components and how they work. Internally the text can be held in a double-linked list where each blocks have space for 1000 characters or so. You'll also need some file handling to store the text externally.
Similar Messages
-
Hi,
does anybody have any good ideas for a Java based Thesis project, something that could be completed in no more than 6 months. I have been working with Servlets & J2ME for over a year, but I'm having trouble coming up with a good/challenging project....
Any help appreciated,
ShaneYou can find a ton of potential student projects here:
http://mindprod.com/projects.html
Dunno if any of them fit your criteria - but it's a start...
Good luck!
Grant -
Message split on adapter engine for the java based IDoc adapter
Hi Guys,
Do you know if message split on adapter engine is available for the java based IDoc adapter on the single stack (PI 7.31)?
I'm getting such exception when I try to post 3 IDocs
Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.idoc.exception.IDOCAdapterException: Error before sending due to idoc parsing error: (7) IDOC_ERROR_PARSE_FAILURE: Invalid XML 1.0 character encountered within IDocXML for type <ns0:Messages>:
state=EXPECTING_IMMEDIATE_TAG_END, charPosition=68, lineNumber=1, columnNumber=69, invalidChar=U+0078,
sourceSnippet=...UTF-8" standalone="no"?><ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge"><ns0:Message1><...
^
Mapping is one to many.
Each IDoc content has been compared manually against the xsd schema and it was fine.
I know that old way of modifying xsd is still possible.
Best regards,
WojciechDid you find a solution to this? Having a similar error right now.
Thanks and kind regards
Jens -
Looking for a java-based SDK that handles file conversion to PDF and TIF...
Hi all,
First off, this is my first posting so I'm not 100% sure where to post this topic. So please forgive me if I'm accidentally posting in the wrong location.
My question deals with a project I am currently working on.
I am looking for a java-based SDK that can meet the following requirements...
1) convert all printable file-formats (i.e. JPEG, DOC, TXT, PPT, etc.) into PDF
2) merge multiple PDFs into one PDF
3) convert PDF to TIF or at least do some sort of conversion to TIF
4) works in Java or some sort of web-based language
5) free or relatively cheap
Any advice/suggestions would be greatly appreciated.
Thank you very much.I don't think you will get one API to do them all.
Some helpful hints:
[http://schmidt.devlib.org/java/libraries-pdf.html]
[http://xmlgraphics.apache.org/fop/] (with the pdf-image extension, that I can't find now :shakefist)
JAI -
Searching for a good programming text editor
Does there exist a text editor for Linux that has got these features?
-can open multiple documents
-can easily switch to any open document, e.g. by just clicking the document in a list or tree on the left (tabs alone won't do because there's not enough space to slow 20+ documents if there are only tabs)
-has a built in command prompt to type compile and debugging commands, which is by default in the folder where your documents are, if all documents are in the same folder at least, otherwise it doesn't really matter to me
-can save sessions, projects, ..., which basically is a way to quickly open your multiple documents belonging to a certain project
-has a super cool search function with options like "whole word" and "case sensitive" clearly visible in the search dialog, and remembering these settings for any open document you search in
-can easily search through all open documents (e.g. like visual studio can)
-has the type of text editing GUI where you can use the mouse to select text, use ctrl+a to select all, use ctrl+c/ctrl+v to copy paste, home/end to navigate the cursor to begin/end of line, F3 to search for next match, etc... (so no vi derivates I'm afraid)
-has modern interface, menus, file save/open dialogs, etc..., not something that appears to come from 1995 (so I think emacs is out of the question)
What I'm looking for is similar to Kate 3.5 or parts of MS Visual Studio. However Kate 4.1 isn't suitable anymore because they destroyed the search function of it. And preferably something that is independent of a desktop, because it's sad that Kate's features can get ruined by people who develop a desktop.
Does anyone have ideas if there exists such a program?
Last edited by aardwolf (2009-04-25 09:15:07)Wra!th wrote:You described SciTE
Look good, but ONE thing: I found that F8 "Output" opens a screen that has some properties of a linux terminal except some weird "Exit code:1" messages. However, if I press the "up" arrow, it doesn't scroll through the console history but instead moves a cursor up. I need it to work like a linux terminal with history because I don't want to retype long commands all the time. It also doesn't show the correct type and color of my user prompt. Is there any way to get a more conventional console in the Scite window somewhere?
Also, scite's interface also looks a bit 1995
EDIT: oh hmmm and it appears to not be able to open more than 10 files. That's too limited I'm afraid
Shame, it almost looked like what I needed.
Last edited by aardwolf (2009-04-25 12:11:21) -
Hi guys,
I'm new of Java Fx technology, that I find fantastic!
What I want know is to embed in my java fx application a rich text editor (like a smart word processor).
What I need is this:
1) open a document format in text editor
2) perform formatting operation, like spacing, bolding, change fonts and other
3) save / print document
Do you have any idea is does exists some free for commercial use project?
Thanks, RegardsI think javafx not contains such component yet, but you can try to use editor written with standard java. You can use standard java components and packages in your javafx projects.
-
Hi Genies
How can i create a Text Editor without using TextArea? I would like to use only AWT not Swing or Java 2. Any Idea ?
ShanThe AWT tools are woefully inadequete for creating a text editor. The AWT textarea does not support fonts, colors, custom line wrapping, line numbers, or anything else that would make a good text editor.
You could do it as an applet, but you would have to create your own text display by subclassing Canvas and writing text to specific locations. You would also have to write your own scrollbar, toolbar, button class that supports icons, etc.
It is usually just easier to make sure that people have swing installed. If you use a later version of Java, you can also do Java WebStart which will allow you to open and save files on the hard drive if the user chooses them. You can't do that easily with applets (requires signing your applet for $200 per year).
If you end up writing a text editor, I would suggest putting my syntax highlighting libraries into it:
http://ostermiller.org/syntax/
Stephen -
FRM-40209 Field must be of form . - for a non-based text item
Hello,
When I try querying using a VARCHAR2 non-based text item in a table-based block, setting dynamically in PRE-QUERY trigger the DEFAULT_WHERE property for its block, in case I use characters > or < (for bringing values greater or smaller than the one in the field, as in a standard Oracle query) error message is raised: 'FRM-40209 Field must be of form .' The issue has nothing to do with the error itself (usually related to erronated format mask of the field), and it is known as an Oracle Forms bug: I found it as bug 851153 - which appears on execute query if you enter in a non-base-table-item and the block has a pre-query trigger. The bug has been solved later in Oracle Developer Forms Builder 6i, or so I've been reading, problem is the application I'm working to requires Forms Builder 6.0.5.
I am trying to find an workaround for this situation and these are the info I managed to discover myself on the topic:
- if I fill the field with '>value instead of >value, query works fine, bringing only values greater than the specified value. (So far, this and inactivating the FRM-40209 error in ON-ERROR trigger seems like the best I can do)
- if I only use > (without '), I cannot use an auxiliar variable/global in which to store the actual value written in the field, I also cannot print the value in a message, because trying to use the exact string, it is shown as null (even though when the error is raised, value is still shown on the screen in the text item).
Maybe someone could help with an idea for an workaround in order to copy the content of the text field before it actually becomes null…
Thank you in advance.I have already tried that... but for some reasons the field already appears as null, when I try to use it.
-
How to include a .desktop file for a Java-based PKGBUILD?
I've tried searching a for a while and can't seem to get anywhere with such generic search terms, but I was wondering what would be the proper way to include a .desktop file and possibly an icon for a PKGBUILD that is just a Java-based program? I think it would be a lot more user-friendly for people if I could add the program to their menu when they install it.
As things are right now, the PKGBUILD just creates an executable script in <code>/usr/bin/</code> that runs the jar file with the proper classpath (as per the Java Packaging Guidelines), and there is nothing to actually make/compile (thus no .desktop file directly from the author). The package I plan on adding these features to is jGnash in the AUR if you want to take a look. Thanks!elasticdog wrote:
It took me a little while to track it down again too You can find the guidelines here: http://www.buchuki.com/misc/archjava.html
If I get bored later tonight, I'll try to convert that document over to the wiki...
Took me a couple days to get bored, but tonight I added and slightly edited the Java Package Guidelines to the Wiki... -
Tool for Packaging java-based ISV-Products
hi colleagues,
ISV abap-based prouduct (abap addon) can be packaged/deliverd via AAK. Do we have similar tools for java-based partner products?
thx a lot for your help
regrads
Abdudone
-
Integrating Blogging feature for a Java based website
Hello everyone,
I am having a requirement for the website I am working on where I need to build the Blog functionality. Our website is built using Java platform. Most of the articles on google were on wordpress which is for PHP based websites. I was wondering if any you are aware of any good softwares/ tools that I can use to create a blogging functionality on our Java based website. Right now am experimenting with NWordpress but I din't find any good documentation on how to use it.
It would be really great if someone can point me in the right direction. Your help is very much appreciated.
Thanks in Advance.
Regards,
ShravanthiGoogle gave me [this |http://java-source.net/open-source/bloggers] hope it helps.
-
Ideas for a Java based Project
Hi all :)
I follow Java forums, mainly read, although post a bit whenever i know.
I am looking for some ideas on starting a College project which is based on java. Maybe java network based? Since there are so many experienced people here, i was wondering if some of you could tell me some ideas that i could do. I have a fair bit of experience with java. But if the project requires to learn something new...i wont mind at all. I would really appreciate you guys input about any ideas.You can find a ton of potential student projects here:
http://mindprod.com/projects.html
Dunno if any of them fit your criteria - but it's a start...
Good luck!
Grant -
JHS setting for the Display Type of Rich Text Editor
In the "Display Type" settings for an item, there is no option in the JHS Definition Editor to choose a "Rich Text Editor" type. Is that intentional or an oversight?
Thanks,
GaryGary,
don't know why it's left out, but you can implement a rich text editor with a custom template (that's the answer I got when I asked the question several months ago). Here's the template code I use for implementing a rich text editor in a table:
#macro (EDITOR_POPUP)
<af:popup id="${JHS.current.item.bindingName}Popup" contentDelivery="lazyUncached" eventContext="launcher">
<af:dialog modal="true" resize="on" title="#TEXT_EDITOR_TITLE()" id="${JHS.current.item.bindingName}Dialog">
<af:richTextEditor rows="10" columns="100" #ITEM_VALUE_IN_FORM()
simple="true" id="${JHS.current.item.bindingName}EditorText"/>
</af:dialog>
</af:popup>
#end
#set ($popupId = ${JHS.page.addPopup("${JHS.current.item.bindingName}Popup","${JHS.engine.fullNamingContainerPath}","#EDITOR_POPUP()")})
#set ($popupDialogId = ${popupId.replaceAll("Popup","Dialog")})
<af:panelLabelAndMessage #ITEM_RENDERED_IN_TABLE() #ITEM_PARTIAL_TRIGGERS() #ITEM_HINT()>
<af:richTextEditor #ITEM_ID_IN_TABLE() #ITEM_VALUE_IN_TABLE() #ITEM_PROMPT_IN_TABLE()
#ITEM_REQUIRED_IN_TABLE() #ITEM_ROWS() #ITEM_COLUMNS()
#ITEM_READ_ONLY_IN_TABLE() #ITEM_ADDITIONAL_PROPERTIES()
#ITEM_DISABLED_IN_TABLE() #DEPENDS_ON_ITEM_PROPS_TABLE()
simple="true" partialTriggers="${JHS.current.item.bindingName}EditorLink ${popupDialogId}">
#REGULAR_EXPRESSION_VALIDATOR()
#VALIDATOR_BINDING_IN_TABLE()
#NUMBER_CONVERTER()
</af:richTextEditor>
<af:commandLink id="${JHS.current.item.bindingName}EditorLink"
#JHS_PROP("rendered" $JHS.current.item.renderEditorLinkInTable)
immediate="true" partialSubmit="true">
<af:showPopupBehavior popupId="${popupId}"/>
<af:image source="/jheadstart/images/editor.gif" id="${JHS.current.item.bindingName}Icon"
clientComponent="true"/>
</af:commandLink>
</af:panelLabelAndMessage>
#ITEMS_DISPLAYED_AT_RIGHT_IN_TABLE() -
I am making a dynamic text editor.
Some of the fonts do not embed well? I have imported the
fonts, put a linkage name, assigned data to the label.
Some of the fonts change, but not on the server?
I am using the setTextFormat?
Does anyone have any ideas? It would be greatly appreciated,
EmmaHello I am wondering if you can help me. I am sorry I have no
answer for your problem.
I am looking to also create a custom text editor in flash but
I have no idea on how to do that. Would you happen to have a
tutorial or can direct me to one on the web that I can learn how to
create such a thing?
I am looking for tutorials on this subject for both AS2 AND
AS3 based text editor creation.
Thank you. -
Help:i need a code for making a new text file then adding 1 blank line
i have done makng load, edit and save for a command line text editor. now my problem is, i dont know how to make a new blank text file and store it on the current directory. and i need to have that new text have 1 blank line with full of white space. help please.
PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("NewBlankTextFile.txt")));
pw.println(" ");
pw.close();
Maybe you are looking for
-
Hi there, Can anyone tell me how to make make Garageband ignore HDMI as an audio output-device on a 2013 Mac mini i7 using an Apogee jam as an input for bass and a Behringer USB DAC with RCA audio output? Now it keeps on prompting me: Do you want wan
-
FCE will not launch successfully
I purchased and successfully installed FCE 6-8 months ago on my MacBook. I completed the registration and I even played around in the application for a bit. I recently tried to open FCE and it wouldn't launch. The icon bounced in my dock 5-6 times an
-
OCP Oracle Database 11g: Advanced PL/SQL material
Hi All, Could anyone please tell me where can I get free download PDF or material or tutorial for OCP Oracle Database 11g: Advanced PL/SQL Thanks in Advance.
-
hello everyone i have got one requirement that i have to change the font of output list so that i can get good printout of it. thanx
-
Firefox RC does not allow me to use the zoom in and zoom out function on Apple Touchpad
A couple of weeks ago, I tried out Firefox 4 Beta version, but soon I realized that Firefox 4 Beta does not support certain functions of the multi-touch pad, of the Apple Macbook I bought in 2010. The two finger scroll works. The three finger swipe t