Java 类javax.swing.plaf.PanelUI 实例源码
项目:pumpernickel
文件:TransitionPanel.java
public TransitionPanel() {
setLayout(cardLayout);
add(contentPane, "default");
add(transitionPane, "transition");
transitionPane.setUI(new PanelUI() {
@Override
public void paint(Graphics g, JComponent c) {
super.paint(g, c);
if(animation!=null) {
animation.paint(g);
}
}
});
}
项目:freecol
文件:EndTurnDialog.java
public UnitCellRenderer() {
itemPanel.setOpaque(false);
itemPanel.setLayout(new MigLayout("", "[60]"));
selectedPanel.setOpaque(false);
selectedPanel.setLayout(new MigLayout("", "[60]"));
selectedPanel.setUI((PanelUI)FreeColSelectedPanelUI.createUI(selectedPanel));
locationLabel.setFont(locationLabel.getFont()
.deriveFont(Font.ITALIC));
}
项目:freecol
文件:TradeRouteInputPanel.java
public StopRenderer() {
NORMAL_COMPONENT.setLayout(new MigLayout("", "[80, center][]"));
NORMAL_COMPONENT.setOpaque(false);
SELECTED_COMPONENT.setLayout(new MigLayout("", "[80, center][]"));
SELECTED_COMPONENT.setOpaque(false);
SELECTED_COMPONENT.setUI((PanelUI)FreeColSelectedPanelUI
.createUI(SELECTED_COMPONENT));
}
项目:freecol
文件:BuildQueuePanel.java
public DefaultBuildQueueCellRenderer() {
itemPanel.setOpaque(false);
itemPanel.setLayout(new MigLayout());
selectedPanel.setOpaque(false);
selectedPanel.setLayout(new MigLayout());
selectedPanel.setUI((PanelUI)FreeColSelectedPanelUI.createUI(selectedPanel));
}
项目:FreeCol
文件:EndTurnDialog.java
public UnitCellRenderer() {
itemPanel.setOpaque(false);
itemPanel.setLayout(new MigLayout("", "[60]"));
selectedPanel.setOpaque(false);
selectedPanel.setLayout(new MigLayout("", "[60]"));
selectedPanel.setUI((PanelUI)FreeColSelectedPanelUI.createUI(selectedPanel));
locationLabel.setFont(locationLabel.getFont()
.deriveFont(Font.ITALIC));
}
项目:FreeCol
文件:TradeRouteInputPanel.java
public StopRenderer() {
NORMAL_COMPONENT.setLayout(new MigLayout("", "[80, center][]"));
NORMAL_COMPONENT.setOpaque(false);
SELECTED_COMPONENT.setLayout(new MigLayout("", "[80, center][]"));
SELECTED_COMPONENT.setOpaque(false);
SELECTED_COMPONENT.setUI((PanelUI)FreeColSelectedPanelUI
.createUI(SELECTED_COMPONENT));
}
项目:FreeCol
文件:BuildQueuePanel.java
public DefaultBuildQueueCellRenderer() {
itemPanel.setOpaque(false);
itemPanel.setLayout(new MigLayout());
selectedPanel.setOpaque(false);
selectedPanel.setLayout(new MigLayout());
selectedPanel.setUI((PanelUI)FreeColSelectedPanelUI.createUI(selectedPanel));
}
项目:cn1
文件:BasicPanelUITest.java
public void testCreateUI() {
JComponent component = new JPanel();
ComponentUI ui = BasicPanelUI.createUI(component);
assertTrue(ui != null && (ui instanceof PanelUI));
component = new JButton();
ui = BasicPanelUI.createUI(component);
assertTrue(ui != null);
}
项目:freeVM
文件:BasicPanelUITest.java
public void testCreateUI() {
JComponent component = new JPanel();
ComponentUI ui = BasicPanelUI.createUI(component);
assertTrue(ui != null && (ui instanceof PanelUI));
component = new JButton();
ui = BasicPanelUI.createUI(component);
assertTrue(ui != null);
}
项目:freeVM
文件:BasicPanelUITest.java
public void testCreateUI() {
JComponent component = new JPanel();
ComponentUI ui = BasicPanelUI.createUI(component);
assertTrue(ui != null && (ui instanceof PanelUI));
component = new JButton();
ui = BasicPanelUI.createUI(component);
assertTrue(ui != null);
}
项目:SOEN6471-FreeCol
文件:TradeRouteInputDialog.java
public StopRenderer() {
NORMAL_COMPONENT.setLayout(new MigLayout("", "[80, center][]"));
NORMAL_COMPONENT.setOpaque(false);
SELECTED_COMPONENT.setLayout(new MigLayout("", "[80, center][]"));
SELECTED_COMPONENT.setOpaque(false);
SELECTED_COMPONENT.setUI((PanelUI) FreeColSelectedPanelUI.createUI(SELECTED_COMPONENT));
}
项目:SOEN6471-FreeCol
文件:EndTurnDialog.java
public UnitCellRenderer() {
itemPanel.setOpaque(false);
itemPanel.setLayout(new MigLayout("", "[60]"));
selectedPanel.setOpaque(false);
selectedPanel.setLayout(new MigLayout("", "[60]"));
selectedPanel.setUI((PanelUI) FreeColSelectedPanelUI.createUI(selectedPanel));
locationLabel.setFont(locationLabel.getFont().deriveFont(Font.ITALIC));
}
项目:SOEN6471-FreeCol
文件:BuildQueuePanel.java
public DefaultBuildQueueCellRenderer() {
itemPanel.setOpaque(false);
itemPanel.setLayout(new MigLayout());
selectedPanel.setOpaque(false);
selectedPanel.setLayout(new MigLayout());
selectedPanel.setUI((PanelUI) FreeColSelectedPanelUI.createUI(selectedPanel));
}
项目:incubator-netbeans
文件:ScrollableMessagesList.java
@Override
public void setUI(PanelUI ui) {
preferredSize = null;
super.setUI(ui);
}
项目:j2se_for_android
文件:JPanel.java
public PanelUI getUI() {
return null;
}
项目:j2se_for_android
文件:JPanel.java
public void setUI(PanelUI ui) {
super.setUI(ui);
}
项目:javify
文件:JPanel.java
/**
* Sets this panel's UI delegate to the default (obtained from the
* {@link UIManager}) for the current look and feel.
*/
public void updateUI()
{
setUI((PanelUI) UIManager.getUI(this));
}
项目:intellij-ce-playground
文件:ToolWindowHeader.java
@Override
public void setUI(PanelUI ui) {
clearCaches();
super.setUI(ui);
}
项目:intellij-ce-playground
文件:NavBarPanel.java
@Override
public void setUI(PanelUI ui) {
getNavBarUI().clearItems();
super.setUI(ui);
}
项目:intellij-ce-playground
文件:ThemeEditorComponent.java
@Override
public void setUI(PanelUI ui) {
super.setUI(ui);
updateUiParameters();
}
项目:jvm-stm
文件:JPanel.java
/**
* Sets this panel's UI delegate to the default (obtained from the
* {@link UIManager}) for the current look and feel.
*/
public void updateUI()
{
setUI((PanelUI) UIManager.getUI(this));
}
项目:cn1
文件:JPanel.java
/**
* Sets value taken from current L&F to UI property of the panel
*/
public void updateUI() {
setUI((PanelUI)UIManager.getUI(this));
}
项目:JamVM-PH
文件:JPanel.java
/**
* Sets this panel's UI delegate to the default (obtained from the
* {@link UIManager}) for the current look and feel.
*/
public void updateUI()
{
setUI((PanelUI) UIManager.getUI(this));
}
项目:tools-idea
文件:ToolWindowHeader.java
@Override
public void setUI(PanelUI ui) {
clearCaches();
super.setUI(ui);
}
项目:tools-idea
文件:NavBarPanel.java
@Override
public void setUI(PanelUI ui) {
getNavBarUI().clearItems();
super.setUI(ui);
}
项目:classpath
文件:JPanel.java
/**
* Sets this panel's UI delegate to the default (obtained from the
* {@link UIManager}) for the current look and feel.
*/
public void updateUI()
{
setUI((PanelUI) UIManager.getUI(this));
}
项目:freeVM
文件:JPanel.java
/**
* Sets value taken from current L&F to UI property of the panel
*/
public void updateUI() {
setUI((PanelUI)UIManager.getUI(this));
}
项目:freeVM
文件:JPanel.java
/**
* Sets value taken from current L&F to UI property of the panel
*/
public void updateUI() {
setUI((PanelUI)UIManager.getUI(this));
}
项目:consulo
文件:NavBarPanel.java
@Override
public void setUI(PanelUI ui) {
getNavBarUI().clearItems();
super.setUI(ui);
}
项目:consulo
文件:DesktopToolWindowHeader.java
@Override
public void setUI(PanelUI ui) {
clearCaches();
super.setUI(ui);
}
项目:javify
文件:JPanel.java
/**
* Sets the UI delegate for the <code>JPanel</code> component.
*
* @param ui the UI delegate.
*
* @since 1.4
* @see #getUI()
*/
public void setUI(PanelUI ui)
{
super.setUI(ui);
}
项目:javify
文件:JPanel.java
/**
* Returns the UI delegate for the <code>JPanel</code> component.
*
* @return The UI delegate.
*
* @since 1.4
* @see #setUI(PanelUI)
*/
public PanelUI getUI()
{
return (PanelUI) ui;
}
项目:jvm-stm
文件:JPanel.java
/**
* Sets the UI delegate for the <code>JPanel</code> component.
*
* @param ui the UI delegate.
*
* @since 1.4
* @see #getUI()
*/
public void setUI(PanelUI ui)
{
super.setUI(ui);
}
项目:jvm-stm
文件:JPanel.java
/**
* Returns the UI delegate for the <code>JPanel</code> component.
*
* @return The UI delegate.
*
* @since 1.4
* @see #setUI(PanelUI)
*/
public PanelUI getUI()
{
return (PanelUI) ui;
}
项目:cn1
文件:JPanel.java
/**
*
* Sets new value for look-and-feel object for the panel
*
* @param ui new look-and-feel renderer
*/
public void setUI(final PanelUI ui) {
super.setUI(ui);
}
项目:cn1
文件:JPanel.java
/**
*
* Gets the value of the look-and-feel object of the panel
*
* @return the <code>PanelUI</code> - components look-and-feel object
*/
public PanelUI getUI() {
return (PanelUI)ui;
}
项目:JamVM-PH
文件:JPanel.java
/**
* Sets the UI delegate for the <code>JPanel</code> component.
*
* @param ui the UI delegate.
*
* @since 1.4
* @see #getUI()
*/
public void setUI(PanelUI ui)
{
super.setUI(ui);
}
项目:JamVM-PH
文件:JPanel.java
/**
* Returns the UI delegate for the <code>JPanel</code> component.
*
* @return The UI delegate.
*
* @since 1.4
* @see #setUI(PanelUI)
*/
public PanelUI getUI()
{
return (PanelUI) ui;
}
项目:classpath
文件:JPanel.java
/**
* Sets the UI delegate for the <code>JPanel</code> component.
*
* @param ui the UI delegate.
*
* @since 1.4
* @see #getUI()
*/
public void setUI(PanelUI ui)
{
super.setUI(ui);
}
项目:classpath
文件:JPanel.java
/**
* Returns the UI delegate for the <code>JPanel</code> component.
*
* @return The UI delegate.
*
* @since 1.4
* @see #setUI(PanelUI)
*/
public PanelUI getUI()
{
return (PanelUI) ui;
}