Recent Changes

2014-07-07
2012-10-10
2012-10-09

Latest File Release

jfxmessagebox (jfxmessagebox-1.1.0)2012-10-10 18:55

Wiki Guide

Side Bar

Getting Started

How to install

  1. Download jfxmessagebox-X.X.X.jar
  2. Put jfxmessagebox-X.X.X.jar into your classpath.
  3. Use 'MessageBox' class like below.

Error Dialog

  1. import jfx.messagebox.MessageBox;
  2. MessageBox.show(primaryStage,
  3. "Sample of error dialog.\n\nDialog option is below.\n[MessageBox.ICON_ERROR]",
  4. "Error dialog",
  5. MessageBox.ICON_ERROR);

ErrorDialogSample.png

Warning Dialog

  1. import jfx.messagebox.MessageBox;
  2. MessageBox.show(primaryStage,
  3. "Sample of Warning dialog.\n\nDialog option is below.\n[MessageBox.ICON_WARNING]",
  4. "Warning dialog",
  5. MessageBox.ICON_WARNING);

WarningDialogSample.png

Information Dialog

  1. import jfx.messagebox.MessageBox;
  2. MessageBox.show(primaryStage,
  3. "Sample of information dialog.\n\nDialog option is below.\n[MessageBox.ICON_INFORMATION | MessageBox.OK | MessageBox.CANCEL]",
  4. "Information dialog",
  5. MessageBox.ICON_INFORMATION | MessageBox.OK | MessageBox.CANCEL);

InformationDialogSample.png

Question Dialog

  1. import jfx.messagebox.MessageBox;
  2. MessageBox.show(primaryStage,
  3. "Sample of question dialog.\n\nDialog option is below.\n[MessageBox.ICON_QUESTION | MessageBox.YES | MessageBox.NO | MessageBox.DEFAULT_BUTTON2]",
  4. "Question dialog",
  5. MessageBox.ICON_QUESTION | MessageBox.YES | MessageBox.NO | MessageBox.DEFAULT_BUTTON2);

QuestionDialogSample.png

Mix Dialog

  1. import jfx.messagebox.MessageBox;
  2. MessageBox.show(primaryStage,
  3. "Sample of question dialog.\n\nDialog option is below.\n[MessageBox.ICON_QUESTION | MessageBox.YES | MessageBox.NO | MessageBox.DEFAULT_BUTTON2]",
  4. "Question dialog",
  5. MessageBox.ICON_QUESTION | MessageBox.YES | MessageBox.NO | MessageBox.DEFAULT_BUTTON2);

AbortRetryIgnoreSample.png

Download

Latest File Release

jfxmessagebox (jfxmessagebox-1.1.0)2012-10-10 18:55

API Reference

JavaDoc