本文整理了Java中javax.swing.JTabbedPane.setOpaque()
方法的一些代码示例,展示了JTabbedPane.setOpaque()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTabbedPane.setOpaque()
方法的具体详情如下:
包路径:javax.swing.JTabbedPane
类名称:JTabbedPane
方法名:setOpaque
暂无
代码示例来源:origin: org.netbeans.api/org-openide-dialogs
tabbedPane.addTab(NbBundle.getMessage(WizardDescriptor.class, "CTL_HelpName"), htmlBrowser);
tabbedPane.setEnabledAt(1, false);
tabbedPane.setOpaque(false);
代码示例来源:origin: stackoverflow.com
JTabbedPane outer = new JTabbedPane();
outer.setOpaque(false);
// ...
// creating inner pane "Modificar"
JTabbedPane modificar = new JTabbedPane();
modificar.setOpaque(false);
outer.addTab("Modificar", modificar);
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction
@Override
public void setOpaque(boolean aValue) {
super.setOpaque(aValue);
}
代码示例来源:origin: stackoverflow.com
private void initComponents() {
JTabbedPane outer = new JTabbedPane();
outer.setOpaque(false);
// ...
JPanel innerPane = new JPanel();
innerPane.setOpaque(false);
innerPane.setLayout(new FlowLayout());
ButtonGroup group = new ButtonGroup();
addButton(innerPane, group, new JToggleButton("alta"));
addButton(innerPane, group, new JToggleButton("Modificar")).setSelected(true);
addButton(innerPane, group, new JToggleButton("compraTarifa"));
outer.addTab("Socios", innerPane);
// ...
}
private static <T extends AbstractButton> T addButton(Component parent, ButtonGroup group, T btn) {
group.add(btn);
parent.add(btn);
return btn;
}
代码示例来源: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: net.sf.squirrel-sql.thirdpary-non-maven/openide
htmlBrowser);
tabbedPane.setEnabledAt(1, false);
tabbedPane.setOpaque(false);
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
htmlBrowser);
tabbedPane.setEnabledAt(1, false);
tabbedPane.setOpaque(false);
代码示例来源:origin: chatty/chatty
public Tabs() {
setLayout(new BorderLayout());
tabs.setOpaque(false);
tabs.addMouseWheelListener(new MouseWheelListener() {
代码示例来源:origin: ontop/ontop
tabMainPanel.setOpaque(true);
tabMainPanel.setPreferredSize(new java.awt.Dimension(500, 800));
代码示例来源:origin: ATLauncher/ATLauncher
tabbedPane.setOpaque(true);
代码示例来源:origin: com.tourgeek.thin.app/com.tourgeek.thin.app.booking
tabbedPane.setOpaque(false);
tabbedPane.setName(TABBED_PANE);
tabbedPane.setAlignmentX(RIGHT_ALIGNMENT);
代码示例来源:origin: abc9070410/JComicDownloader
private void setTabbedPane(JPanel textPanel) {
tabbedPane.setOpaque(!SetUp.getUsingBackgroundPicOfMainFrame());
代码示例来源:origin: org.netbeans.modules/org-netbeans-lib-profiler-ui
tp.setOpaque(false);
if (UIUtils.isAquaLookAndFeel()) {
tp.setBorder(BorderFactory.createEmptyBorder(-13, -11, 0, -10));
代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz
tp = new JTabbedPane(SwingConstants.BOTTOM);
tp.setOpaque(false);
tp.setBorder(BorderFactory.createEmptyBorder(0, 0, 10, 0));
代码示例来源:origin: abc9070410/JComicDownloader
if ( SetUp.getUsingBackgroundPicOfOptionFrame() )
tabbedPane.setOpaque( false );
tabbedPane.setForeground( SetUp.getOptionFrameOtherDefaultColor() );
代码示例来源:origin: ATLauncher/ATLauncher
tabbedPane.setOpaque(true);
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-kenai-ui
chats.setOpaque(true);
内容来源于网络,如有侵权,请联系作者删除!