I'm having a problem adding an editor pane to the bottom of a split pane
that I'm sure someone here can help me with. I don't do much GUI
programming in Java, so forgive me being the novice here.
I would like the editor pane to resize to fill the bottom pane in the
split pane, but it doesn't seem to want to. It also sometimes seems to
extend past the bottom of the split pane. What I'm really looking for is
what one would expect as a default, the editor should take up the entire
pane underneath the divider.
This has got to be a simple tweak, but I can't for the life of me figure
out what it is.
While I'm at it I should probably ask one more question. Is an
JEditorPane the correct choice for a simple text editor? Should I really
be using a JTextArea? Someday I might want to use fonts, bold, and such,
but right now it is just text.
Thanks in advance,
- --
Kenneth P. Turvey <kt-usenet@squeakydolphin.com>
XMPP: kpturvey@jabber.org
Ian Wilson - 24 Oct 2006 12:01 GMT
> I'm having a problem adding an editor pane to the bottom of a split pane
> that I'm sure someone here can help me with. I don't do much GUI
> programming in Java, so forgive me being the novice here.
comp.lang.java.gui is a more appropriate forum for GUI questions.
> I would like the editor pane to resize to fill the bottom pane in the
> split pane, but it doesn't seem to want to. It also sometimes seems to
> extend past the bottom of the split pane. What I'm really looking for is
> what one would expect as a default, the editor should take up the entire
> pane underneath the divider.
Could you post a small complete example that illustrates your problem?