Results 1 to 3 of 3
  1. #1
    GraceC1990 is offline Member
    Join Date
    Oct 2010
    Posts
    2
    Rep Power
    0

    Cool 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 09:32 PM.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    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 10:18 PM.

  3. #3
    GraceC1990 is offline Member
    Join Date
    Oct 2010
    Posts
    2
    Rep Power
    0

    Default

    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 07:19 PM.

Similar Threads

  1. creating word writer
    By Anchal in forum AWT / Swing
    Replies: 3
    Last Post: 04-06-2010, 10:00 AM
  2. CSV file writer
    By nida in forum Java Servlet
    Replies: 3
    Last Post: 05-08-2009, 03:08 PM
  3. [SOLVED] reader and writer on same file handle
    By Nicholas Jordan in forum Advanced Java
    Replies: 11
    Last Post: 07-01-2008, 04:39 AM
  4. personal project
    By Prasun Banerjee in forum New To Java
    Replies: 3
    Last Post: 06-30-2008, 04:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •