/** Installs the default colors, border, and painter of the task pane container. */
 protected void installDefaults() {
   LookAndFeel.installColors(
       taskPane, "TaskPaneContainer.background", "TaskPaneContainer.foreground");
   LookAndFeel.installBorder(taskPane, "TaskPaneContainer.border");
   LookAndFeelAddons.installBackgroundPainter(taskPane, "TaskPaneContainer.backgroundPainter");
   LookAndFeel.installProperty(taskPane, "opaque", Boolean.TRUE);
 }
示例#2
0
 /**
  * Notification from the <code>UIManager</code> that the L&F has changed. Replaces the current UI
  * object with the latest version from the <code>UIManager</code>.
  *
  * @see javax.swing.JComponent#updateUI
  */
 @Override
 public void updateUI() {
   // collapsePane is null when updateUI() is called by the "super()"
   // constructor
   if (collapsePane == null) {
     return;
   }
   setUI((TaskPaneUI) LookAndFeelAddons.getUI(this, TaskPaneUI.class));
 }
示例#3
0
 /**
  * Notification from the <code>UIManager</code> that the L&F has changed. Replaces the current UI
  * object with the latest version from the <code>UIManager</code>.
  *
  * @see javax.swing.JComponent#updateUI
  */
 public void updateUI() {
   setUI((TipOfTheDayUI) LookAndFeelAddons.getUI(this, TipOfTheDayUI.class));
 }
示例#4
0
 // ensure at least the default ui is registered
 static {
   LookAndFeelAddons.contribute(new TipOfTheDayAddon());
 }
示例#5
0
 // ensure at least the default ui is registered
 static {
   LookAndFeelAddons.contribute(new TaskPaneAddon());
 }
 /** Uninstalls the default colors, border, and painter of the task pane container. */
 protected void uninstallDefaults() {
   LookAndFeel.uninstallBorder(taskPane);
   LookAndFeelAddons.uninstallBackgroundPainter(taskPane);
 }