|
|
@ -296,10 +296,9 @@ public class UIEastResizableContainer extends JPanel { |
|
|
|
model = UIConstants.MODEL_NORMAL; |
|
|
|
model = UIConstants.MODEL_NORMAL; |
|
|
|
refreshContainer(); |
|
|
|
refreshContainer(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
public void mouseReleased(MouseEvent e) { |
|
|
|
if (e.getX() <= ARROW_RANGE) { |
|
|
|
if (isInPane(e)) { |
|
|
|
if (containerWidth == leftPaneWidth) { |
|
|
|
if (containerWidth == leftPaneWidth) { |
|
|
|
showContainer(); |
|
|
|
showContainer(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -309,7 +308,9 @@ public class UIEastResizableContainer extends JPanel { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public boolean isInPane(MouseEvent e){ |
|
|
|
|
|
|
|
return e.getX() <= ARROW_RANGE && e.getX() >= 0 && e.getY() <= topToolPaneHeight && e.getY() >= 0; |
|
|
|
|
|
|
|
} |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void paint(Graphics g) { |
|
|
|
public void paint(Graphics g) { |
|
|
|
Image button; |
|
|
|
Image button; |
|
|
|