StackDockStation not working properly with SecureDockControllerFactory

Hi,

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;
import bibliothek.gui.dock.security.SecureDockControllerFactory;

public class Demo03_Theme {
    public Demo03_Theme() {
    }


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

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

        // create two panels
        JPanel black = new JPanel();
        black.setBackground(Color.BLACK);
        black.setOpaque(true);

        JPanel green = new JPanel();
        green.setBackground(Color.GREEN);
        green.setOpaque(true);

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


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