我的e4 javafx
应用程序在显示主窗口之前显示登录对话框。e4-Javafx:如何将当前主题应用于登录对话框
LifeCycleManager类
@PostContextCreate
void postContextCreate(Application app, IEclipseContext econtext){
//display login dialog extends org.eclipse.fx.ui.dialogs.TitleAreaDialog
LoginDialog dialog = new LoginDialog(null, "Login", "Login title", "Message", "");
int response = dialog.open();
if (response != Dialog.OK_BUTTON) {
System.exit(0);
}
....
}
对话框有默认的JavaFX样式(摩德纳)。
我如何获得当前主题并应用于此对话框?
在我的情况下,我不想从特定文件添加样式表。我需要从当前主题(可以是其中的许多主题)中获取样式表,并将它们(样式表)添加到对话阶段。 – 2015-03-26 12:08:28