How to program a word processor
FileOutputStream; import java. Font; import java. ActionListener; import javax. ImageIcon; import javax. JFileChooser; import javax. JFrame; import javax. JMenu; import javax. JMenuBar; import javax. JMenuItem; import javax. JScrollPane; import javax. Improve this question. Add a comment. Active Oldest Votes. You do not have bytes, you have characters. Improve this answer. Quill I am still reading your answer over just so i can compare the difference and understand the effects it will have, performance etc.
Marc-Andre Marc-Andre 6, 4 4 gold badges 35 35 silver badges 65 65 bronze badges. I suggest that you define more classes, which don't depend on being run as members of a JFrame. Methods of the Document class could let you edit the document, for example: Inject key-strokes alpha-numeric keys, cursor keys Select regions of a.
ChrisW ChrisW Interesting in the fact that it's going to take me some time to dissect my code and to understand how a class like Document should be defined. Would Document itself be a subclass of JTextArea since it would be adding functionality or would i be extracting the data from the JTextArea to the class Document.
It knows nothing about the UI. It contains the document's text and styling information. It supports methods like "insertWord", "deleteRange", etc. RenderedView also know nothing about Swing.
Web word processors auto-save files You can create a keyboard shortcut that opens Google Docs or any other Web word processor. Start by opening a new document in the service. Now you can open the service ready to create a new file by pressing that keyboard shortcut. Unfortunately, if you're not already logged in, you'll have to enter your username and password before you can open the blank file. You can avoid the login step by creating the shortcut to the Writer online word processor that mimics the look of old DOS-based text editors running on a green-phosphor display.
The service's bare-bones look is itself modeled after the free Dark Room word processor, which, in turn, is the Windows version of the WriteRoom word processor for Mac OS X. Since Writer doesn't require you to log in--or even to create an account--you need not give your files a name.
Different word processors are available today; some are proprietary, such as Microsoft Word, StarOffice Writer, WordPerfect Office, and others are open source, such as Openoffice. How to open MS Word in Windows? MS Word window will pop up. In Windows 7 or below: Step 1: Go to the program section in the windows start menu. Step 2: Click on New , a new Document window will pop up. Step 1: Click on the Microsoft icon.
Step 3: Click on Print. Then a window for Print will pop up. Step 4: Select the printer by which you want to take out a print of the document. Step 5: Click on OK. Next click on Word online and you can use it to make Word documents. The Word document which you create will be saved in OneDrive folder. Hope the above information was helpful. If you need further assistance, please do let us know and we would be happy to help you.
Was this reply helpful? Yes No. Sorry this didn't help. Thanks for your feedback. Threats include any threat of suicide, violence, or harm to another. Any content of an adult theme or inappropriate to a community web site. Any image, link, or discussion of nudity.
0コメント