Darg and Drop Problem !

that would be great ! :slight_smile: you could give me some tips what what im doing bad or good :slight_smile: if you want and have time of course :slight_smile:

is it right that your spam protection consist just of 5 questions :)))

9,0/4,5 =?
how many legs has a cow ?
location of eifeltower
The chemical formula of water is ?
and the traffic lights question ? :slight_smile:

I may not be able to actually look into the zip until the weekend, a party is in the way. Send to ā€œbenjamin_sigg@gmx.chā€.

As for the spam protectionā€¦ ::uglyhammer

[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

dockable.getContentPane().addComponentListener( yourListener );
Where ā€œyourListenerā€ is an instanceof of java.awt.event.ComponentListener.

[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]

http://www.java-forum.org/awt-swing-swt/124030-dnd-problem.html#post803032

[QUOTE=;][/QUOTE]
discount christian louboutin Slingback | christian louboutin Slingback sale | christian louboutins Slingback _discountchristianlouboutinsneakers.com

how can i open the dockable if it was closed ? do i have to add it again to the conrol ?

sorry 4 stubid questions

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

Please always post the entire error, this includes the stacktrace.

That seems to be a bug in the framework. Iā€™ll repair this ASAP.

Iā€™ve just uploaded a new version 1.1.1p5c, this should eliminate the bug.