diff options
author | syeyoung <cyong06@naver.com> | 2020-12-30 14:12:27 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2020-12-30 14:12:27 +0900 |
commit | 876fdf88c580c51dc794188c71e12898e6616dd8 (patch) | |
tree | bf25e93f6f95507fd90aacc133f0fd8be801634a /src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/SecretEditPane.java | |
parent | 00c92d34b5373441f798da15341d5606693be684 (diff) | |
download | Skyblock-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/panes/SecretEditPane.java')
-rwxr-xr-x | src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/SecretEditPane.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/SecretEditPane.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/SecretEditPane.java index 8ee6e116..84c36aab 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/SecretEditPane.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/SecretEditPane.java @@ -47,7 +47,7 @@ public class SecretEditPane extends MPanel implements DynamicEditor { public void run() { MParameter parameter; parameters.add(parameter = new MParameter(new Parameter(UUID.randomUUID().toString(), null, null), SecretEditPane.this)); - parameter.setBounds(new Rectangle(0,0,bounds.width, 20)); + parameter.setBounds(new Rectangle(0,0,getBounds().width, 20)); } }); @@ -77,7 +77,7 @@ public class SecretEditPane extends MPanel implements DynamicEditor { ValueEditCreator vec = ValueEditRegistry.getValueEditMap(en.getValue() == null ? "null" :en.getValue().getClass().getName()); MParameter mParameter = new MParameter(new Parameter(en.getKey(), vec.cloneObj(en.getValue()), vec.cloneObj(en.getValue())), this); - mParameter.setBounds(new Rectangle(0,0,bounds.width,20)); + mParameter.setBounds(new Rectangle(0,0,getBounds().width,20)); parameters.add(mParameter); } } @@ -86,7 +86,7 @@ public class SecretEditPane extends MPanel implements DynamicEditor { @Override public void onBoundsUpdate() { for (MPanel panel :getChildComponents()){ - panel.setSize(new Dimension(bounds.width, 20)); + panel.setSize(new Dimension(getBounds().width, 20)); } } @Override |