Creating a dockable that is initially displayed as modeless

Hi,

I am using DockingFrames in a Scala application. I am trying to programmatically add a window that starts out undocked but can be dragged into a docking region. Here is a code snippet showing how I am adding the window to the docking framework.

      val ganttDockable = create("Gantt-" + id.toString, new GanttViewPane(Some(id)))
      mControl.addDockable(ganttDockable)
      ganttDockable.setVisible(true)

This works fine, but I cannot figure out how to make it undocked. Can anyone point me in the right direction?

Thanks in advance.

I don’t know the syntax of Scala, but in Java you would write something like this to change the location of the Dockable:
ganttDockable.setLocation( CLocation.external( 20, 20, 400, 300 ) );

[QUOTE=Beni]I don’t know the syntax of Scala, but in Java you would write something like this to change the location of the Dockable:
ganttDockable.setLocation( CLocation.external( 20, 20, 400, 300 ) );[/QUOTE]

Perfect! That did the trick.

Thanks!