Improved database installer dialogs.
This commit is contained in:
parent
4c57587838
commit
f382ecd2bc
@ -77,7 +77,5 @@ public class RunTasks extends Thread
|
|||||||
_frame.setFrameVisible(false);
|
_frame.setFrameVisible(false);
|
||||||
_frame.showMessage("Done!", "Database Installation Complete!", JOptionPane.INFORMATION_MESSAGE);
|
_frame.showMessage("Done!", "Database Installation Complete!", JOptionPane.INFORMATION_MESSAGE);
|
||||||
System.exit(0);
|
System.exit(0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -135,7 +135,21 @@ public class DBConfigGUI extends JFrame
|
|||||||
DBInstallerGUI dbi = new DBInstallerGUI(connector.getConnection());
|
DBInstallerGUI dbi = new DBInstallerGUI(connector.getConnection());
|
||||||
setVisible(false);
|
setVisible(false);
|
||||||
|
|
||||||
if (!_dir.equals("sql/login/"))
|
if (_dir.equals("sql/login/"))
|
||||||
|
{
|
||||||
|
Object[] options =
|
||||||
|
{
|
||||||
|
"Install Login",
|
||||||
|
"Exit"
|
||||||
|
};
|
||||||
|
int n = JOptionPane.showOptionDialog(null, "Install login server database?", "Select an option", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[1]);
|
||||||
|
|
||||||
|
if ((n == 1) || (n == -1))
|
||||||
|
{
|
||||||
|
System.exit(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
Object[] options =
|
Object[] options =
|
||||||
{
|
{
|
||||||
@ -143,7 +157,7 @@ public class DBConfigGUI extends JFrame
|
|||||||
"Ertheia Install",
|
"Ertheia Install",
|
||||||
"Exit"
|
"Exit"
|
||||||
};
|
};
|
||||||
int n = JOptionPane.showOptionDialog(null, "Select Installation Type", "Installation Type", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[1]);
|
int n = JOptionPane.showOptionDialog(null, "Select installation type.", "Select an option", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[1]);
|
||||||
|
|
||||||
if ((n == 2) || (n == -1))
|
if ((n == 2) || (n == -1))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user