summaryrefslogtreecommitdiff
path: root/libjava/javax
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-30 13:16:34 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-30 13:16:34 +0000
commita0a040160e6587688c585243fc9558a7195ab5d7 (patch)
tree7a4b1b850d319518930150058dd925c453255742 /libjava/javax
parentf36ac248b3556cd7f13c76bc19a0300afcdd3ea8 (diff)
downloadgcc-a0a040160e6587688c585243fc9558a7195ab5d7.tar.gz
2004-05-30 Michael Koch <konqueror@gmx.de>
* java/awt/DefaultKeyboardFocusManager.java (dispatchEvent): Call method to get key event dispatchers. (dispatchKeyEvent): Call method to get key event post processors. * javax/swing/JComponent.java (listenerList): Made protected. * javax/swing/JOptionPane.java (message): Don't initialize. (JOptionPane): Set message text. * javax/swing/JPopupMenu.java (show): Fixed typo in argument name. * javax/swing/RepaintManager.java (paintDirtyRegions): Use public API of java.util.Map. * javax/swing/plaf/basic/BasicSplitPaneDivider.java (positionForMouseEvent): Removed redundant ';'. (continueDrag): Use method arguments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82445 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/javax')
-rw-r--r--libjava/javax/swing/JComponent.java2
-rw-r--r--libjava/javax/swing/JOptionPane.java4
-rw-r--r--libjava/javax/swing/JPopupMenu.java16
-rw-r--r--libjava/javax/swing/RepaintManager.java4
-rw-r--r--libjava/javax/swing/plaf/basic/BasicSplitPaneDivider.java3
5 files changed, 14 insertions, 15 deletions
diff --git a/libjava/javax/swing/JComponent.java b/libjava/javax/swing/JComponent.java
index b191635ea77..e03c1c9dde4 100644
--- a/libjava/javax/swing/JComponent.java
+++ b/libjava/javax/swing/JComponent.java
@@ -305,7 +305,7 @@ public abstract class JComponent extends Container implements Serializable
* handled by this listener list. PropertyChangeEvents are handled in
* {@link #changeSupport}.
*/
- EventListenerList listenerList = new EventListenerList();
+ protected EventListenerList listenerList = new EventListenerList();
/**
* Support for {@link PropertyChangeEvent} events. This is constructed
diff --git a/libjava/javax/swing/JOptionPane.java b/libjava/javax/swing/JOptionPane.java
index ae7afbf3020..decd02c9213 100644
--- a/libjava/javax/swing/JOptionPane.java
+++ b/libjava/javax/swing/JOptionPane.java
@@ -203,7 +203,7 @@ public class JOptionPane extends JComponent implements Accessible
protected Object inputValue = UNINITIALIZED_VALUE;
/** The message displayed in the dialog/internal frame. */
- protected Object message = "JOptionPane message";
+ protected Object message;
/** The type of message displayed. */
protected int messageType = PLAIN_MESSAGE;
@@ -235,7 +235,7 @@ public class JOptionPane extends JComponent implements Accessible
*/
public JOptionPane()
{
- this(this.message, PLAIN_MESSAGE, DEFAULT_OPTION, null, null, null);
+ this("JOptionPane message", PLAIN_MESSAGE, DEFAULT_OPTION, null, null, null);
}
/**
diff --git a/libjava/javax/swing/JPopupMenu.java b/libjava/javax/swing/JPopupMenu.java
index e2882f8a01e..3cf3c8343ec 100644
--- a/libjava/javax/swing/JPopupMenu.java
+++ b/libjava/javax/swing/JPopupMenu.java
@@ -70,7 +70,7 @@ import javax.swing.plaf.PopupMenuUI;
* DOCUMENT ME!
*
* @author $author$
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
public class JPopupMenu extends JComponent implements Accessible, MenuElement
{
@@ -800,7 +800,7 @@ public class JPopupMenu extends JComponent implements Accessible, MenuElement
* DOCUMENT ME!
*
* @author $author$
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
private interface Popup
{
@@ -824,7 +824,7 @@ public class JPopupMenu extends JComponent implements Accessible, MenuElement
* DOCUMENT ME!
*
* @author $author$
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
private class LightWeightPopup extends JPanel implements Popup
{
@@ -870,7 +870,7 @@ public class JPopupMenu extends JComponent implements Accessible, MenuElement
* DOCUMENT ME!
*
* @author $author$
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
private class MediumWeightPopup extends Panel implements Popup
{
@@ -893,7 +893,7 @@ public class JPopupMenu extends JComponent implements Accessible, MenuElement
* @param width DOCUMENT ME!
* @param heigth DOCUMENT ME!
*/
- public void show(int x, int y, int width, int heigth)
+ public void show(int x, int y, int width, int height)
{
JLayeredPane layeredPane;
layeredPane = SwingUtilities.getRootPane(invoker).getLayeredPane();
@@ -917,7 +917,7 @@ public class JPopupMenu extends JComponent implements Accessible, MenuElement
* DOCUMENT ME!
*
* @author $author$
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
private class HeavyWeightPopup extends JWindow implements Popup
{
@@ -958,7 +958,7 @@ public class JPopupMenu extends JComponent implements Accessible, MenuElement
* DOCUMENT ME!
*
* @author $author$
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
public static class Separator extends JSeparator
{
@@ -984,7 +984,7 @@ public class JPopupMenu extends JComponent implements Accessible, MenuElement
* DOCUMENT ME!
*
* @author $author$
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
protected class AccessibleJPopupMenu extends AccessibleJComponent
{
diff --git a/libjava/javax/swing/RepaintManager.java b/libjava/javax/swing/RepaintManager.java
index 5219e222e35..22986014738 100644
--- a/libjava/javax/swing/RepaintManager.java
+++ b/libjava/javax/swing/RepaintManager.java
@@ -41,11 +41,11 @@ import java.awt.Component;
import java.awt.Dimension;
import java.awt.Image;
import java.awt.Rectangle;
-import java.util.AbstractMap;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.HashMap;
import java.util.Iterator;
+import java.util.Map;
import java.util.Vector;
@@ -441,7 +441,7 @@ public class RepaintManager
Iterator i = roots.values().iterator();
while(i.hasNext())
{
- AbstractMap.BasicMapEntry ent = (AbstractMap.BasicMapEntry) i.next();
+ Map.Entry ent = (Map.Entry) i.next();
JRootPane root = (JRootPane) ent.getKey();
Rectangle rect = (Rectangle) ent.getValue();
root.paintImmediately(rect);
diff --git a/libjava/javax/swing/plaf/basic/BasicSplitPaneDivider.java b/libjava/javax/swing/plaf/basic/BasicSplitPaneDivider.java
index 3a2db55a863..e169f6d0952 100644
--- a/libjava/javax/swing/plaf/basic/BasicSplitPaneDivider.java
+++ b/libjava/javax/swing/plaf/basic/BasicSplitPaneDivider.java
@@ -623,7 +623,6 @@ public class BasicSplitPaneDivider extends Container
protected int positionForMouseEvent(MouseEvent e)
{
return e.getX() + getX() - offset;
- ;
}
/**
@@ -650,7 +649,7 @@ public class BasicSplitPaneDivider extends Container
protected void continueDrag(int newX, int newY)
{
if (isValid())
- dragDividerTo(adjust(x, y));
+ dragDividerTo(adjust(newX, newY));
}
/**