+2005-04-19 Roman Kennke <roman@kennke.org>
+
+ * javax/swing/JComponent.java:
+ Modified alignmentX and alignmentY to be 0.5 instead of 0.0.
+ Untabified the file.
+
2005-04-19 Audrius Meskauskas <audriusa@bluewin.ch>
* javax/swing/JComboBox.java (constructors): selecting the
* @see javax.swing.OverlayLayout
* @see javax.swing.BoxLayout
*/
- float alignmentX = 0.0f;
+ float alignmentX = 0.5f;
/**
* A value between 0.0 and 1.0 indicating the preferred vertical
* @see javax.swing.OverlayLayout
* @see javax.swing.BoxLayout
*/
- float alignmentY = 0.0f;
+ float alignmentY = 0.5f;
/**
* The border painted around this component.
*/
public JToolTip createToolTip()
{
- JToolTip toolTip = new JToolTip();
- toolTip.setComponent(this);
- toolTip.setTipText(toolTipText);
+ JToolTip toolTip = new JToolTip();
+ toolTip.setComponent(this);
+ toolTip.setTipText(toolTipText);
return toolTip;
}
toolTipText = null;
return;
}
-
+
// XXX: The tip text doesn't get updated unless you set it to null
// and then to something not-null. This is consistent with the behaviour
// of Sun's ToolTipManager.
-
+
String oldText = toolTipText;
toolTipText = text;
-
+
if (oldText == null)
ToolTipManager.sharedInstance().registerComponent(this);
}
g2 = doubleBuffer.getGraphics();
g2.setClip(g.getClipBounds());
}
-
+
g2 = getComponentGraphics(g2);
paintComponent(g2);
paintBorder(g2);
this.verifyInputWhenFocusTarget = verifyInputWhenFocusTarget;
firePropertyChange("verifyInputWhenFocusTarget",
- ! verifyInputWhenFocusTarget,
- verifyInputWhenFocusTarget);
+ ! verifyInputWhenFocusTarget,
+ verifyInputWhenFocusTarget);
}
}