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
void displayOptions(String name, List<String> options) { | |
print("Select $name ::") | |
options.eachWithIndex { String entry, int i -> | |
print(" $entry [${i + 1}]${i + 1 == options.size() ? ": " : ","}") | |
} | |
} | |
int readUserInput(List<String> options) { | |
displayOptions(options) | |
def input = ++new Scanner(System.in) |
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
import javax.swing.* | |
import java.awt.* | |
import java.nio.file.Path | |
import java.nio.file.Paths | |
import java.util.List | |
import static javax.swing.JOptionPane.* | |
/* | |
Display a checklist selected from a folder and write the user selection in a log file |
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
import javax.swing.JDialog | |
import javax.swing.JPanel | |
import java.awt.* | |
import java.awt.image.BufferedImage | |
import static java.lang.System.exit | |
import static javax.swing.JOptionPane.* | |
class TimerPanel extends JPanel { |
OlderNewer