File tree 3 files changed +23
-2
lines changed
bundles/org.eclipse.swt/Eclipse SWT
cocoa/org/eclipse/swt/widgets
gtk/org/eclipse/swt/widgets
win32/org/eclipse/swt/widgets 3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -3991,6 +3991,10 @@ public void setLayoutData (Object layoutData) {
3991
3991
* @param x the new x coordinate for the receiver
3992
3992
* @param y the new y coordinate for the receiver
3993
3993
*
3994
+ * <p><strong>Recommended Usage:</strong> If you plan to use {@link #setSize(int, int)},
3995
+ * call it <em>before</em> calling this method. This ensures the control is sized
3996
+ * correctly before positioning, which helps avoid layout issues when using absolute positioning.</p>
3997
+ *
3994
3998
* @exception SWTException <ul>
3995
3999
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
3996
4000
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
@@ -4013,6 +4017,10 @@ public void setLocation (int x, int y) {
4013
4017
*
4014
4018
* @param location the new location for the receiver
4015
4019
*
4020
+ * <p><strong>Recommended Usage:</strong> If you plan to use {@link #setSize(int, int)},
4021
+ * call it <em>before</em> calling this method. This ensures the control is sized
4022
+ * correctly before positioning, which helps avoid layout issues when using absolute positioning.</p>
4023
+ *
4016
4024
* @exception SWTException <ul>
4017
4025
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
4018
4026
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
Original file line number Diff line number Diff line change @@ -1260,6 +1260,10 @@ Point getLocationInPixels () {
1260
1260
*
1261
1261
* @param location the new location for the receiver
1262
1262
*
1263
+ * <p><strong>Recommended Usage:</strong> If you plan to use {@link #setSize(int, int)},
1264
+ * call it <em>before</em> calling this method. This ensures the control is sized
1265
+ * correctly before positioning, which helps avoid layout issues when using absolute positioning.</p>
1266
+ *
1263
1267
* @exception SWTException <ul>
1264
1268
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
1265
1269
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
@@ -1290,6 +1294,10 @@ void setLocationInPixels (Point location) {
1290
1294
* @param x the new x coordinate for the receiver
1291
1295
* @param y the new y coordinate for the receiver
1292
1296
*
1297
+ * <p><strong>Recommended Usage:</strong> If you plan to use {@link #setSize(int, int)},
1298
+ * call it <em>before</em> calling this method. This ensures the control is sized
1299
+ * correctly before positioning, which helps avoid layout issues when using absolute positioning.</p>
1300
+ *
1293
1301
* @exception SWTException <ul>
1294
1302
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
1295
1303
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
Original file line number Diff line number Diff line change @@ -3504,8 +3504,9 @@ public void setLayoutData (Object layoutData) {
3504
3504
* intended effect on some platforms. For example, executing this operation on a
3505
3505
* shell when the environment uses the Wayland protocol, nothing will happen.
3506
3506
*
3507
- * @param x the new x coordinate for the receiver
3508
- * @param y the new y coordinate for the receiver
3507
+ * <p><strong>Recommended Usage:</strong> If you plan to use {@link #setSize(int, int)},
3508
+ * call it <em>before</em> calling this method. This ensures the control is sized
3509
+ * correctly before positioning, which helps avoid layout issues when using absolute positioning.</p>
3509
3510
*
3510
3511
* @exception SWTException <ul>
3511
3512
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
@@ -3537,6 +3538,10 @@ void setLocationInPixels (int x, int y) {
3537
3538
*
3538
3539
* @param location the new location for the receiver
3539
3540
*
3541
+ * <p><strong>Recommended Usage:</strong> If you plan to use {@link #setSize(int, int)},
3542
+ * call it <em>before</em> calling this method. This ensures the control is sized
3543
+ * correctly before positioning, which helps avoid layout issues when using absolute positioning.</p>
3544
+ *
3540
3545
* @exception SWTException <ul>
3541
3546
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
3542
3547
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
You can’t perform that action at this time.
0 commit comments