public void actionPerformed(ActionEvent e){ try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Throwable t){ t.printStackTrace(); } SwingUtilities.updateComponentTreeUI(frame); frame.pack(); } });
UIManager.setLookAndFeel( plafInfos[index].getClassName() ); SwingUtilities.updateComponentTreeUI(frame); if (pack.isSelected()) { frame.pack();
/** * Sets the UI used by this text area. This is overridden so only the * right-click popup menu's UI is updated. The look and feel of an * <code>RTextArea</code> is independent of the Java Look and Feel, and so * this method does not change the text area itself. Subclasses (such as * <code>RSyntaxTextArea</code> can call <code>setRTextAreaUI</code> if * they wish to install a new UI. * * @param ui This parameter is ignored. */ @Override public final void setUI(TextUI ui) { // Update the popup menu's ui. if (popupMenu!=null) { SwingUtilities.updateComponentTreeUI(popupMenu); } // Set things like selection color, selected text color, etc. to // laf defaults (if values are null or UIResource instances). RTextAreaUI rtaui = (RTextAreaUI)getUI(); if (rtaui!=null) { rtaui.installDefaults(); } }
UIManager.put("List.selectionForeground", Color.blue); UIManager.put("Label.disabledForeground", Color.magenta); SwingUtilities.updateComponentTreeUI(f); f.pack(); javax.swing.SwingUtilities.invokeLater(new Runnable() {
UIManager.setLookAndFeel( available[index].getClassName()); SwingUtilities.updateComponentTreeUI(parent); } catch (Exception e) { e.printStackTrace(System.err);
SwingUtilities.updateComponentTreeUI(this);
UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName()); SwingUtilities.updateComponentTreeUI(this); } catch (Exception e) { e.printStackTrace();
/** * Updates Ui of renderer/editor for the hierarchical column. Need to do so * manually, as not accessible by the default lookup. */ protected void updateHierarchicalRendererEditor() { if (renderer != null) { SwingUtilities.updateComponentTreeUI(renderer); } }
public void propertyChange(PropertyChangeEvent event) { if (event.getPropertyName().equals("lookAndFeel")) { SwingUtilities.updateComponentTreeUI(menu); } }
/** * @inheritDoc * */ @Override public void updateUI() { SwingUtilities.updateComponentTreeUI(getPopupMenu()); }
/** * Updates the UI for a LookAndFeel change. */ @Override public void updateUI() { // here we need to update the UI for the popup menu, if the panel // has one... if (this.popup != null) { SwingUtilities.updateComponentTreeUI(this.popup); } super.updateUI(); }
/** * Updates the ui of the columnControl if appropriate. */ protected void updateColumnControlUI() { if ((columnControlButton != null) && (columnControlButton.getParent() == null)) { SwingUtilities.updateComponentTreeUI(columnControlButton); } }
/** * @inheritDoc * */ @Override public void updateUI() { SwingUtilities.updateComponentTreeUI(getPopupMenu()); }
public void run() { for (Window window : Window.getWindows()) { SwingUtilities.updateComponentTreeUI(window); } } });
void updateUI() { for (SwingController controller : controllers) { JFrame frame = controller.getViewerFrame(); if (frame != null) SwingUtilities.updateComponentTreeUI(frame); } } }
/** * Called when the {@link LookAndFeel} changed, should update colors, fonts, ... */ public void updateUI(){ if( selection != null ){ SwingUtilities.updateComponentTreeUI( selection.get().getComponent() ); } }
public static void updateLookAndFeel() { for (Window w : Window.getWindows()) { if (w.isDisplayable()) { SwingUtilities.updateComponentTreeUI(w); } } } }
public void updateUI() { setUI((TimelineRessourceHeaderUI) UIManager.getUI(this)); TimelineRessourceRenderer renderer = getDefaultRenderer(); if (!(renderer instanceof UIResource) && renderer instanceof Component) { SwingUtilities.updateComponentTreeUI((Component) renderer); } }
@Override public void updateUI() { super.updateUI(); setEnabled(isEnabled()); if (calendarPanel != null) { SwingUtilities.updateComponentTreeUI(popup); } }
/** * Called by the parent completion popup window the LookAndFeel is updated. */ public void updateUI() { SwingUtilities.updateComponentTreeUI(this); // Update editor pane for new font, bg, selection colors, etc. TipUtil.tweakTipEditorPane(descArea); scrollPane.setBackground(descArea.getBackground()); scrollPane.getViewport().setBackground(descArea.getBackground()); ((JPanel)getContentPane()).setBorder(TipUtil.getToolTipBorder()); }