本文整理了Java中javax.swing.JToolBar.setOpaque()
方法的一些代码示例,展示了JToolBar.setOpaque()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JToolBar.setOpaque()
方法的具体详情如下:
包路径:javax.swing.JToolBar
类名称:JToolBar
方法名:setOpaque
暂无
代码示例来源:origin: magefree/mage
private void makeTransparent() {
this.addComponentListener(this);
setOpaque(false);
cardGrid.setOpaque(false);
cardSelectorScrollPane.setOpaque(false);
cardSelectorScrollPane.getViewport().setOpaque(false);
cbSortBy.setModel(new DefaultComboBoxModel<>(SortBy.values()));
cbSortBy.setSelectedItem(sortSetting.getSortBy());
jTextFieldSearch.addActionListener(searchAction);
// make the components more readable
tbColor.setBackground(new Color(250, 250, 250, 150));
tbColor.setOpaque(true); // false = transparent
tbTypes.setBackground(new Color(250, 250, 250, 150));
tbTypes.setOpaque(true); // false = transparent
cardSelectorBottomPanel.setBackground(new Color(250, 250, 250, 150));
cardSelectorBottomPanel.setOpaque(true); // false = transparent
}
代码示例来源:origin: magefree/mage
filterBar1.setForeground(new java.awt.Color(102, 102, 255));
filterBar1.setFocusable(false);
filterBar1.setOpaque(false);
filterBar2.setOpaque(false);
代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets
@Override
public void processDataBinding() {
$JToolBar0.setOpaque(isOpaque());
}
});
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction
@Override
public void setOpaque(boolean aValue) {
super.setOpaque(aValue);
}
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-font
@Override
public void processDataBinding() {
$JToolBar0.setOpaque(isOpaque());
}
});
代码示例来源:origin: it.tidalwave.netbeans/it-tidalwave-netbeans-swing
@Nonnull
public static JToolBar createToolBar (final @Nonnull String name, final @Nonnull Lookup lookup)
{
final JToolBar toolBar = new JToolBar(name);
toolBar.setOpaque(false);
toolBar.setBorderPainted(false);
toolBar.setFloatable(false);
ToolBarFromLayer.connect(toolBar, "LocalToolbar/" + name, lookup, false);
return toolBar;
}
}
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-number
protected void createLeftToolbar() {
$objectMap.put("leftToolbar", leftToolbar = new JToolBar());
leftToolbar.setName("leftToolbar");
leftToolbar.setBorderPainted(false);
leftToolbar.setOpaque(false);
leftToolbar.setFloatable(false);
}
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-number
protected void createRightToolbar() {
$objectMap.put("rightToolbar", rightToolbar = new JToolBar());
rightToolbar.setName("rightToolbar");
rightToolbar.setBorderPainted(false);
rightToolbar.setOpaque(false);
rightToolbar.setFloatable(false);
}
代码示例来源:origin: org.cytoscape/swing-application-impl
private JToolBar setupStatusPanel(TaskStatusPanelFactory taskStatusPanelFactory) {
final JPanel statusPanel = new JPanel(new GridBagLayout());
statusPanel.setOpaque(false);
final GridBagConstraints c = new GridBagConstraints();
final JToolBar statusToolBar = new JToolBar();
statusToolBar.setOpaque(false);
final JPanel taskStatusPanel = taskStatusPanelFactory.createTaskStatusPanel();
c.gridx = 0; c.gridy = 0;
c.gridwidth = 1; c.gridheight = 1;
c.weightx = 1.0; c.weighty = 0.0;
c.fill = GridBagConstraints.HORIZONTAL;
c.anchor = GridBagConstraints.WEST;
statusPanel.add(taskStatusPanel, c);
c.gridx++;
c.weightx = 0.0; c.weighty = 0.0;
c.fill = GridBagConstraints.NONE;
statusPanel.add(statusToolBar, c);
c.gridx++;
c.anchor = GridBagConstraints.EAST;
statusPanel.add(new MemStatusPanel(), c);
main_panel.add(statusPanel, BorderLayout.SOUTH);
return statusToolBar;
}
代码示例来源:origin: datacleaner/DataCleaner
public static JToolBar createToolBar() {
final JToolBar toolBar = new JToolBar(JToolBar.HORIZONTAL);
toolBar.setOpaque(false);
toolBar.setBorder(null);
toolBar.setRollover(true);
toolBar.setFloatable(false);
toolBar.setAlignmentY(JToolBar.LEFT_ALIGNMENT);
return toolBar;
}
代码示例来源:origin: UNIVALI-LITE/Portugol-Studio
private void configurarCursorBotoes()
{
barraFerramentas.setOpaque(false);
for (Component componente : barraFerramentas.getComponents()) {
if (componente instanceof JButton) {
JButton botao = (JButton) componente;
botao.setOpaque(false);
botao.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
}
}
}
代码示例来源:origin: com.fifesoft.rtext/fife.common
CollapsedPanel(int dockableWindowLocation) {
setLayout(new BorderLayout());
int orientation = (dockableWindowLocation==DockableWindow.TOP ||
dockableWindowLocation==DockableWindow.BOTTOM) ?
JToolBar.HORIZONTAL : JToolBar.VERTICAL;
toolbar = new JToolBar(orientation);
toolbar.setOpaque(false);
toolbar.setFloatable(false);
toolbar.setBorder(null);
//toolbar.add(new JButton(new RestoreAction()));
refreshDockableWindowButtons();
boolean isHorizontal = orientation==JToolBar.HORIZONTAL;
add(toolbar, isHorizontal ?
BorderLayout.LINE_END : BorderLayout.NORTH);
setBorder(isHorizontal ? BorderFactory.createEmptyBorder(0, 0, 0, 5) :
BorderFactory.createEmptyBorder(5, 0, 0, 0));
}
代码示例来源:origin: protegeproject/protege
public ViewBar(String bannerText, Color bannerColor) {
setLayout(new BorderLayout(2, 2));
viewBanner = new ViewBanner(bannerText, bannerColor);
add(viewBanner, BorderLayout.NORTH);
JPanel southPanel = new JPanel(new BorderLayout(7, 7));
toolBar = new JToolBar();
southPanel.add(toolBar, BorderLayout.WEST);
add(southPanel, BorderLayout.SOUTH);
toolBar.setOpaque(false);
toolBar.setFloatable(false);
toolBar.setBorderPainted(false);
toolBar.setBorder(null);
viewModeComboBox = new JComboBox<>();
viewModeComboBox.addActionListener(e -> fireViewModeChanged());
viewModeComboBox.setVisible(false);
southPanel.add(viewModeComboBox, BorderLayout.EAST);
}
代码示例来源:origin: edu.stanford.protege/org.protege.editor.core.application
public ViewBar(String bannerText, Color bannerColor) {
setLayout(new BorderLayout(2, 2));
viewBanner = new ViewBanner(bannerText, bannerColor);
add(viewBanner, BorderLayout.NORTH);
toolBar = new JToolBar();
add(toolBar, BorderLayout.SOUTH);
toolBar.setOpaque(false);
toolBar.setFloatable(false);
toolBar.setBorderPainted(false);
toolBar.setBorder(null);
}
代码示例来源:origin: org.protege/protege-editor-core-application
public ViewBar(String bannerText, Color bannerColor) {
setLayout(new BorderLayout(2, 2));
viewBanner = new ViewBanner(bannerText, bannerColor);
add(viewBanner, BorderLayout.NORTH);
toolBar = new JToolBar();
add(toolBar, BorderLayout.SOUTH);
toolBar.setOpaque(false);
toolBar.setFloatable(false);
toolBar.setBorderPainted(false);
toolBar.setBorder(null);
}
代码示例来源:origin: fr.avianey.apache-xmlgraphics/batik
/**
* Creates a new JConfigurationPanel.
*/
public JConfigurationPanel() {
toolbar = new JToolBar();
toolbar.setFloatable(false);
toolbar.setLayout(new FlowLayout(FlowLayout.LEADING, 0, 0));
toolbar.add(new JToolBar.Separator(new Dimension(8, 8)));
if (Platform.isOSX || isMetalSteel()) {
toolbar.setBackground(new Color(0xf8, 0xf8, 0xf8));
}
toolbar.setOpaque(true);
panel = new JPanel();
layout = Platform.isOSX ? new ResizingCardLayout() : new CardLayout();
group = new ButtonGroup();
setLayout(new BorderLayout());
panel.setLayout(layout);
add(toolbar, BorderLayout.NORTH);
add(panel);
}
代码示例来源:origin: apache/batik
/**
* Creates a new JConfigurationPanel.
*/
public JConfigurationPanel() {
toolbar = new JToolBar();
toolbar.setFloatable(false);
toolbar.setLayout(new FlowLayout(FlowLayout.LEADING, 0, 0));
toolbar.add(new JToolBar.Separator(new Dimension(8, 8)));
if (Platform.isOSX || isMetalSteel()) {
toolbar.setBackground(new Color(0xf8, 0xf8, 0xf8));
}
toolbar.setOpaque(true);
panel = new JPanel();
layout = Platform.isOSX ? new ResizingCardLayout() : new CardLayout();
group = new ButtonGroup();
setLayout(new BorderLayout());
panel.setLayout(layout);
add(toolbar, BorderLayout.NORTH);
add(panel);
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-inspect
private void initPanel() {
setBorder(new EmptyBorder(1, 2, 1, 2));
// configure toolbar
toolbar = new NoBorderToolBar(JToolBar.HORIZONTAL);
toolbar.setFloatable(false);
toolbar.setRollover(true);
toolbar.setBorderPainted(false);
toolbar.setBorder(BorderFactory.createEmptyBorder());
toolbar.setOpaque(false);
toolbar.setFocusable(false);
add(toolbar);
}
代码示例来源:origin: com.fifesoft.rtext/fife.common
TitlePanel(String title) {
super(new BorderLayout());
setBorder(BorderFactory.createEmptyBorder(0,5,0,5));
refreshGradientColors();
label = new JLabel(title);
refreshLabelForeground();
add(label);
minimizeAction = new MinimizeAction();
refreshMinimizeIcon();
minimizeButton = new JButton(minimizeAction);
minimizeButton.setOpaque(false);
minimizeButton.setContentAreaFilled(false);
tb = new JToolBar();
tb.setRollover(true);
tb.setFloatable(false);
tb.setOpaque(false);
tb.setBorder(null);
tb.add(minimizeButton);
WebLookAndFeelUtils.fixToolbar(tb, true);
add(tb, BorderLayout.LINE_END);
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime-swing-widget
private void $initialize() {
if (allComponentsCreated || !contextInitialized) {
return;
}
$objectMap.put("$JPanel0", this);
createMyTable();
createPopupVisible();
createPopup();
createPopupLabel();
create$ScriptInitializer1();
$JToolBar2 = new javax.swing.JToolBar();
$objectMap.put("$JToolBar2", $JToolBar2);
$JToolBar2.setName("$JToolBar2");
$JToolBar2.setBorderPainted(false);
$JToolBar2.setFloatable(false);
$JToolBar2.setOpaque(false);
createButton();
$JPanel0.setName("$JPanel0");
$JPanel0.setLayout((new BorderLayout()));
$JPanel0.addFocusListener((java.awt.event.FocusListener) jaxx.runtime.Util.getEventListener(java.awt.event.FocusListener.class, "focusGained", $JPanel0, "doFocusGained__on__$JPanel0"));
$JPanel0.addFocusListener((java.awt.event.FocusListener) jaxx.runtime.Util.getEventListener(java.awt.event.FocusListener.class, "focusLost", $JPanel0, "doFocusLost__on__$JPanel0"));
addPropertyChangeListener(TABLE_PROPERTY,this);addPropertyChangeListener(POPUP_VISIBLE_PROPERTY,this);
$completeSetup();
}
内容来源于网络,如有侵权,请联系作者删除!