本文整理了Java中javax.swing.JTabbedPane.setBackground()
方法的一些代码示例,展示了JTabbedPane.setBackground()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTabbedPane.setBackground()
方法的具体详情如下:
包路径:javax.swing.JTabbedPane
类名称:JTabbedPane
方法名:setBackground
暂无
代码示例来源:origin: marytts/marytts
jTabbedPane_Options.setBackground(javax.swing.UIManager.getDefaults().getColor("TabbedPane.highlight"));
jPanel_AudioOptions.setBackground(javax.swing.UIManager.getDefaults().getColor("TabbedPane.highlight"));
jLabel_AudioMixer.setText("Audio source:");
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction
@Override
public void setBackground(Color aValue) {
super.setBackground(aValue);
}
代码示例来源:origin: com.github.arnabk/pgslookandfeel
private void updateBackgroundOpacity() {
if (isSubTab() || isButtonStyle()) {
tabPane.setOpaque(true);
if (isSubTab()) {
tabPane.setBackground(UIManager.getColor("TabbedPane.background"));
} else if (isButtonStyle()) {
tabPane.setBackground(UIManager.getColor("TabbedPane.buttonStyle.background"));
}
} else {
tabPane.setOpaque(false);
}
}
代码示例来源:origin: atarw/material-ui-swing
@Override
public void installUI (JComponent c) {
super.installUI (c);
JTabbedPane tabbedPane = (JTabbedPane) c;
tabbedPane.setOpaque (false);
tabbedPane.setFont (UIManager.getFont ("TabbedPane.font"));
tabbedPane.setBackground (UIManager.getColor ("TabbedPane.background"));
tabbedPane.setForeground (UIManager.getColor ("TabbedPane.foreground"));
tabbedPane.setBorder (UIManager.getBorder ("TabbedPane.border"));
darkShadow = UIManager.getColor ("TabbedPane.darkShadow");
shadow = UIManager.getColor ("TabbedPane.shadow");
lightHighlight = UIManager.getColor ("TabbedPane.highlight");
}
代码示例来源:origin: nl.cloudfarming.client/task-field
taskExportButton1 = new nl.cloudfarming.client.task.field.TaskExportButton();
taskContentPanel.setBackground(java.awt.Color.white);
taskContentPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(FieldTaskOverviewPanel.class, "FieldTaskOverviewPanel.taskContentPanel.border.title"))); // NOI18N
代码示例来源:origin: UNIVALI-LITE/Portugol-Studio
painelAlinhamento.setLayout(new java.awt.BorderLayout());
painelTabulado.setBackground(new java.awt.Color(228, 241, 254));
painelTabulado.setTabLayoutPolicy(javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT);
painelTabulado.setFocusable(false);
代码示例来源:origin: org.appdapter/org.appdapter.lib.gui
myBoxPanelTabPane.setBackground(Color.LIGHT_GRAY);
if (myBoxPanelTabPane instanceof JideTabbedPane) {
JideTabbedPane jide = (JideTabbedPane) myBoxPanelTabPane;
代码示例来源:origin: locationtech/jts
tabFunctions.setBackground(jTabbedPane1.getBackground());
tabFunctions.add(spatialFunctionPanel, "Geometry Functions");
tabFunctions.add(scalarFunctionPanel, "Scalar Functions");
代码示例来源:origin: ATLauncher/ATLauncher
tabbedPane.setBackground(App.THEME.getBaseColor());
this.tabbedPane.addTab(tab.getTitle(), (JPanel) tab);
tabbedPane.setBackground(App.THEME.getTabBackgroundColor());
tabbedPane.setOpaque(true);
代码示例来源:origin: sc.fiji/TrakEM2_
tabs.setBackground(Color.white);
tabs.setMinimumSize(new Dimension(500, 400));
tabs.addMouseListener(new TabListener());
代码示例来源:origin: pvto/konte-art
tabs.setBackground(new java.awt.Color(187, 203, 209));
代码示例来源:origin: org.cytoscape/table-import-impl
.getResource("/images/icon100_trans.png"));
tableTabbedPane.setBackground(Color.white);
tableTabbedPane
.addChangeListener(new javax.swing.event.ChangeListener() {
代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client
tabs.setBackground(ViewUtil.getLightGrayBackgroundColor());
代码示例来源:origin: ATLauncher/ATLauncher
tabbedPane.setBackground(App.THEME.getBaseColor());
tabbedPane.setBackground(App.THEME.getTabBackgroundColor());
tabbedPane.setOpaque(true);
代码示例来源:origin: org.appdapter/org.appdapter.lib.gui
public void init(TreeModel tm, BoxContext bctx0, NamedObjectCollection ctx, NamedObjectCollection clipboard) {
Utility.browserPanel = this;
myTreeModel = tm;
initComponents();
JTree tree = myTree;
Utility.theBoxPanelDisplayContext = this.myBoxPanelSwitchableViewImpl = new ObjectTabsForTabbedView(myBoxPanelTabPane, true, null);
setTabbedPaneOptions();
Utility.controlApp = app = new DisplayContextUIImpl(myBoxPanelSwitchableViewImpl, this, ctx);
Utility.clipBoardUtil = new CollectionEditorUtil(clipboard.getName(), app, clipboard);
myBoxPanelTabPane.add("Clipboard", Utility.clipBoardUtil.getGUIPanel());
myBoxPanelTabPane.setBackground(Color.LIGHT_GRAY);
//UIManager.put("nimbusBase", new ColorUIResource(128, 128, 128));
myBoxContext = bctx0;
hookTree();
this.addToTreeListener = new AddToTreeListener(myTree, ctx, bctx0, (MutableBox) bctx0.getRootBox(), true);
//addClipboard(clipboard);
Utility.setSingletonValue(getClass(), this);
invalidate();
}
代码示例来源:origin: UNIVALI-LITE/Portugol-Studio
tabPane.setBackground ( backgroundColor );
PainterSupport.installPainter ( tabPane, this.painter );
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-kenai-ui
chats.setBackground(UIManager.getColor("NbExplorerView.background")); //NOI18N
chats.setOpaque(true);
代码示例来源:origin: sc.fiji/TrakEM2_
this.tabs.setBackground(Color.white);
this.tabs.addChangeListener(tabs_listener);
代码示例来源:origin: org.biojava.thirdparty/forester
_tabbed_pane = new JTabbedPane( SwingConstants.TOP );
if ( !getConfiguration().isUseNativeUI() ) {
_tabbed_pane.setBackground( getConfiguration().getGuiBackgroundColor() );
_tabbed_pane.setForeground( getConfiguration().getGuiBackgroundColor() );
内容来源于网络,如有侵权,请联系作者删除!