Painting a Stack with Swing
- From: "froorider" <t.hasler@xxxxxxxx>
- Date: 29 Sep 2005 02:54:02 -0700
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 | | |
| | ------------ | |
| | | |
------------------------------------
.
- Follow-Ups:
- Re: Painting a Stack with Swing
- From: Roedy Green
- Re: Painting a Stack with Swing
- Prev by Date: Re: Always on top JDialog or JWindow
- Next by Date: Re: custom Swing component
- Previous by thread: Problem with glasspane on JScrollPane
- Next by thread: Re: Painting a Stack with Swing
- Index(es):
Relevant Pages
|
|