+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.
+
2004-05-29 Ranjit Mathew <rmathew@hotmail.com>
* testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
{
// Loop through all registered KeyEventDispatchers, giving
// each a chance to handle this event.
- Iterator i = keyEventDispatchers.iterator ();
+ Iterator i = getKeyEventDispatchers().iterator();
while (i.hasNext ())
{
// Loop through all registered KeyEventPostProcessors, giving
// each a chance to process this event.
- Iterator i = keyEventPostProcessors.iterator ();
+ Iterator i = getKeyEventPostProcessors().iterator();
while (i.hasNext ())
{
* 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
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;
*/
public JOptionPane()
{
- this(this.message, PLAIN_MESSAGE, DEFAULT_OPTION, null, null, null);
+ this("JOptionPane message", PLAIN_MESSAGE, DEFAULT_OPTION, null, null, null);
}
/**
* DOCUMENT ME!
*
* @author $author$
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
public class JPopupMenu extends JComponent implements Accessible, MenuElement
{
* DOCUMENT ME!
*
* @author $author$
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
private interface Popup
{
* DOCUMENT ME!
*
* @author $author$
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
private class LightWeightPopup extends JPanel implements Popup
{
* DOCUMENT ME!
*
* @author $author$
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
private class MediumWeightPopup extends Panel implements Popup
{
* @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();
* DOCUMENT ME!
*
* @author $author$
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
private class HeavyWeightPopup extends JWindow implements Popup
{
* DOCUMENT ME!
*
* @author $author$
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
public static class Separator extends JSeparator
{
* DOCUMENT ME!
*
* @author $author$
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
protected class AccessibleJPopupMenu extends AccessibleJComponent
{
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;
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);
protected int positionForMouseEvent(MouseEvent e)
{
return e.getX() + getX() - offset;
- ;
}
/**
protected void continueDrag(int newX, int newY)
{
if (isValid())
- dragDividerTo(adjust(x, y));
+ dragDividerTo(adjust(newX, newY));
}
/**