Last active
March 20, 2018 06:25
-
-
Save ggalmazor/367f05492e5efdfd81145a7bef1d42df to your computer and use it in GitHub Desktop.
Indirection without abstraction - Snippet 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ExportPanelForm { | |
private JLabel exportingLabel; | |
public void updateExportingLabel() { | |
String text = exportingLabel.getText(); | |
if (text.equals("Exporting..........")) { | |
text = "Exporting."; | |
} else { | |
text += "."; | |
} | |
exportingLabel.setText(text); | |
} | |
public void showExporting() { | |
exportingLabel.setText("Exporting."); | |
exportingLabel.setVisible(true); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment