summaryrefslogtreecommitdiffstats
path: root/libjava/classpath/javax/swing/Popup.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/javax/swing/Popup.java')
-rw-r--r--libjava/classpath/javax/swing/Popup.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/libjava/classpath/javax/swing/Popup.java b/libjava/classpath/javax/swing/Popup.java
index 5074d64186c..65be7cfe1a3 100644
--- a/libjava/classpath/javax/swing/Popup.java
+++ b/libjava/classpath/javax/swing/Popup.java
@@ -85,8 +85,8 @@ public class Popup
// The real stuff happens in the implementation of subclasses,
// for instance JWindowPopup.
}
-
-
+
+
/**
* Constructs a new <code>Popup</code>.
*/
@@ -177,8 +177,8 @@ public class Popup
window.setSize(contents.getSize());
window.show();
}
-
-
+
+
/**
* Removes the popup's <code>JWindow</code> from the
* screen. Nothing happens if it is currently not visible.
@@ -226,12 +226,12 @@ public class Popup
* The panel that holds the content.
*/
private JPanel panel;
-
+
/**
* The layered pane of the owner.
*/
private JLayeredPane layeredPane;
-
+
/**
* Constructs a new <code>LightweightPopup</code> given its owner,
* contents and the screen position where the popup
@@ -259,7 +259,7 @@ public class Popup
this.contents = contents;
this.x = x;
this.y = y;
-
+
JRootPane rootPane = SwingUtilities.getRootPane(owner);
JLayeredPane layeredPane = rootPane.getLayeredPane();
this.layeredPane = layeredPane;
@@ -279,7 +279,7 @@ public class Popup
panel = new JPanel();
panel.setLayout(new FlowLayout(0, 0, 0));
}
-
+
panel.add(contents);
panel.setSize(contents.getSize());
Point layeredPaneLoc = layeredPane.getLocationOnScreen();
OpenPOWER on IntegriCloud