Java 类javax.swing.plaf.basic.BasicPanelUI 实例源码

项目:cn1    文件:JComponentTest.java   
public void testSetUI() {
    ComponentUI componentUI1 = new BasicPanelUI();
    ComponentUI componentUI2 = new BasicPanelUI();
    panel = new JPanel();
    ((JPanel) panel).getUI().uninstallUI(panel);
    panel.setUI(null);
    PropertyChangeController changeListener = new PropertyChangeController();
    panel.addPropertyChangeListener(changeListener);
    panel.setUI(componentUI1);
    assertEquals(componentUI1, panel.ui);
    changeListener.checkPropertyFired(panel, "UI", null, componentUI1);
    changeListener.reset();
    panel.setUI(componentUI2);
    changeListener.checkPropertyFired(panel, "UI", componentUI1, componentUI2);
    changeListener.reset();
    panel.setUI(componentUI2);
    assertFalse(changeListener.isChanged("UI"));
}
项目:freeVM    文件:JComponentTest.java   
public void testSetUI() {
    ComponentUI componentUI1 = new BasicPanelUI();
    ComponentUI componentUI2 = new BasicPanelUI();
    panel = new JPanel();
    ((JPanel) panel).getUI().uninstallUI(panel);
    panel.setUI(null);
    PropertyChangeController changeListener = new PropertyChangeController();
    panel.addPropertyChangeListener(changeListener);
    panel.setUI(componentUI1);
    assertEquals(componentUI1, panel.ui);
    changeListener.checkPropertyFired(panel, "UI", null, componentUI1);
    changeListener.reset();
    panel.setUI(componentUI2);
    changeListener.checkPropertyFired(panel, "UI", componentUI1, componentUI2);
    changeListener.reset();
    panel.setUI(componentUI2);
    assertFalse(changeListener.isChanged("UI"));
}
项目:freeVM    文件:JComponentTest.java   
public void testSetUI() {
    ComponentUI componentUI1 = new BasicPanelUI();
    ComponentUI componentUI2 = new BasicPanelUI();
    panel = new JPanel();
    ((JPanel) panel).getUI().uninstallUI(panel);
    panel.setUI(null);
    PropertyChangeController changeListener = new PropertyChangeController();
    panel.addPropertyChangeListener(changeListener);
    panel.setUI(componentUI1);
    assertEquals(componentUI1, panel.ui);
    changeListener.checkPropertyFired(panel, "UI", null, componentUI1);
    changeListener.reset();
    panel.setUI(componentUI2);
    changeListener.checkPropertyFired(panel, "UI", componentUI1, componentUI2);
    changeListener.reset();
    panel.setUI(componentUI2);
    assertFalse(changeListener.isChanged("UI"));
}
项目:LS-jsampler    文件:PixmapPane.java   
@Override
public void
updateUI() { setUI(new BasicPanelUI()); }
项目:LS-jsampler    文件:FantasiaPanel.java   
@Override
public void
updateUI() { setUI(new BasicPanelUI()); }
项目:samebug-idea-plugin    文件:SamebugTabHeader.java   
@Override
public void updateUI() {
    setUI(new BasicPanelUI());
    updateColors();
}