private void clearImagePanel () { previewContainer.removeAll(); previewContainer.updateUI(); PreviewImagePanel.this.editor.renderer.setImageBackground(null); } });
private void buildImagePanel (JLabel previewImage, File file) { previewContainer.removeAll(); previewContainer.add(previewImage, new GridBagConstraints(0, 0, 1, 1, 1, 1, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); previewContainer.updateUI(); PreviewImagePanel.this.editor.renderer.setImageBackground(file); } });
private void clearImagePanel () { previewContainer.removeAll(); previewContainer.updateUI(); PreviewImagePanel.this.editor.renderer.setImageBackground(null); } });
private void buildImagePanel (JLabel previewImage, File file) { previewContainer.removeAll(); previewContainer.add(previewImage, new GridBagConstraints(0, 0, 1, 1, 1, 1, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); previewContainer.updateUI(); PreviewImagePanel.this.editor.renderer.setImageBackground(file); } });
@Override public void updateUI() { super.updateUI(); // TODO: Key off of Aqua LaF, not just OS X, as this size grip looks // bad on other LaFs on Mac such as Nimbus. if (System.getProperty("os.name").contains("OS X")) { if (osxSizeGrip==null) { osxSizeGrip = createOSXSizeGrip(); } } else { // Clear memory in case of runtime LaF change. osxSizeGrip = null; } }
public void updateUI() { super.updateUI(); if (caretMarkerColor instanceof ColorUIResource) { setCaretMarkerColor(getDefaultCaretMarkerColor()); } }
@Override public void updateUI() { try { super.updateUI(); } catch (Exception e) { } } };
@Override public void updateUI() { try { super.updateUI(); } catch (Throwable t) { } }
@Override public void updateUI() { UIManager.get("nb.propertysheet"); //Causes default colors for the property sheet to be bootstrapped into //UIDefaults - see core/swing/plaf super.updateUI(); }
private void takeDownProgressBar() { if (panel != null) { panel.remove(bar); panel.updateUI(); } }
private void setContentTo(JPanel p, String title) { menuButton.setVisible(p != menuCard); footer.setVisible(p == menuCard); this.content.removeAll(); this.content.add(p, BorderLayout.CENTER); titleLabel.setText(title); content.updateUI(); }
/** * 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(); }
private void setPrimaryPanel(JPanel p) { if (p instanceof SplashLoginComponent) { loginComponent.setPageAppropriately(); } primaryPanel.removeAll(); primaryPanel.setLayout(new BorderLayout()); primaryPanel.add(p, BorderLayout.CENTER); primaryPanel.updateUI(); }
@Override protected void showFailure(Throwable t) { previewPanel.removeAll(); previewPanel.add(new JLabel("<html><center><font color=\"#ff0000\">Problem generating preview.<br>Please check that the file is formatted correctly.</font></center></html>", JLabel.CENTER), BorderLayout.CENTER); previewPanel.updateUI(); importAccepted = false; setReady(false); } }
private void updateView() { refreshButtonIcons(); npanelContainer.removeAll(); if (!isHidden) { for (Notification n : notifications) { npanelContainer.add(map.get(n)); } } npanelContainer.updateUI(); }
@Override public void updateUI() { super.updateUI(); if (isBorderless) { _spinner.setBorder(null); } }
public synchronized void setFileInfoList(List<String[]> info) { details.removeAll(); ViewUtil.setBoxYLayout(details); String[][] values = new String[info.size()][2]; for (int i = 0; i < info.size(); i++) { values[i][0] = info.get(i)[0]; values[i][1] = info.get(i)[1]; } details.add(ViewUtil.getKeyValuePairList(values)); details.updateUI(); }
private void setUpProgressBar(String text) { bar = new JProgressBar(); bar.setIndeterminate(true); bar.setValue(0); bar.setStringPainted(true); bar.setVisible(true); bar.setString(text); if (panel != null){ panel.add(bar, BorderLayout.PAGE_END); panel.updateUI(); } }
public void updateUI() { super.updateUI(); if (caretMarkerColor instanceof ColorUIResource) { setCaretMarkerColor(getDefaultCaretMarkerColor()); } }
@Override public void updateUI() { if (UIDefaultsLookup.get("JideSplitPane.dividerSize") == null) { LookAndFeelFactory.installJideExtension(); } super.updateUI(); }