Package com.intellij.ui.components.panels

Examples of com.intellij.ui.components.panels.NonOpaquePanel


        toolbarComponent.setBorder(null);
        toolbarComponent.setOpaque(false);

        myLeadPanel.add(toolbarComponent);

        JPanel tailPanel = new NonOpaquePanel(new BorderLayout(5, 0));
        JPanel tailContainer = new NonOpaquePanel(new BorderLayout(5, 0));
        tailContainer.add(tailPanel, BorderLayout.EAST);
        add(tailContainer, BorderLayout.CENTER);

        matchInfoLabel = new JLabel();
        setSmallerFontAndOpaque(matchInfoLabel);


        JLabel closeLabel = new JLabel(" ", IconLoader.getIcon("/actions/cross.png"), SwingConstants.RIGHT);
        closeLabel.addMouseListener(new MouseAdapter() {
            @Override
            public void mousePressed(final MouseEvent e) {
                close();
            }
        });

        closeLabel.setToolTipText("Close search bar (Escape)");

        JPanel labelsPanel = new NonOpaquePanel(new FlowLayout());

        labelsPanel.add(matchInfoLabel);
        tailPanel.add(labelsPanel, BorderLayout.CENTER);
        tailPanel.add(closeLabel, BorderLayout.EAST);

        CompatibilityUtil.setSmallerFont(searchField);
        searchField.registerKeyboardAction(new ActionListener() {
View Full Code Here


        }
        myListeningSelection = b;
    }

    private static JPanel createLeadPane() {
        return new NonOpaquePanel(new FlowLayout(FlowLayout.LEFT, 5, 0));
    }
View Full Code Here

          }
        });
      }
    });

    myPanel = new NonOpaquePanel(new BorderLayout());
    UIUtil.runWhenShown(myPanel, new Runnable() {
      @Override
      public void run() {
        showAllTabsOfUsersWithMessages();
      }
View Full Code Here

    super(modificationTracker);
  }

  protected JComponent getRendererComponent(Graph2DView graph2DView, NodeRealizer nodeRealizer, Object object, boolean sel) {
    final JPanel innerPanel = new JPanel(new BorderLayout());
    final NonOpaquePanel outerPanel = new NonOpaquePanel(innerPanel);

    outerPanel.setBorder(sel ? new LineBorder(getSelectionColor(), getSelectionBorderWidth(), true) : new ShadowedLineBorder());
    innerPanel.setBorder(sel ? new LineBorder(Color.ORANGE) : new LineBorder(Color.LIGHT_GRAY));

    tuneNode(nodeRealizer, innerPanel);

    return outerPanel;
View Full Code Here

        toolbar.setLayout(new BorderLayout());

        rowLimitField = new JTextField("");
        rowLimitField.setColumns(5);
        rowLimitField.setDocument(new NumberDocument());
        rowLimitPanel = new NonOpaquePanel();
        rowLimitPanel.add(new JLabel("Row limit:"), BorderLayout.WEST);
        rowLimitPanel.add(rowLimitField, BorderLayout.CENTER);
        rowLimitPanel.add(Box.createHorizontalStrut(5), BorderLayout.EAST);

        toolbar.add(rowLimitPanel, BorderLayout.WEST);
View Full Code Here

        if (ex instanceof JSONParseException) {
            message = StringUtils.removeStart(ex.getMessage(), "\n");
        } else {
            message = String.format("%s: %s", ex.getClass().getSimpleName(), ex.getMessage());
        }
        NonOpaquePanel nonOpaquePanel = new NonOpaquePanel();
        JTextPane textPane = Messages.configureMessagePaneUi(new JTextPane(), message);
        textPane.setFont(COURIER_FONT);
        textPane.setBackground(MessageType.ERROR.getPopupBackground());
        nonOpaquePanel.add(textPane, BorderLayout.CENTER);
        nonOpaquePanel.add(new JLabel(MessageType.ERROR.getDefaultIcon()), BorderLayout.WEST);

        JBPopupFactory.getInstance().createBalloonBuilder(nonOpaquePanel)
                .setFillColor(MessageType.ERROR.getPopupBackground())
                .createBalloon()
                .show(new RelativePoint(this.editor.getComponent(), new Point(0, 0)), Balloon.Position.above);
View Full Code Here

            break;
        }
      }
    });

    myComponent = new NonOpaquePanel() {
      public void invalidate() {
        super.invalidate();
        Dimension size = getSize();
        size.width = myTextField.getPreferredSize().width + myIconLabel.getPreferredSize().width + myIconTextGap;
        myComponent.setSize(size);
View Full Code Here

      }
    };

    myComponent.setOpaque(false);

    myBanner = new NonOpaquePanel(new BorderLayout());
    myBannerLabel = new Banner();

    myBanner.add(myBannerLabel, BorderLayout.CENTER);

    myComponent.add(myBanner, BorderLayout.NORTH);
View Full Code Here

    if (centerPanel != null) {
      contentPane.add(centerPanel, BorderLayout.CENTER);
    }
    JComponent southPanel = createSouthPanel();

    final NonOpaquePanel southWrapper = new NonOpaquePanel(new BorderLayout());
    southWrapper.add(myErrorText, BorderLayout.CENTER);

    if (southPanel != null) {
      southWrapper.add(southPanel, BorderLayout.SOUTH);
    }

    contentPane.add(southWrapper, BorderLayout.SOUTH);

    new MnemonicHelper().register(contentPane);
View Full Code Here

TOP

Related Classes of com.intellij.ui.components.panels.NonOpaquePanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.