Problem resize components >> 2 <<
Hi all again
As I wrote at http://forum.java.sun.com/thread.jspa?threadID=759087
I need a resizable JPANEL with sub-jpanels inside. Every subpanel may content an image or text.
The problem is that I need ( if resize the principal panel ) to get the principal panel and subpanels in exact scale ( it means, margins, relative positions and image / text scale. )
This is a graphical idea that i need:
__
| |
|_|
| || | __
| |I MM MM GGGG | | | _ |
| |I M M M G| | | || |
| |I MM G GG | | | | I M G | |
| |I MM GGGG | |\| |_| |
| |_| |\| _ |
| | resize \ | || |
|_|0.5X/ | | I M G | |
| || |/| |_| |
| |I MM MM GGGG | |/|__|
| |I M M M G| |
| |I MM G GG | |
| |I MM GGGG | |
| |_| |
| |
|_|
The problem was solved by 74philip, but just in a half...
Its important this time , that the code is a independent jPanel class. ( i'm getting problems with preinitialize size of theBufferedImage originalImage object ) . I need use this clase creating another independent class ( jPanel or jFrame) to call this one.
Subpanels' number and its distribution will change dynamically.
And, themost important, I need, plus, to keep the events ( and propierties in general ) lauched by the subpanels, images & texts contained one time resized them...
Can anyone help please ?
PD: Sorry again if I make any English mistakes :)

