OU blog

Personal Blogs

neil

editor[1]

Visible to anyone in the world

Well B & Q was visited and much paint was bought, which bodes ill for the future. Some weekend soon is going to be completely buggered up with non-congenial work.

I did make time to sit down and draw up a specification for my text editor; said spec. is beyond basic but will, more than, do me for now:

  1. Create a GUI
  2. Be able to open, edit and save files

As I said: basic.

However not so easy. I've spent the last couple of hours reading the documentation, what I'm about to attempt is going to be something of a challenge.

Part of my problem is that I re-cycled my M257 unit texts [ie put them in the bin] so I don't have any hard-copy boilerplate to refer to. [Online is OK but I still prefer hard-copy.] And of course all the stuff that I created during M257 is who-knows-where.

Another issue is that Javax.swing isn't thread safe. Apparently. I'm vaguely aware of what that means—not good. So I'm going to have to be careful if I intend to use this as a base for something more powerful.

The final issue is how to chop up the code: one monolithic block? Or something a wee-bitty more flexible that will probably fall apart?

I've decided that the Input/Output [file-diddling] stuff doeshave to be hived off, but I'll try to keep the rest of the beast inside a single class. [I'll try to use inner classes just in case.]

So tomorrow we, my good wife and I, go to Asda where, amongst other purchases, I'll buy a large bottle of ertzatz red bull and get coding when I get home. Which might mean that I'll avoid, "we could do the painting this weekend..."

Permalink Add your comment
Share post

Comments

David Hughes

New comment

You're a better man than I if you manage to avoid it when the wee lady says that you should have a paint brush in hand!
neil

New comment

wink

David,

You'll never avoid it, it's a question of when. Alas it's never my when, is it?

neil

Steven Carroll

New comment

I was fine with B&Q and paint...but after GUI unit it got a bit technical smile

java swinging monolithic block has a nice ring to it though...

Q. (i'm guessing this easy but I've always been too lazy to find out b4) - How do you change a link from showing full address to a description ?

neil

New comment

@Steve

Hightlight the text and click the chain symbol on the toolbar, that'll bring up a dialog where you can paste the link.

n