StackDockStation not working properly with SecureDockControllerFactory


In a previous thread you recommend me to use SecureDockControllerFactory with NativeSwing-JWebBrowser component to make the nativeSwing web browser component links works correctly
After upgrading to dockingframes version 1.0.8 I noticed that with EclipseTheme the StackDockStation is not working properly. In fact I’m not able to switch between dockables of the StackDockStation.

Could you please help?

Below is an example:

import java.awt.BorderLayout;
import java.awt.Color;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.WindowConstants;

import bibliothek.extension.gui.dock.theme.EclipseTheme;

import bibliothek.gui.DockController;
import bibliothek.gui.dock.DefaultDockable;
import bibliothek.gui.dock.StackDockStation;

public class Demo03_Theme {
    public Demo03_Theme() {

    public static void main(String[] args) {
        // create a frame
        JFrame frame = new JFrame("Demo");
        frame.setSize(600, 500);

        DockController controller = new DockController(new SecureDockControllerFactory());
        controller.setTheme(new EclipseTheme());
        StackDockStation station = new StackDockStation();
        frame.add(station.getComponent(), BorderLayout.CENTER);

        // create two panels
        JPanel black = new JPanel();

        JPanel green = new JPanel();

        // add the two panels
        station.drop(new DefaultDockable(black, "Black"));
        station.drop(new DefaultDockable(green, "Green"));
        // make the whole thing visible

Thank you,

I’ll have to test this, but sounds like a serious bug.

What if you use the SecureDockController instead of DockController? (and in this example: SecureStackDockStation instead of StackDockStation).

(Edit: Did I really say SecureDockControllerFactory? Must habe been a mistake. I certainly meant SecureDockController. Anyways, I’m using the secure-things for my demo-applications, and did not experience the problems you describe.)

It is working :slight_smile:

Thank you and sorry for the misunderstanding