Results 1 to 3 of 3
  1. #1
    willemjav is offline Senior Member
    Join Date
    Dec 2007
    Location
    Spain
    Posts
    1,075
    Rep Power
    8

    Default I have worked more than one month on a text writer application!

    Dear Java-friends

    I have worked more than one month on a text writer application,
    and I finished the first phase of work:
    -A basic menu (File, Edit and Font stuff);
    -A toolbar copying the above;
    -A small state bar;
    -And a text canvas to try things out!

    Man, thinks turned out to be much more complicated as what
    I thought it to be. I re-wrote to code many times but did learn
    (with the help of my friends) many thinks. You can see it for yourself here:

    http://willemii.orgfree.com/downloads/willemwriter.zip

    The package is willemwriter and just trigger the main!

    My next phase will be the text canvas, and my first question is:
    -Should I use JTextPane or JTextEdit as a base class?
    -Extend it or not?
    -Or should I program all from scratch using a JPanel and a graphical context "only"?
    BTW I am reading Java Swing (Orielly) and getting a lot of ideas about how to precede!

    Please run the application and comment on it.

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,030
    Rep Power
    6

    Default Re: I have worked more than one month on a text writer application!

    I'd not try to reinvent the wheel if I were you. Creating a text component with custom painting is quite an advanced thing to do with many low-level repainting issues to overcome, especially when you add scrolling to the mix.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    willemjav is offline Senior Member
    Join Date
    Dec 2007
    Location
    Spain
    Posts
    1,075
    Rep Power
    8

    Default Re: I have worked more than one month on a text writer application!

    So from JTextComponent and even going down the food chain to JEditorPane, right?

Similar Threads

  1. Replies: 3
    Last Post: 03-11-2013, 02:03 PM
  2. Replies: 2
    Last Post: 08-10-2010, 05:15 PM
  3. Replies: 6
    Last Post: 04-09-2009, 02:11 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
  •