本文整理匯總了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);
}
}
});
}
示例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));
}
示例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));
}
示例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));
}
示例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);
}
示例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));
}
示例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));
}
示例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));
}
示例9: setUI
import javax.swing.plaf.PanelUI; //導入依賴的package包/類
@Override
public void setUI(PanelUI ui) {
preferredSize = null;
super.setUI(ui);
}
示例10: getUI
import javax.swing.plaf.PanelUI; //導入依賴的package包/類
public PanelUI getUI() {
return null;
}
示例11: setUI
import javax.swing.plaf.PanelUI; //導入依賴的package包/類
public void setUI(PanelUI ui) {
super.setUI(ui);
}
示例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));
}
示例13: setUI
import javax.swing.plaf.PanelUI; //導入依賴的package包/類
@Override
public void setUI(PanelUI ui) {
clearCaches();
super.setUI(ui);
}
示例14: setUI
import javax.swing.plaf.PanelUI; //導入依賴的package包/類
@Override
public void setUI(PanelUI ui) {
getNavBarUI().clearItems();
super.setUI(ui);
}
示例15: setUI
import javax.swing.plaf.PanelUI; //導入依賴的package包/類
@Override
public void setUI(PanelUI ui) {
super.setUI(ui);
updateUiParameters();
}