Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SplitterPanel ?

1 view
Skip to first unread message

Ludwig Stuyck

unread,
Mar 30, 2000, 3:00:00 AM3/30/00
to
Configuration Information:
Product: Visual Cafe for Windows Database Edition 3.0

Hi, maybe someone of you knows the answer.
It's rather simple: I have an applet, and I want to divide it into 4
parts, seperated by a frame. It should be possible to resize them by
using the mouse.

It looks like this:

|--------|---------|
| | |
| -------|---------|
| | |
|--------|---------|

I found that SplitterPanel (a Symantec class) may do the job, but it
seems impossible to resize the 4 area's from within de javacode
itself.

(I want to avoid using Swing because the applet should work on most
browsers...)

Anyone an idea?

Kind regards,
Ludwig

Symantec/Ted Flug

unread,
Mar 30, 2000, 3:00:00 AM3/30/00
to
Hello Ludwig

I assume you want something like

_______ _______
| panel | panel |
| | |
_______ _______
| panel | panel |
| | |
_______ _______

You can set a main split pane that will contain two others. The amin
splitpane would be split horizontally and each of the two smaller split
panes would be split vertically.

This will all need to be hand coded to work properly.

Ted Flug
Symantec Internet Tools

Ludwig Stuyck

unread,
Mar 31, 2000, 3:00:00 AM3/31/00
to
Should I do this in 1 class, like:

class mainpanel extends Splitterpanel() {
split(SPLIT_VER)
getTopPanel().split(SPLIT_VER);
getBottomPanel().split(SPLIT_VER);
}

I tried this, but I can't seem to resize the panels from my applet.
(resizing with the mouse works though)

Or should I use different classes all extended from SplitterPanel() ?

Thx,
Ludwig

Symantec/Ted Flug

unread,
Mar 31, 2000, 3:00:00 AM3/31/00
to
Ludwig

> I tried this, but I can't seem to resize the panels from my applet.
> (resizing with the mouse works though)
>
> Or should I use different classes all extended from SplitterPanel() ?

It's working (somewhat) if you can resize them with your mouse.
There may very well be a bug in the splitter panel which won't allow you
to resize programatically.

In this case your stuck between a rock and a hard place, since you
don't want to use swing. How are you going about changing the size of
the panes?

Ted Flug
Symantec Corporation

Ludwig Stuyck

unread,
Apr 1, 2000, 3:00:00 AM4/1/00
to
Well, this is the code in the class of my Main Panel:

setLayout(null);

try {
setAllowDynamicMoving(true);
setPropResize(true) ;
} catch (java.beans.PropertyVetoException e) {};

// These are the 4 panels:
categoryBrowserPanel = new ISACategoryBrowserPanel
(this.currentResourceBundle, this);
categoryInfoPanel = new
ISACategoryInfoPanel(this.currentResourceBundle, this);
productInfoPanel = new
ISAProductInfoPanel(this.currentResourceBundle, this);
trolleyBrowserPanel = new
ISATrolleyBrowserPanel(this.currentResourceBundle, this);

// Split the mainpanel and assign panels to eacht part
split(SPLIT_HOR);
getTopPanel().split(SPLIT_VER);
getBottomPanel().split(SPLIT_VER);

getTopLeftPanel().add(categoryBrowserPanel);
getBottomLeftPanel().add(trolleyBrowserPanel);
getTopRightPanel().add(categoryInfoPanel);
getBottomRightPanel().add(productInfoPanel);

categoryBrowserPanel.setSize(10,20);

So I expect that de categoryBrowserPanel would be rather small! But
is isn't.... They are all equally divided. I have tried a lot of
things already, but still no answer...

Thx,
kind regards,
Ludwig

Tim Dutton (Symantec)

unread,
Apr 4, 2000, 3:00:00 AM4/4/00
to
Hi Ludwig,

Thanks for the follow up info.

Regards,

Tim Dutton
Internet Tools Technical Support
Symantec Corporation

0 new messages