本文整理汇总了Java中net.sf.memoranda.EventsScheduler.init方法的典型用法代码示例。如果您正苦于以下问题:Java EventsScheduler.init方法的具体用法?Java EventsScheduler.init怎么用?Java EventsScheduler.init使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sf.memoranda.EventsScheduler
的用法示例。
在下文中一共展示了EventsScheduler.init方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: saveEvents
import net.sf.memoranda.EventsScheduler; //导入方法依赖的package包/类
private void saveEvents() {
CurrentStorage.get().storeEventsManager();
eventsTable.refresh();
EventsScheduler.init();
parentPanel.calendar.jnCalendar.updateUI();
parentPanel.updateIndicators();
}
示例2: saveEvents
import net.sf.memoranda.EventsScheduler; //导入方法依赖的package包/类
public void saveEvents() {
CurrentStorage.get().storeEventsManager();
eventsTable.refresh();
EventsScheduler.init();
parentPanel.calendar.jnCalendar.updateUI();
parentPanel.updateIndicators();
}
示例3: saveEvents
import net.sf.memoranda.EventsScheduler; //导入方法依赖的package包/类
private void saveEvents() {
CurrentStorage.get().storeEventsManager();
eventsTable.refresh();
EventsScheduler.init();
parentPanel.calendar.jnCalendar.updateUI();
parentPanel.updateIndicators();
}
示例4: saveEvents
import net.sf.memoranda.EventsScheduler; //导入方法依赖的package包/类
private void saveEvents() {
CurrentStorage.get().storeEventsManager();
eventsTable.refresh();
EventsScheduler.init();
parentPanel.calendar.jnCalendar.updateUI();
parentPanel.updateIndicators();
}
示例5: App
import net.sf.memoranda.EventsScheduler; //导入方法依赖的package包/类
public App(boolean fullmode) {
super();
if (fullmode) {
fullmode = !Configuration.get("START_MINIMIZED").equals("yes");
}
/* DEBUG */
// else {
// System.out.println("Minimized mode");
// }
if (!Configuration.get("SHOW_SPLASH").equals("no")) {
showSplash();
}
// System.out.println(VERSION_INFO);
// System.out.println(Configuration.get("LOOK_AND_FEEL"));
App_trylf();
if (Configuration.get("FIRST_DAY_OF_WEEK").equals("")) {
String fdow;
if (Calendar.getInstance().getFirstDayOfWeek() == 2) {
fdow = "mon";
} else {
fdow = "sun";
}
Configuration.put("FIRST_DAY_OF_WEEK", fdow);
Configuration.saveConfig();
/* DEBUG */
System.out.println("[DEBUG] first day of week is set to " + fdow);
}
EventsScheduler.init();
frame = new AppFrame();
if (fullmode) {
init();
}
if (!Configuration.get("SHOW_SPLASH").equals("no")) {
splash.dispose();
}
}
示例6: saveEvents
import net.sf.memoranda.EventsScheduler; //导入方法依赖的package包/类
private void saveEvents() {
CurrentStorage.get().storeEventsManager();
eventsTable.refresh();
EventsScheduler.init();
parentPanel.calendar.jnCalendar.updateUI();
parentPanel.updateIndicators();
}
示例7: saveEvents
import net.sf.memoranda.EventsScheduler; //导入方法依赖的package包/类
private void saveEvents() {
CurrentStorage.get().storeEventsManager();
eventsTable.refresh();
//sets tables font size
eventsTable.setFont((new Font("serif", Font.PLAIN, Integer.parseInt(Configuration.get("BASE_FONT_SIZE").toString()))));
EventsScheduler.init();
parentPanel.calendar.jnCalendar.updateUI();
parentPanel.updateIndicators();
}
示例8: App
import net.sf.memoranda.EventsScheduler; //导入方法依赖的package包/类
public App(boolean fullmode) {
super();
if (fullmode)
fullmode = !Configuration.get("START_MINIMIZED").equals("yes");
/* DEBUG */
if (!fullmode)
System.out.println("Minimized mode");
// TODO: make language selection configurable
showSelectLanguageDialog();
if (!Configuration.get("SHOW_SPLASH").equals("no"))
showSplash();
System.out.println(VERSION_INFO);
System.out.println(Configuration.get("LOOK_AND_FEEL"));
try {
if (Configuration.get("LOOK_AND_FEEL").equals("system"))
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
else if (Configuration.get("LOOK_AND_FEEL").equals("default"))
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
else if (Configuration.get("LOOK_AND_FEEL").toString().length() > 0)
UIManager.setLookAndFeel(Configuration.get("LOOK_AND_FEEL").toString());
} catch (Exception e) {
new ExceptionDialog(e, "Error when initializing a pluggable look-and-feel. Default LF will be used.",
"Make sure that specified look-and-feel library classes are on the CLASSPATH.");
}
if (Configuration.get("FIRST_DAY_OF_WEEK").equals("")) {
String fdow;
if (Calendar.getInstance().getFirstDayOfWeek() == 2)
fdow = "mon";
else
fdow = "sun";
Configuration.put("FIRST_DAY_OF_WEEK", fdow);
Configuration.saveConfig();
/* DEBUG */
System.out.println("[DEBUG] first day of week is set to " + fdow);
}
EventsScheduler.init();
frame = new AppFrame();
if (fullmode) {
init();
}
if (!Configuration.get("SHOW_SPLASH").equals("no"))
splash.dispose();
}
示例9: App
import net.sf.memoranda.EventsScheduler; //导入方法依赖的package包/类
public App(boolean fullmode) {
super();
IconFontSwing.register(GoogleMaterialDesignIcons.getIconFont());
if (fullmode)
fullmode = !Configuration.get("START_MINIMIZED").equals("yes");
/* DEBUG */
if (!fullmode)
Util.debug("Minimized mode");
if (!Configuration.get("SHOW_SPLASH").equals("no")){
showSplash();
}
Util.debug(VERSION_INFO);
Util.debug(Configuration.get("LOOK_AND_FEEL").toString());
try {
if (Configuration.get("LOOK_AND_FEEL").equals("system"))
UIManager.setLookAndFeel(
UIManager.getSystemLookAndFeelClassName());
else if (Configuration.get("LOOK_AND_FEEL").equals("default"))
UIManager.setLookAndFeel(
UIManager.getCrossPlatformLookAndFeelClassName());
else if (
Configuration.get("LOOK_AND_FEEL").toString().length() > 0)
UIManager.setLookAndFeel(
Configuration.get("LOOK_AND_FEEL").toString());
} catch (Exception e) {
new ExceptionDialog(e, "Error when initializing a pluggable look-and-feel. Default LF will be used.", "Make sure that specified look-and-feel library classes are on the CLASSPATH.");
}
if (Configuration.get("FIRST_DAY_OF_WEEK").equals("")) {
String fdow;
if (Calendar.getInstance().getFirstDayOfWeek() == 2)
fdow = "mon";
else
fdow = "sun";
Configuration.put("FIRST_DAY_OF_WEEK", fdow);
Configuration.saveConfig();
Util.debug("first day of week is set to " + fdow);
}
Palette.setPalette(CurrentProject.get().getColor());
showLogin();
login.dispose();
EventsScheduler.init();
frame = AppFrame.getAppFrame();
if (fullmode) {
init();
}
if (!Configuration.get("SHOW_SPLASH").equals("no"))
splash.dispose();
}
示例10: saveEvents
import net.sf.memoranda.EventsScheduler; //导入方法依赖的package包/类
public void saveEvents() {
eventsTable.refresh();
EventsScheduler.init();
parentPanel.calendar.jnCalendar.updateUI();
parentPanel.updateIndicators();
}
示例11: App
import net.sf.memoranda.EventsScheduler; //导入方法依赖的package包/类
public App(boolean fullmode) {
super();
if (fullmode)
fullmode = !Configuration.get("START_MINIMIZED").equals("yes");
/* DEBUG */
if (!fullmode)
System.out.println("Minimized mode");
if (!Configuration.get("SHOW_SPLASH").equals("no"))
showSplash();
System.out.println(VERSION_INFO);
System.out.println(Configuration.get("LOOK_AND_FEEL"));
try {
if (Configuration.get("LOOK_AND_FEEL").equals("system"))
UIManager.setLookAndFeel(
UIManager.getSystemLookAndFeelClassName());
else if (Configuration.get("LOOK_AND_FEEL").equals("default"))
UIManager.setLookAndFeel(
UIManager.getCrossPlatformLookAndFeelClassName());
else if (
Configuration.get("LOOK_AND_FEEL").toString().length() > 0)
UIManager.setLookAndFeel(
Configuration.get("LOOK_AND_FEEL").toString());
} catch (Exception e) {
new ExceptionDialog(e, "Error when initializing a pluggable look-and-feel. Default LF will be used.", "Make sure that specified look-and-feel library classes are on the CLASSPATH.");
}
if (Configuration.get("FIRST_DAY_OF_WEEK").equals("")) {
String fdow;
if (Calendar.getInstance().getFirstDayOfWeek() == 2)
fdow = "mon";
else
fdow = "sun";
Configuration.put("FIRST_DAY_OF_WEEK", fdow);
Configuration.saveConfig();
/* DEBUG */
System.out.println("[DEBUG] first day of week is set to " + fdow);
}
EventsScheduler.init();
frame = new AppFrame();
if (fullmode) {
init();
}
if (!Configuration.get("SHOW_SPLASH").equals("no"))
splash.dispose();
}
示例12: App
import net.sf.memoranda.EventsScheduler; //导入方法依赖的package包/类
public App(boolean fullmode) {
super();
if (fullmode) {
fullmode = !Configuration.get("START_MINIMIZED").equals("yes");
}
/* DEBUG */
if (!fullmode) {
System.out.println("Minimized mode");
}
if (!Configuration.get("SHOW_SPLASH").equals("no")) {
showSplash();
}
System.out.println(VERSION_INFO);
System.out.println(Configuration.get("LOOK_AND_FEEL"));
try {
if (Configuration.get("LOOK_AND_FEEL").equals("system")) {
UIManager.setLookAndFeel(
UIManager.getSystemLookAndFeelClassName());
} else if (Configuration.get("LOOK_AND_FEEL").equals("default")) {
UIManager.setLookAndFeel(
UIManager.getCrossPlatformLookAndFeelClassName());
} else if (Configuration.get("LOOK_AND_FEEL").equals("motif")) {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
} else if (Configuration.get("LOOK_AND_FEEL").equals("seaglass")) {
UIManager.setLookAndFeel("com.seaglasslookandfeel.SeaGlassLookAndFeel");
} else if (Configuration.get("LOOK_AND_FEEL").equals("nimbus")) {
UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel");
} else if (
Configuration.get("LOOK_AND_FEEL").toString().length() > 0) {
UIManager.setLookAndFeel(
Configuration.get("LOOK_AND_FEEL").toString());
}
} catch (Exception e) {
new ExceptionDialog(e, "Error when initializing a pluggable look-and-feel. "
+ "Default LF will be used.", "Make sure that specified look-and-feel "
+ "library classes are on the CLASSPATH.");
}
if (Configuration.get("FIRST_DAY_OF_WEEK").equals("")) {
String fdow;
if (Calendar.getInstance().getFirstDayOfWeek() == 2) {
fdow = "mon";
} else {
fdow = "sun";
}
Configuration.put("FIRST_DAY_OF_WEEK", fdow);
Configuration.saveConfig();
/* DEBUG */
System.out.println("[DEBUG] first day of week is set to " + fdow);
}
EventsScheduler.init();
frame = new AppFrame();
if (fullmode) {
init();
}
if (!Configuration.get("SHOW_SPLASH").equals("no")) {
splash.dispose();
}
}
示例13: App
import net.sf.memoranda.EventsScheduler; //导入方法依赖的package包/类
public App(boolean fullmode) {
super();
if (fullmode)
fullmode = !Configuration.get("START_MINIMIZED").equals("yes");
/* DEBUG */
if (!fullmode)
System.out.println("Minimized mode");
if (!Configuration.get("SHOW_SPLASH").equals("no"))
showSplash();
System.out.println(VERSION_INFO);
System.out.println(Configuration.get("LOOK_AND_FEEL"));
try {
if (Configuration.get("LOOK_AND_FEEL").equals("system"))
UIManager.setLookAndFeel(
UIManager.getSystemLookAndFeelClassName());
else if (Configuration.get("LOOK_AND_FEEL").equals("default"))
UIManager.setLookAndFeel(
UIManager.getCrossPlatformLookAndFeelClassName());
else if (
Configuration.get("LOOK_AND_FEEL").toString().length() > 0)
UIManager.setLookAndFeel(
Configuration.get("LOOK_AND_FEEL").toString());
} catch (Exception e) {
new ExceptionDialog(e, "Error when initializing a pluggable look-and-feel. Default LF will be used.", "Make sure that specified look-and-feel library classes are on the CLASSPATH.");
}
if (Configuration.get("FIRST_DAY_OF_WEEK").equals("")) {
String fdow;
if (Calendar.getInstance().getFirstDayOfWeek() == 2)
fdow = "mon";
else
fdow = "sun";
Configuration.put("FIRST_DAY_OF_WEEK", fdow);
Configuration.saveConfig();
/* DEBUG */
System.out.println("[DEBUG] first day of week is set to " + fdow);
}
if (Configuration.get("BACKGROUND_COLOR_SETTING").equals(null))
Configuration.put("BACKGROUND_COLOR_SETTING", "WHITE");
EventsScheduler.init();
frame = new AppFrame();
if (fullmode) {
init();
}
if (!Configuration.get("SHOW_SPLASH").equals("no"))
splash.dispose();
}
示例14: reload
import net.sf.memoranda.EventsScheduler; //导入方法依赖的package包/类
/**
* Method reload to apply color changes.
*/
public static void reload (boolean fullmode) {
frame.dispose();
if (fullmode)
fullmode = !Configuration.get("START_MINIMIZED").equals("yes");
/* DEBUG */
if (!fullmode)
System.out.println("Minimized mode");
try {
if (Configuration.get("LOOK_AND_FEEL").equals("system"))
UIManager.setLookAndFeel(
UIManager.getSystemLookAndFeelClassName());
else if (Configuration.get("LOOK_AND_FEEL").equals("default"))
UIManager.setLookAndFeel(
UIManager.getCrossPlatformLookAndFeelClassName());
else if (
Configuration.get("LOOK_AND_FEEL").toString().length() > 0)
UIManager.setLookAndFeel(
Configuration.get("LOOK_AND_FEEL").toString());
} catch (Exception e) {
new ExceptionDialog(e, "Error when initializing a pluggable look-and-feel. Default LF will be used.", "Make sure that specified look-and-feel library classes are on the CLASSPATH.");
}
if (Configuration.get("FIRST_DAY_OF_WEEK").equals("")) {
String fdow;
if (Calendar.getInstance().getFirstDayOfWeek() == 2)
fdow = "mon";
else
fdow = "sun";
Configuration.put("FIRST_DAY_OF_WEEK", fdow);
Configuration.saveConfig();
/* DEBUG */
System.out.println("[DEBUG] first day of week is set to " + fdow);
}
EventsScheduler.init();
frame = new AppFrame();
if (fullmode) {
double JVMVer =
Double
.valueOf(System.getProperty("java.version").substring(0, 3))
.doubleValue();
frame.pack();
if (JVMVer >= 1.4) {
frame.setExtendedState(Frame.MAXIMIZED_BOTH);
} else {
frame.setExtendedState(Frame.NORMAL);
}
frame.setVisible(true);
frame.toFront();
frame.requestFocus();
}
}
示例15: App
import net.sf.memoranda.EventsScheduler; //导入方法依赖的package包/类
public App(boolean fullmode, boolean tray) {
super();
if (fullmode)
fullmode = !Configuration.get("START_MINIMIZED").equals("yes");
/* DEBUG */
if (!fullmode)
System.out.println("Minimized mode");
if (!Configuration.get("SHOW_SPLASH").equals("no"))
showSplash();
System.out.println(VERSION_INFO);
System.out.println(Configuration.get("LOOK_AND_FEEL"));
try {
if (Configuration.get("LOOK_AND_FEEL").equals("Day")) {
UIManager.setLookAndFeel(
UIManager.getCrossPlatformLookAndFeelClassName());
ColorPanels.setTheme("Day");
}
else if (Configuration.get("LOOK_AND_FEEL").equals("Night")) {
UIManager.setLookAndFeel(
UIManager.getCrossPlatformLookAndFeelClassName());
ColorPanels.setTheme("Night");
}
else {
UIManager.setLookAndFeel(
UIManager.getCrossPlatformLookAndFeelClassName());
ColorPanels.setTheme("Day");
}
} catch (Exception e) {
new ExceptionDialog(e, "Error when initializing a pluggable look-and-feel. Default LF will be used.", "Make sure that specified look-and-feel library classes are on the CLASSPATH.");
}
if (Configuration.get("FIRST_DAY_OF_WEEK").equals("")) {
String fdow;
if (Calendar.getInstance().getFirstDayOfWeek() == 2)
fdow = "mon";
else
fdow = "sun";
Configuration.put("FIRST_DAY_OF_WEEK", fdow);
Configuration.saveConfig();
/* DEBUG */
System.out.println("[DEBUG] first day of week is set to " + fdow);
}
EventsScheduler.init();
frame = new AppFrame(tray);
this.tray = tray;
if (fullmode) {
init();
}
if (!Configuration.get("SHOW_SPLASH").equals("no"))
splash.dispose();
}