[QUOTE=Beni]1. Add a ComponentListener to the contentPane of the Dockable. It will be called everytime the size changes. Or write your custom LayoutManager, itās a surprisingly powerful alternative.
i have addComponentListener on the RaumPanel but it dosent work because of null layout thats why i need
to add a listener to the dockablec and resize it manually but the dockable doestn have such listeners like sizeChangedListener or something like that and unfortunately i dont know how to write own listener and add it to the dockable if it is possible at all
[QUOTE=Beni]dockable.getContentPane().addComponentListener( yourListener );
Where āyourListenerā is an instanceof of java.awt.event.ComponentListener.[/QUOTE]
great thank u it works !
but still cannt solve the problem with switching from moving the component on the panel to DnD
i tried to allow DnD if my component is over the border if not i can move it normally and if its over i start DnD
but for that i save the event in the Dnd class and
try to start if the component calls the method startDnD()
event.startDrag(null,this,this);
but DragGestureEvent has a null trigger i know it not the DockingFrame problem anymore but:) any ideas how can i switch fluently from moving to dnd if its over the border or how can i reset the trigger what ever it is
I played a bit around but did not come up with a good solution. I was thinking a custom DragGestureRecognizer would go into the right direction, but I did not finish my test. Unfortunately I have some other things to do, and canāt spend time on this right now.
If you donāt want to wait: Ask this question in the java forum (I believe you understand German?), they at least will have good ideas. And if you do that, send me a link. Once I find some time Iāll continue with my attempts.
[QUOTE=Beni]I played a bit around but did not come up with a good solution. I was thinking a custom DragGestureRecognizer would go into the right direction, but I did not finish my test. Unfortunately I have some other things to do, and canāt spend time on this right now.
If you donāt want to wait: Ask this question in the java forum (I believe you understand German?), they at least will have good ideas. And if you do that, send me a link. Once I find some time Iāll continue with my attempts.[/QUOTE]
[QUOTE=;][/QUOTE]
discount christian louboutin Slingback | christian louboutin Slingback sale | christian louboutins Slingback _discountchristianlouboutinsneakers.com
for example i crwate 2 rooms(dockables) Dockable_A and Dockable_B than i closse all
and open it again with control.addDockable(((DataRoom) dmtn.getUserObject()).getEditor());
first D_A than D_B works properly
than i close them and open first B than A and i get an error
Exception in thread āAWT-EventQueue-0ā java.lang.IllegalArgumentException: There is already a dockable registered with the key: multi 3 file-editor