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
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
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
> 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
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
Thanks for the follow up info.
Regards,
Tim Dutton
Internet Tools Technical Support
Symantec Corporation