public final class TuttiUIUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
askQuestion(Component ui,
String message) |
static File |
chooseDirectory(Component parent,
String title,
String buttonLabel,
File incoming)
Choisir un répertoire via un sélecteur graphique de fichiers.
|
static File |
chooseFile(Component parent,
String title,
String buttonLabel,
File incoming,
String... filters)
Choisir un fichier via un sélecteur graphique de fichiers.
|
static JDialog |
openInDialog(JComponent ui,
JFrame frame,
String title,
Action closeAction) |
static JDialog |
openInDialog(JComponent ui,
JFrame frame,
String title,
Action closeAction,
Dimension dim) |
static void |
showErrorMessage(Component ui,
String message) |
static void |
showSuccessMessage(Component ui,
String message) |
static void |
updateBusyState(Component ui,
boolean busy) |
public static JDialog openInDialog(JComponent ui, JFrame frame, String title, Action closeAction)
public static JDialog openInDialog(JComponent ui, JFrame frame, String title, Action closeAction, Dimension dim)
public static File chooseFile(Component parent, String title, String buttonLabel, File incoming, String... filters)
parent - le component swing appelant le controletitle - le titre du dialogue de sélectionbuttonLabel - le label du boutton d'acceptationincoming - le fichier de base à utilierfilters - les filtres + descriptions sur le sélecteur de
fichierspublic static File chooseDirectory(Component parent, String title, String buttonLabel, File incoming)
parent - le component swing appelant le controletitle - le titre de la boite de dialogue de sléectionbuttonLabel - le label de l'action d'acceptationincoming - le fichier de base à utiliserpublic static void updateBusyState(Component ui, boolean busy)
Copyright © 2012 Ifremer. All Rights Reserved.