Dialog

introprog.Dialog
object Dialog

A module with utilities for creating standard GUI dialogs.

Attributes

Source
Dialog.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Dialog.type

Members list

Value members

Concrete methods

def file(button: String, startDir: String): String

Show a file choice dialog starting in startDir with confirm button text.

Show a file choice dialog starting in startDir with confirm button text.

Attributes

Source
Dialog.scala
def input(message: String, init: String): String

Show a message asking for input with init value. Return user input.

Show a message asking for input with init value. Return user input.

Returns empty string on Cancel.

Attributes

Source
Dialog.scala
def isOK(question: String, title: String): Boolean

Show a confirmation dialog with question and OK and Cancel buttons.

Show a confirmation dialog with question and OK and Cancel buttons.

Attributes

Source
Dialog.scala
def select(message: String, buttons: Seq[String], title: String): String

Show a selection dialog with buttons. Return a string with the chosen button text.

Show a selection dialog with buttons. Return a string with the chosen button text.

Attributes

Source
Dialog.scala
def selectColor(message: String, default: Color): Color

Show a color selection dialog and return the color that the user selected.

Show a color selection dialog and return the color that the user selected.

Attributes

Source
Dialog.scala
def show(message: String): Unit

Show a dialog with a message text.

Show a dialog with a message text.

Attributes

Source
Dialog.scala