aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditString.java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2020-12-30 14:12:27 +0900
committersyeyoung <cyong06@naver.com>2020-12-30 14:12:27 +0900
commit876fdf88c580c51dc794188c71e12898e6616dd8 (patch)
treebf25e93f6f95507fd90aacc133f0fd8be801634a /src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditString.java
parent00c92d34b5373441f798da15341d5606693be684 (diff)
downloadSkyblock-Dungeons-Guide-876fdf88c580c51dc794188c71e12898e6616dd8.tar.gz
Skyblock-Dungeons-Guide-876fdf88c580c51dc794188c71e12898e6616dd8.tar.bz2
Skyblock-Dungeons-Guide-876fdf88c580c51dc794188c71e12898e6616dd8.zip
use method, instead of field.
using field direct is baaaaaad
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditString.java')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditString.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditString.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditString.java
index abdda81f..2ec869e1 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditString.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditString.java
@@ -26,7 +26,7 @@ public class ValueEditString extends MPanel implements ValueEdit<String> {
}
};
MLabelAndElement mLabelAndElement = new MLabelAndElement("Prev",label);
- mLabelAndElement.setBounds(new Rectangle(0,0,bounds.width,20));
+ mLabelAndElement.setBounds(new Rectangle(0,0,getBounds().width,20));
add(mLabelAndElement);
}
{
@@ -39,7 +39,7 @@ public class ValueEditString extends MPanel implements ValueEdit<String> {
};
textField.setText(newData);
MLabelAndElement mLabelAndElement = new MLabelAndElement("New",textField);
- mLabelAndElement.setBounds(new Rectangle(0,20,bounds.width,20));
+ mLabelAndElement.setBounds(new Rectangle(0,20,getBounds().width,20));
add(mLabelAndElement);
}
}
@@ -47,7 +47,7 @@ public class ValueEditString extends MPanel implements ValueEdit<String> {
@Override
public void onBoundsUpdate() {
for (MPanel panel :getChildComponents()){
- panel.setSize(new Dimension(bounds.width, 20));
+ panel.setSize(new Dimension(getBounds().width, 20));
}
}