adjusting boundries of JPanels in JPanel in JFrame  
Author Message
Novice





PostPosted: 2003-12-1 5:38:00 Top

java-programmer, adjusting boundries of JPanels in JPanel in JFrame Hi, I tried searching through the google groups, but am obviously using the
wrong search words.

I have a JFrame with a JPanel in it. The JPanel is using the following
layout:
new BoxLayout (parentPanel, BoxLayout.LINE_AXIS)

Then I added two JPanels to the parentPanel.

But then I would like to click and drag the separator between the two panels
to change the size of the two JPanels.

Any hints?

Thanks,
Novice


 
Alex Hunsley





PostPosted: 2003-12-1 21:52:00 Top

java-programmer >> adjusting boundries of JPanels in JPanel in JFrame Novice wrote:

> Hi, I tried searching through the google groups, but am obviously using the
> wrong search words.
>
> I have a JFrame with a JPanel in it. The JPanel is using the following
> layout:
> new BoxLayout (parentPanel, BoxLayout.LINE_AXIS)
>
> Then I added two JPanels to the parentPanel.
>
> But then I would like to click and drag the separator between the two panels
> to change the size of the two JPanels.
>
> Any hints?
>
> Thanks,
> Novice

Look at JSplitPane, it will do what you're looking for.

alex

 
Novice





PostPosted: 2003-12-1 22:24:00 Top

java-programmer >> adjusting boundries of JPanels in JPanel in JFrame "Alex Hunsley" <email***@***.com> wrote in message
news:email***@***.com...

[snip]

| Look at JSplitPane, it will do what you're looking for.
|
| alex
|

That is what I'm looking for - thanks.

Novice