I'm working on a project for a class, and what we're having to do is write a text editor. We're using Java, and that's non-negotiable at this point, as it's so late in the semester.
Most of the problems I've run into are things I've been able to read up on and fix, but there are three things that have me stumped, and I can't find any code examples that do anything similar.
1) My prof wants us to create an Edit menu that will have cut, copy, paste, and select all features. Now, the standard Windows keyboard shortcuts for cut-copy-paste (the application only has to run under Windows) work fine, but I don't know how to implement them as menu commands.
2) We're supposed to implement word wrap, so that the text doesn't flow off the visible window.
3) It has to print, and I don't know how to do that.
I'm not looking for "this is exactly what you do," more "here are some places you can look for help" (and more specific than "look at the Java API"), or "here are some examples of code that has done similar things; see how you can use similar ideas in your own code."
I'm the only person in my project group who can code at all, and programming is *not* my area of expertise, so I'd appreciate any help.
Most of the problems I've run into are things I've been able to read up on and fix, but there are three things that have me stumped, and I can't find any code examples that do anything similar.
1) My prof wants us to create an Edit menu that will have cut, copy, paste, and select all features. Now, the standard Windows keyboard shortcuts for cut-copy-paste (the application only has to run under Windows) work fine, but I don't know how to implement them as menu commands.
2) We're supposed to implement word wrap, so that the text doesn't flow off the visible window.
3) It has to print, and I don't know how to do that.
I'm not looking for "this is exactly what you do," more "here are some places you can look for help" (and more specific than "look at the Java API"), or "here are some examples of code that has done similar things; see how you can use similar ideas in your own code."
I'm the only person in my project group who can code at all, and programming is *not* my area of expertise, so I'd appreciate any help.
