I have to create a huge form with many controls control basic control / settings and Expanded are divided into controls / settings, the user can decide that he only wants to see basic or both basic and extended controls.
I have removed extended control over all the zeppials so that I can easily switch between two scenes or hide this panel.
Currently I am using group layout and what happens is that there are no control combinations on different panels:
label AA: text field label A: text field label AAAAAAAA: Text Field ---------------------------- Label B: Text Field Label BBB: Text Field Label Bb: Text Field < - Unfortunately now I found a way to "synchronize" the layout of two panels (AbsoluteLayout and Fixed Control Except Deshancon)
-
Edit: If possible, I would like to place Group Layout Manager.
- P>
As far as I know, no swing layout manager (from JRE or Open source) can span multiple panels.
I am currently working on such a feature for my project (which I called "layout synchronization"), but this is not easy 2 weeks ago and I still do not see at all and When I find something interesting, but I have a lot of hope for it; -))
One option you can see is to add all components to the same panel (after which only with a group layout) and hide / show them based on the user's selection. Hopefully, the group layout will adapt to the size of the position (after packing) ()
If the group layout behaves well, then it will change the user's choice to hide / hide extended areas Each time a pack () call will be a case.
Otherwise the user has to set the size of his panel every time the user changes his selection.
Comments
Post a Comment