| 47 |  | import javax.swing.SwingUtilities; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 48 |  | import javax.swing.ToolTipManager; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 49 |  | import javax.swing.filechooser.FileFilter; | 
 
 
 
 
 
 
 
 | 50 | + | import javax.swing.text.html.CSS; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 51 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 52 |  | import net.oni2.SettingsManager; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 53 |  | import net.oni2.aeinstaller.AEInstaller2; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 82 |  | import net.oni2.platformtools.applicationinvoker.ApplicationInvoker; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 83 |  | import net.oni2.platformtools.applicationinvoker.ERuntimeNotInstalledException; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 84 |  | import net.oni2.resourcebundle.UTF8ResourceBundleLoader; | 
 
 
 
 
 
 
 
 | 85 | + | import net.oni2.swingcomponents.HTMLLinkLabel; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 86 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 87 |  | import org.javabuilders.BuildResult; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 88 |  | import org.javabuilders.annotations.DoInBackground; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 460 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 461 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 462 |  |  | 
 
 
 
 
 
 
 
 | 463 | + | @SuppressWarnings("unused") | 
 
 
 
 
 
 
 
 | 464 | + | private void showTips() { | 
 
 
 
 
 
 
 
 | 465 | + | if (SettingsManager.getInstance().get("showTips", true)) { | 
 
 
 
 
 
 
 
 | 466 | + | HTMLLinkLabel text = new HTMLLinkLabel(); | 
 
 
 
 
 
 
 
 | 467 | + | text.setCssAttribute("h2", CSS.Attribute.MARGIN_TOP, "0"); | 
 
 
 
 
 
 
 
 | 468 | + | text.setCssAttribute("h3", CSS.Attribute.MARGIN_TOP, "0"); | 
 
 
 
 
 
 
 
 | 469 | + | text.setCssAttribute("ul", CSS.Attribute.MARGIN_TOP, "0"); | 
 
 
 
 
 
 
 
 | 470 | + | text.setCssAttribute("ul", CSS.Attribute.MARGIN_LEFT, "20"); | 
 
 
 
 
 
 
 
 | 471 | + | text.setCssAttribute("ul li", CSS.Attribute.MARGIN_TOP, "10"); | 
 
 
 
 
 
 
 
 | 472 | + | text.setCssAttribute("ul li", CSS.Attribute.PADDING_LEFT, "10"); | 
 
 
 
 
 
 
 
 | 473 | + | text.setText(bundle.getString("startupTips.text")); | 
 
 
 
 
 
 
 
 | 474 | + | JOptionPane.showMessageDialog(this, text, | 
 
 
 
 
 
 
 
 | 475 | + | bundle.getString("startupTips.title"), | 
 
 
 
 
 
 
 
 | 476 | + | JOptionPane.INFORMATION_MESSAGE); | 
 
 
 
 
 
 
 
 | 477 | + | } | 
 
 
 
 
 
 
 
 | 478 | + | } | 
 
 
 
 
 
 
 
 | 479 | + |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 480 |  | @SuppressWarnings("unused") | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 481 |  | private void focus() { | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 482 |  | SwingUtilities.invokeLater(new Runnable() { |