public final class DialogUtils
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
DialogUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
center(java.awt.Component component)
Center on screen
|
static java.lang.String |
input(java.awt.Frame owner)
Input string from user
|
static java.lang.Integer |
inputInteger(int min,
int max,
java.awt.Frame owner)
Input string from user
|
static javax.swing.JFileChooser |
makeFileDialog(java.lang.String title,
java.lang.String extension,
java.lang.String description,
java.lang.String base)
Make file dialog
|
static void |
message(int type,
java.lang.String message)
Display message
|
public static javax.swing.JFileChooser makeFileDialog(java.lang.String title, java.lang.String extension, java.lang.String description, java.lang.String base)
title
- dialog titleextension
- file extensiondescription
- description of file typebase
- base directorypublic static java.lang.String input(java.awt.Frame owner)
owner
- owner framepublic static java.lang.Integer inputInteger(int min, int max, java.awt.Frame owner)
min
- minmax
- maxowner
- owner framepublic static void message(int type, java.lang.String message)
type
- typemessage
- messagepublic static void center(java.awt.Component component)
component
- component to center