175 |
* @see javax.swing.OverlayLayout |
* @see javax.swing.OverlayLayout |
176 |
* @see javax.swing.BoxLayout |
* @see javax.swing.BoxLayout |
177 |
*/ |
*/ |
178 |
float alignmentX = 0.0f; |
float alignmentX = 0.5f; |
179 |
|
|
180 |
/** |
/** |
181 |
* A value between 0.0 and 1.0 indicating the preferred vertical |
* A value between 0.0 and 1.0 indicating the preferred vertical |
190 |
* @see javax.swing.OverlayLayout |
* @see javax.swing.OverlayLayout |
191 |
* @see javax.swing.BoxLayout |
* @see javax.swing.BoxLayout |
192 |
*/ |
*/ |
193 |
float alignmentY = 0.0f; |
float alignmentY = 0.5f; |
194 |
|
|
195 |
/** |
/** |
196 |
* The border painted around this component. |
* The border painted around this component. |
1137 |
*/ |
*/ |
1138 |
public JToolTip createToolTip() |
public JToolTip createToolTip() |
1139 |
{ |
{ |
1140 |
JToolTip toolTip = new JToolTip(); |
JToolTip toolTip = new JToolTip(); |
1141 |
toolTip.setComponent(this); |
toolTip.setComponent(this); |
1142 |
toolTip.setTipText(toolTipText); |
toolTip.setTipText(toolTipText); |
1143 |
|
|
1144 |
return toolTip; |
return toolTip; |
1145 |
} |
} |
1173 |
toolTipText = null; |
toolTipText = null; |
1174 |
return; |
return; |
1175 |
} |
} |
1176 |
|
|
1177 |
// XXX: The tip text doesn't get updated unless you set it to null |
// XXX: The tip text doesn't get updated unless you set it to null |
1178 |
// and then to something not-null. This is consistent with the behaviour |
// and then to something not-null. This is consistent with the behaviour |
1179 |
// of Sun's ToolTipManager. |
// of Sun's ToolTipManager. |
1180 |
|
|
1181 |
String oldText = toolTipText; |
String oldText = toolTipText; |
1182 |
toolTipText = text; |
toolTipText = text; |
1183 |
|
|
1184 |
if (oldText == null) |
if (oldText == null) |
1185 |
ToolTipManager.sharedInstance().registerComponent(this); |
ToolTipManager.sharedInstance().registerComponent(this); |
1186 |
} |
} |
1428 |
g2 = doubleBuffer.getGraphics(); |
g2 = doubleBuffer.getGraphics(); |
1429 |
g2.setClip(g.getClipBounds()); |
g2.setClip(g.getClipBounds()); |
1430 |
} |
} |
1431 |
|
|
1432 |
g2 = getComponentGraphics(g2); |
g2 = getComponentGraphics(g2); |
1433 |
paintComponent(g2); |
paintComponent(g2); |
1434 |
paintBorder(g2); |
paintBorder(g2); |
2273 |
|
|
2274 |
this.verifyInputWhenFocusTarget = verifyInputWhenFocusTarget; |
this.verifyInputWhenFocusTarget = verifyInputWhenFocusTarget; |
2275 |
firePropertyChange("verifyInputWhenFocusTarget", |
firePropertyChange("verifyInputWhenFocusTarget", |
2276 |
! verifyInputWhenFocusTarget, |
! verifyInputWhenFocusTarget, |
2277 |
verifyInputWhenFocusTarget); |
verifyInputWhenFocusTarget); |
2278 |
} |
} |
2279 |
} |
} |