Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ public DockedAutoHidePanel(DockingAPI docking, Dockable dockable, RootDockingPan
this.root = root;
this.toolbar = toolbar;

root.addComponentListener(this);
addComponentListener(this);

setLayout(new GridBagLayout());

GridBagConstraints gbc = new GridBagConstraints();
Expand Down Expand Up @@ -121,12 +118,18 @@ public void addNotify() {
super.addNotify();

slideBorder.addMouseMotionListener(this);

root.addComponentListener(this);
addComponentListener(this);
}

@Override
public void removeNotify() {
slideBorder.removeMouseMotionListener(this);

root.removeComponentListener(this);
removeComponentListener(this);

super.removeNotify();
}

Expand Down
Loading