javax.swing.JPanel.updateUI()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(5.2k)|赞(0)|评价(0)|浏览(215)

本文整理了Java中javax.swing.JPanel.updateUI()方法的一些代码示例,展示了JPanel.updateUI()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JPanel.updateUI()方法的具体详情如下:
包路径:javax.swing.JPanel
类名称:JPanel
方法名:updateUI

JPanel.updateUI介绍

暂无

代码示例

代码示例来源:origin: libgdx/libgdx

private void clearImagePanel () {
    previewContainer.removeAll();
    previewContainer.updateUI();
    PreviewImagePanel.this.editor.renderer.setImageBackground(null);
  }
});

代码示例来源:origin: libgdx/libgdx

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);
  }
});

代码示例来源:origin: libgdx/libgdx

private void clearImagePanel () {
    previewContainer.removeAll();
    previewContainer.updateUI();
    PreviewImagePanel.this.editor.renderer.setImageBackground(null);
  }
});

代码示例来源:origin: libgdx/libgdx

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);
  }
});

代码示例来源:origin: bobbylight/RSyntaxTextArea

@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;
  }
}

代码示例来源:origin: bobbylight/RSyntaxTextArea

public void updateUI() {
  super.updateUI();
  if (caretMarkerColor instanceof ColorUIResource) {
    setCaretMarkerColor(getDefaultCaretMarkerColor());
  }
}

代码示例来源:origin: freeplane/freeplane

@Override
  public void updateUI() {
    try {
      super.updateUI();
    }
    catch (Exception e) {
    }
  }
};

代码示例来源:origin: org.appdapter/org.appdapter.lib.gui

@Override public void updateUI() {
  try {
    super.updateUI();
  } catch (Throwable t) {
  }
}

代码示例来源:origin: org.netbeans.api/org-openide-explorer

@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();
}

代码示例来源:origin: net.sf.taverna.t2.ui-activities/biomoby-activity-ui

private void takeDownProgressBar() {
  if (panel != null) {
  panel.remove(bar);
  panel.updateUI();
  }
  
}

代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client

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();
}

代码示例来源:origin: jfree/jfreechart

/**
 * 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();
}

代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client

private void setPrimaryPanel(JPanel p) {
  if (p instanceof SplashLoginComponent) {
    loginComponent.setPageAppropriately();
  }
  primaryPanel.removeAll();
  primaryPanel.setLayout(new BorderLayout());
  primaryPanel.add(p, BorderLayout.CENTER);
  primaryPanel.updateUI();
}

代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client

@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);
  }
}

代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client

private void updateView() {
  refreshButtonIcons();
  npanelContainer.removeAll();
  if (!isHidden) {
    for (Notification n : notifications) {
      npanelContainer.add(map.get(n));
    }
  }
  npanelContainer.updateUI();
}

代码示例来源:origin: com.eas.platypus/platypus-js-calendar-widget

@Override
public void updateUI() {
  super.updateUI();
  if (isBorderless) {
    _spinner.setBorder(null);
  }
}

代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client

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();
}

代码示例来源:origin: net.sf.taverna.t2.ui-activities/biomoby-activity-ui

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();
  }
}

代码示例来源:origin: com.fifesoft/rsyntaxtextarea

public void updateUI() {
  super.updateUI();
  if (caretMarkerColor instanceof ColorUIResource) {
    setCaretMarkerColor(getDefaultCaretMarkerColor());
  }
}

代码示例来源:origin: com.jidesoft/jide-oss

@Override
public void updateUI() {
  if (UIDefaultsLookup.get("JideSplitPane.dividerSize") == null) {
    LookAndFeelFactory.installJideExtension();
  }
  super.updateUI();
}

相关文章

微信公众号

最新文章

更多

JPanel类方法