Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2006

Tip: Looking for answers? Try searching our database.

Simple GUI problem

Thread view: 
Kenneth P. Turvey - 23 Oct 2006 05:24 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.

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?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.