Results 1 to 3 of 3
- 10-16-2010, 08:28 PM #1
Member
- Join Date
- Oct 2010
- Posts
- 2
- Rep Power
- 0
Researcher's Writer - My Personal Project
Hi all,
I recently started a personal project called "Researcher's Writer." I hope to make it open source eventually. At the moment, it's just a text-editor I'm developing in my free time for quick note-taking for Math classes. I know there's LaTeX for the fancy formulas, but this is a program meant to be for your average student, who may or may not be LaTeX savvy, that lets him or her take Math notes on the fly. There will be a macro-system that lets individuals set math symbols to certain keys. There will also be preset macros. For example, you could press ctrl-alt-e to set up a summation with ∑.
Right now, it looks like a very slick, aesthetic version of notepad with Java's Metal look and feel.
In the mean time, I would like to know how to make the JTextPane maximize along with the window. I would need to have a WindowListener for Maximize_Both and then reset the size of the JTextPane, and then I would reverse the process when the window is restored to normal size.
The tutorial from the Sun site on Window Listeners is a bit confusing, and it would take a lot of trial and error for me to get it working with my code. I'm just wondering if anyone has any quick tips or advice to offer.
Thank you,
GraceC1990
(On the other hand, if I wanted it to look more like Open Office, where would I even get started with the layout? How does Open Office's Text Pane always stay in the center while the window expands? - Grace)Last edited by GraceC1990; 10-16-2010 at 08:32 PM.
-
What layouts is your GUI using? In particular the Container that holds the JTextPane? I suspect that if you use the right combination of nested containers and layout managers, your problem would be easily solved.
Last edited by Fubarable; 10-16-2010 at 09:18 PM.
- 10-23-2010, 06:06 PM #3
Member
- Join Date
- Oct 2010
- Posts
- 2
- Rep Power
- 0
Thanks Fubarable!
Oddly enough, I fixed the problem using free design with NetBeans. Not my favorite option in the world, since I would rather know how to fix it from coding up, though it did fix the problem I had trying to bend the card and box layouts to my will. Thank you for the suggestions, you are right.
At the moment, I'm attempting to figure out how to have an event that gets triggered when an item in a JList is selected for creating the "Macro Box." The tool that lets a user select what characters are triggered by what keys.Last edited by GraceC1990; 10-23-2010 at 06:19 PM.
Similar Threads
-
creating word writer
By Anchal in forum AWT / SwingReplies: 3Last Post: 04-06-2010, 09:00 AM -
CSV file writer
By nida in forum Java ServletReplies: 3Last Post: 05-08-2009, 02:08 PM -
[SOLVED] reader and writer on same file handle
By Nicholas Jordan in forum Advanced JavaReplies: 11Last Post: 07-01-2008, 03:39 AM -
personal project
By Prasun Banerjee in forum New To JavaReplies: 3Last Post: 06-30-2008, 03:57 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks