DockingFrames in NetBeans Palette Containers

It would be nice if it would be possibile to add DockingFrames containers in palette manager in NetBeans.
So for example CGrid, DefaultCDockable and other components could be dragged and dropped from palette frame to design frame in NetBeans just like other standard Swing components.

Have you tried?

From your answer I’m guessing that it is possible :), so I’m probably making some mistakes during the process…

Most of components after dragging them in NB from palette to design isn’t visible and are shown in navigator tree as „Other components“. Some are visible (like basicDockableDisplayer, basicDockableSelection, glassPane, uvm) but have no idea how to create simple frame (like in help on http://dock.javagorge.com) using palette components in netbeans instead of writing code.

OK, I spent a little time on understanding how does DockingFrames work and managed to do what I wanted.
Thanks a lot for this component.

Regards,
Andrzej

I wouldn’t know how to do this, never prepared the framework for such a task. Did you have any success or just used the “old ways” (=writing code manually)?

(btw. the random question is 1. in german and 2. asks for a sign I do not have on my keyboard)

Micro-tutorial for NetBeans users:

I Preparing NetBeans

  1. Right click in palette → palette manager
  2. Add new category and add components from jar library (core).
    Now in the palette there are new components.

II Creating Project

  1. Create new project and new JFrame
  2. Drag to JFrame design window components: **DefaultDockable, splitDockGrid, dockFrontend **and **SplitDockStation.
    **3. rightclick in navigator on dockFrontend1 → customize code → add ‚this‘ in new bibliothek.gui.DockFrontend(this); and add line: dockFrontend1.addRoot( splitDockStation1, „station“ );
  3. rightclick in nabigator on splitDockStation1 → customize code and add line splitDockStation1.dropTree(splitDockGrid1.toTree()); in the bottom
  4. rightclick in navigator on splitDockGrid1 and add line in customize code :** splitDockGrid1.addDockable(0, 0, 1, 1, defaultDockable1);**
    It works :slight_smile:

so the main plus is that you can add SplitDockStation to existing NetBeans project without any need to change the old code (DF Core)

When I tried to do the same as above with DockF.Common it seemd to be impossibile (you can’t add CGrid to your JFrame -> it appears in Other Components instead of JFrame tree in navigator).

Beni, there is a example tutorial for germans/swiss users:
http://forum.byte-welt.net/showthread.php?t=541

andrzej: jea, CGridArea and the like often do not extend JComponent but only use them (and anyone needs to call methods like “getComponent” to access them).

L-ectron-X: nice, I have to read it.

[quote=Beni@work;7879]I wouldn’t know how to do this, never prepared the framework for such a task. Did you have any success or just used the “old ways” (=writing code manually)?

(btw. the random question is 1. in german and 2. asks for a sign I do not have on my keyboard)[/quote]

I’ve worked with DF and I liked it. Please consider adding ability to load DF into netBeans palette in future, so creating design would be as simple as drag&drop.

I don’t know if it’s possibile, in tutorial I found it seems to be:
http://wiki.netbeans.org/CreatingImageBeanUsingNetBeans6.1

Best Regards,
Andrzej

I’m not sure if I really want to support any tools. You are the second one asking me to support some tool (that I do not use myself). I somehow feel that if I start supporting one tool people start to ask for other tools… and I’ll be supporting tools until the end of my life.

True, it works well without any tools :slight_smile:
Thanks for your contribution!