mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-04-24 13:45:00 +00:00
- Created a new MANIFEST.MF file for the JAR with version 1.0. - Added gradle.properties to specify Java 21 as the JDK for Gradle builds, ensuring compatibility with current Gradle/Kotlin versions.
73 lines
1.6 KiB
Java
73 lines
1.6 KiB
Java
package bt;
|
|
|
|
import com.efiAnalytics.ui.NumericTextField;
|
|
import java.awt.Dimension;
|
|
import java.util.ArrayList;
|
|
import javax.swing.BorderFactory;
|
|
|
|
public class NumericTextField extends do {
|
|
ArrayList a = new ArrayList();
|
|
|
|
private int b = 60;
|
|
|
|
public A() {
|
|
this("");
|
|
}
|
|
|
|
public A(String paramString) {
|
|
super(paramString);
|
|
addFocusListener(new B(this));
|
|
addKeyListener(new C(this));
|
|
setBorder(BorderFactory.createLoweredBevelBorder());
|
|
}
|
|
|
|
public Dimension getPreferredSize() {
|
|
Dimension dimension = super.getPreferredSize();
|
|
if (dimension.width < this.b)
|
|
dimension.setSize(this.b, dimension.height);
|
|
return dimension;
|
|
}
|
|
|
|
public Dimension getMinimumSize() {
|
|
Dimension dimension = super.getMinimumSize();
|
|
if (dimension.width < this.b)
|
|
dimension.setSize(this.b, dimension.height);
|
|
return dimension;
|
|
}
|
|
|
|
public void setEnabled(boolean paramBoolean) {
|
|
super.setEnabled(paramBoolean);
|
|
if (paramBoolean) {
|
|
setBorder(BorderFactory.createLoweredBevelBorder());
|
|
} else {
|
|
setBorder(BorderFactory.createEmptyBorder());
|
|
}
|
|
}
|
|
|
|
public double a() {
|
|
return f() ? Integer.parseInt(getText(), 16) : Double.parseDouble(getText());
|
|
}
|
|
|
|
public void a(bZ parambZ) {
|
|
this.a.add(parambZ);
|
|
}
|
|
|
|
public void b(bZ parambZ) {
|
|
this.a.remove(parambZ);
|
|
}
|
|
|
|
private void b() {
|
|
for (bZ bZ : this.a)
|
|
bZ.b(getText());
|
|
}
|
|
|
|
public void a(int paramInt) {
|
|
this.b = paramInt;
|
|
}
|
|
}
|
|
|
|
|
|
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/bt/A.class
|
|
* Java compiler version: 8 (52.0)
|
|
* JD-Core Version: 1.1.3
|
|
*/ |