Blocking clicks through balloon.

This commit is contained in:
Evgeny Gerashchenko
2012-08-15 01:48:24 +04:00
parent e38a5478fb
commit a3eccfedfa
@@ -63,11 +63,11 @@ class EditSignatureBalloon {
} }
private Balloon createBalloon(JPanel panel) { private Balloon createBalloon(JPanel panel) {
BalloonBuilder builder = JBPopupFactory.getInstance().createDialogBalloonBuilder(panel, "Kotlin signature"); Balloon balloon = JBPopupFactory.getInstance().createDialogBalloonBuilder(panel, "Kotlin signature")
builder.setHideOnClickOutside(true); .setHideOnClickOutside(true)
builder.setHideOnKeyOutside(true); .setHideOnKeyOutside(true)
.setBlockClicksThroughBalloon(true).createBalloon();
Balloon balloon = builder.createBalloon();
balloon.addListener(new JBPopupAdapter() { balloon.addListener(new JBPopupAdapter() {
@Override @Override
public void onClosed(LightweightWindowEvent event) { public void onClosed(LightweightWindowEvent event) {