Package com.intellij.ui

Examples of com.intellij.ui.SideBorder


      myBrowsersLabel
    );
    panel.setBorder(BorderFactory.createEmptyBorder(3, 7, 5, 12));
    JPanel wrap = new JPanel(new BorderLayout(0, 0));
    wrap.add(panel, BorderLayout.CENTER);
    wrap.setBorder(new SideBorder(UIUtil.getBorderColor(), SideBorder.BOTTOM));
    myRoot = wrap;
  }
View Full Code Here


            final JScrollPane scrollPane = (JScrollPane)component;
            Integer keepBorderSides = (Integer)scrollPane.getClientProperty(KEEP_BORDER_SIDES);
            if (keepBorderSides != null) {
              if (scrollPane.getBorder() instanceof LineBorder) {
                Color color = ((LineBorder)scrollPane.getBorder()).getLineColor();
                scrollPane.setBorder(new SideBorder(color, keepBorderSides.intValue()));
              }
              else {
                scrollPane.setBorder(new SideBorder(getBoundsColor(), keepBorderSides.intValue()));
              }
            }
            else {
              scrollPane.setBorder(new SideBorder(getBoundsColor(), SideBorder.NONE));
            }
          }
        }
        return false;
      }
View Full Code Here

        setupEditorDefault(myConsoleEditor);
        setupEditorDefault(myHistoryViewer);
        myConsoleEditor.addEditorMouseListener(EditorActionUtil.createEditorPopupHandler(IdeActions.GROUP_CONSOLE_EDITOR_POPUP));
        //noinspection PointlessBooleanExpression,ConstantConditions
        if (SEPARATOR_THICKNESS > 0 && myShowSeparatorLine) {
            myHistoryViewer.getComponent().setBorder(new SideBorder(Color.LIGHT_GRAY, SideBorder.BOTTOM));
        }
        myHistoryViewer.getComponent().setMinimumSize(new Dimension(0, 0));
        myHistoryViewer.getComponent().setPreferredSize(new Dimension(0, 0));
        myConsoleEditor.getSettings().setAdditionalLinesCount(2);
        myConsoleEditor.setHighlighter(EditorHighlighterFactory.getInstance().createEditorHighlighter(myProject, myVirtualFile));
View Full Code Here

TOP

Related Classes of com.intellij.ui.SideBorder

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.