Simple GUI problem

K

Kenneth P. Turvey

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 <[email protected]>

XMPP: (e-mail address removed)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFFPEMfi2ZgbrTULjoRAlb9AJ9jhpUUsEIK21VyEHDpH2M83ytTFQCfQ6FR
8kjwxCIdFV5zKR+Pc5TEyGc=
=xs3P
-----END PGP SIGNATURE-----
 
I

Ian Wilson

Kenneth said:
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Beowulf clusters 9
Array declaration compiler bug? 3
Java 1.6 13
Parameters (command line, preferences, user input) 1
simple GUI environment 5
Class dependency problem 11
Python GUI? 46
ideas for a GUI 1

Members online

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top