Hi,
I have a SplitdockStation that contains a dockable and I’m using eclipse theme.
I want to show the title bar of the station to be able to maximize it, but I don’t want to show an empty header (Check attached image). Could you please advice to remove this empty header?
Please find a small example that reproduce my case :
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.SplitDockStation;
public class Demo {
public Demo() {
JFrame frame = new JFrame("Demo");
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
frame.setSize(600, 500);
DockController controller = new DockController();
controller.setTheme(new EclipseTheme());
SplitDockStation station = new SplitDockStation();
frame.add(station, BorderLayout.CENTER);
controller.add(station);
JPanel panel = new JPanel();
panel.setBackground(Color.CYAN);
station.drop(new DefaultDockable(panel));
frame.setVisible(true);
}
public static void main(String[] args) {
new Demo();
}
}
Thank you,