Painting a Stack with Swing



Hy,

I want to make my own swing component. The component should paint a
dynamic stack. The stack contains some panels. These panels should be
painted horizontally or vertically. At init time of the component, an
"empty" stack view with an initial size should be painted.

I used a Panel with a BorderLaout. The stack view is in the center of
it. On the left side, there is a JLabel showing some information. The
problem is, that the "empty" stack is not painted at all. I tired to
fill the stack with empty images but this doesn't worked.

Does someone now how to deal with that or knows a Swing lib with a
predefined layout manager, component or something like that? The
component I want to develop is for a Visualization.

Thanks.

The component should look like this:

------------------------------------
| | | |
| | ------------ | |
| | | PALLET 3 | | |
| | ------------ | |
| | ------------ | |
| Place 510 | | PALLET 2 | | |
| | ------------ | |
| | ------------ | |
| | | PALLET 1 | | |
| | ------------ | |
| | | |
------------------------------------

.



Relevant Pages

  • Re: Painting a Stack with Swing
    ... >I want to make my own swing component. ... The stack contains some panels. ... If no layout will give you the effects you want, ...
    (comp.lang.java.gui)
  • Advanced DataBindings and Stack Overlow
    ... basically, it kind of works when i bind, let's say, the 'visible' property ... control the application will crash with the message 'stack overflow'. ... bound panels will cause the crash after about 50 'next's.. ...
    (microsoft.public.dotnet.framework.windowsforms.databinding)
  • Re: Are First Alert panels any good ?
    ... First Alert panels are ... simply re-branded Ademco panels. ... How do they stack up with Ademco or GE panels. ...
    (alt.security.alarms)
  • Re: DOLIST with empty list?
    ... To decide to return the empty list, ... But this fundamentally redefines DOLIST/DOSUBS in a manner ... any new results on the stack, you get a list of those ... and I replace each by recalling the variable's contents, ...
    (comp.sys.hp48)
  • Re: Beat Toudai
    ... of empty pdf pages. ... KPDF got empty little, and empty big, pages. ... But still it and evince ... Execution stack: ...
    (sci.lang.japan)