The Artima Developer Community
Sponsored Link

Java Answers Forum
BasicSplitPaneDivider.DividerLayout

1 reply on 1 page. Most recent reply: Jul 7, 2005 3:22 PM by Antonio

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

BasicSplitPaneDivider.DividerLayout Posted: Jan 11, 2005 2:00 AM
Reply to this message Reply
Advertisement
Hi Folks:

I've googled this senseless without much help...
I'm trying to use this Layout Manager similar to
how GridLayout is used in the following code snippet:

JPanel panel1 = new JPanel();
panel1.setLayout(new GridLayout(1, 2));
panel1.add(panelA);
panel1.add(panelB);

I would like to split this Panel such that
the left is 1/5th of the Pane and the right is
4/5th. I'm assuming you use the DividerLayout.

Could someone please fire up some advice.

Thanks in advance.

Spike


Antonio

Posts: 33
Nickname: arhak
Registered: Jul, 2005

Re: BasicSplitPaneDivider.DividerLayout Posted: Jul 7, 2005 3:22 PM
Reply to this message Reply
Did you tried with a JSplitPane?
Try
splitPane.setResizeWeight(0.20);

Flat View: This topic has 1 reply on 1 page
Topic: awt TextField behaving like HTML TextField in Applet Previous Topic   Next Topic Topic: Passing pimitive types as parameter to a function

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use