Files
tustu/app/com/efiAnalytics/ui/TimestampDisplayLabel.java
johndoe6345789 e17cdf49b3 Add wizard UI components and functionality
- Implement WizardCancelActionListener to handle cancellation actions.
- Create WizardDialog for managing dialog windows with window listener.
- Add WizardDialogCallback for handling dialog callbacks.
- Introduce WizardNextActionListener for handling next actions in the wizard.
- Develop WizardPanel to manage the wizard's layout and navigation.
- Implement WizardRunnable to run wizard actions in a separate thread.
- Define WizardStepCallback interface for step callbacks in the wizard.
- Create YAxisSelectorLayoutRunnable for managing layout updates.
- Add YAxisSelectorPanel for selecting Y-axis options in the UI.
- Remove unused interfaces and classes (cP, cT, co, cx, dx, eR, eU, ev).
2026-01-11 07:05:02 +00:00

60 lines
1.3 KiB
Java

package com.efiAnalytics.ui;
import java.text.DateFormat;
import java.util.Date;
import java.util.Timer;
import javax.swing.JLabel;
public class TimestampDisplayLabel extends JLabel {
Timer a = new Timer();
fk b = null;
long c = 0L;
private boolean d = true;
public fj() {
setHorizontalAlignment(0);
}
public void a(Date paramDate) {
if (this.d && this.b == null) {
this.b = new fk(this);
this.a.scheduleAtFixedRate(this.b, 0L, 1000L);
}
this.c = paramDate.getTime() - System.currentTimeMillis();
b();
}
public void a() {
if (this.b != null) {
this.b.cancel();
this.b = null;
}
setText("");
}
public void b() {
long l = System.currentTimeMillis() + this.c;
DateFormat dateFormat1 = DateFormat.getDateInstance(2);
DateFormat dateFormat2 = DateFormat.getTimeInstance(2);
Date date = new Date(l);
String str = dateFormat1.format(date) + " - " + dateFormat2.format(date);
setText(str);
}
public void a(boolean paramBoolean) {
this.d = paramBoolean;
if (!paramBoolean && this.b != null) {
this.b.cancel();
this.b = null;
}
}
}
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/com/efiAnalytics/ui/fj.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/