Re: editor how to



Oliver Wong wrote:
....
I'd actually imagine that the first step would be use a JFrame. I can't imagine the OP doing much with a JTextArea without a root container, and getting an empty window to show up somewhere on the screen is the GUI universe's equivalent of "Hello World".

As for not using the alternatives, JFrame is probably the closest to what the OP wants, given that (s)he's writing a text editor, and that (s)he seems new to GUIs (and thus probably doesn't want to do anything too fancy for a first try).

<(slightly) tongue in cheek> not 'too fancy'? Then we're talking 'Frame/TextArea'! It'll do plain text just fine. The AWT TextArea even has a built-in scrollbars, so no need for the JScrollPane. (And FileDialog is a lot easier to use than that damnable JFileChooser!) </(slightly) tongue in cheek> .