當前位置: 首頁>>代碼示例>>Java>>正文


Java PanelUI類代碼示例

本文整理匯總了Java中javax.swing.plaf.PanelUI的典型用法代碼示例。如果您正苦於以下問題:Java PanelUI類的具體用法?Java PanelUI怎麽用?Java PanelUI使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


PanelUI類屬於javax.swing.plaf包,在下文中一共展示了PanelUI類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: TransitionPanel

import javax.swing.plaf.PanelUI; //導入依賴的package包/類
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);
			}
		}
	});
}
 
開發者ID:mickleness,項目名稱:pumpernickel,代碼行數:17,代碼來源:TransitionPanel.java

示例2: UnitCellRenderer

import javax.swing.plaf.PanelUI; //導入依賴的package包/類
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));
}
 
開發者ID:FreeCol,項目名稱:freecol,代碼行數:10,代碼來源:EndTurnDialog.java

示例3: StopRenderer

import javax.swing.plaf.PanelUI; //導入依賴的package包/類
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));
}
 
開發者ID:FreeCol,項目名稱:freecol,代碼行數:9,代碼來源:TradeRouteInputPanel.java

示例4: DefaultBuildQueueCellRenderer

import javax.swing.plaf.PanelUI; //導入依賴的package包/類
public DefaultBuildQueueCellRenderer() {
    itemPanel.setOpaque(false);
    itemPanel.setLayout(new MigLayout());
    selectedPanel.setOpaque(false);
    selectedPanel.setLayout(new MigLayout());
    selectedPanel.setUI((PanelUI)FreeColSelectedPanelUI.createUI(selectedPanel));
}
 
開發者ID:FreeCol,項目名稱:freecol,代碼行數:8,代碼來源:BuildQueuePanel.java

示例5: testCreateUI

import javax.swing.plaf.PanelUI; //導入依賴的package包/類
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);
}
 
開發者ID:shannah,項目名稱:cn1,代碼行數:9,代碼來源:BasicPanelUITest.java

示例6: StopRenderer

import javax.swing.plaf.PanelUI; //導入依賴的package包/類
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));
}
 
開發者ID:vishal-mittal,項目名稱:SOEN6471-FreeCol,代碼行數:8,代碼來源:TradeRouteInputDialog.java

示例7: UnitCellRenderer

import javax.swing.plaf.PanelUI; //導入依賴的package包/類
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));
}
 
開發者ID:vishal-mittal,項目名稱:SOEN6471-FreeCol,代碼行數:9,代碼來源:EndTurnDialog.java

示例8: DefaultBuildQueueCellRenderer

import javax.swing.plaf.PanelUI; //導入依賴的package包/類
public DefaultBuildQueueCellRenderer() {
    itemPanel.setOpaque(false);
    itemPanel.setLayout(new MigLayout());
    selectedPanel.setOpaque(false);
    selectedPanel.setLayout(new MigLayout());
    selectedPanel.setUI((PanelUI) FreeColSelectedPanelUI.createUI(selectedPanel));
}
 
開發者ID:vishal-mittal,項目名稱:SOEN6471-FreeCol,代碼行數:8,代碼來源:BuildQueuePanel.java

示例9: setUI

import javax.swing.plaf.PanelUI; //導入依賴的package包/類
@Override
public void setUI(PanelUI ui) {
    preferredSize = null;
    super.setUI(ui);
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:6,代碼來源:ScrollableMessagesList.java

示例10: getUI

import javax.swing.plaf.PanelUI; //導入依賴的package包/類
public PanelUI getUI() {
	return null;
}
 
開發者ID:javalovercn,項目名稱:j2se_for_android,代碼行數:4,代碼來源:JPanel.java

示例11: setUI

import javax.swing.plaf.PanelUI; //導入依賴的package包/類
public void setUI(PanelUI ui) {
	super.setUI(ui);
}
 
開發者ID:javalovercn,項目名稱:j2se_for_android,代碼行數:4,代碼來源:JPanel.java

示例12: updateUI

import javax.swing.plaf.PanelUI; //導入依賴的package包/類
/**
 * 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));
}
 
開發者ID:vilie,項目名稱:javify,代碼行數:9,代碼來源:JPanel.java

示例13: setUI

import javax.swing.plaf.PanelUI; //導入依賴的package包/類
@Override
public void setUI(PanelUI ui) {
  clearCaches();

  super.setUI(ui);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:7,代碼來源:ToolWindowHeader.java

示例14: setUI

import javax.swing.plaf.PanelUI; //導入依賴的package包/類
@Override
public void setUI(PanelUI ui) {
  getNavBarUI().clearItems();
  super.setUI(ui);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:6,代碼來源:NavBarPanel.java

示例15: setUI

import javax.swing.plaf.PanelUI; //導入依賴的package包/類
@Override
public void setUI(PanelUI ui) {
  super.setUI(ui);
  updateUiParameters();
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:6,代碼來源:ThemeEditorComponent.java


注:本文中的javax.swing.plaf.PanelUI類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。