• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java NonOpaquePanel类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.intellij.ui.components.panels.NonOpaquePanel的典型用法代码示例。如果您正苦于以下问题:Java NonOpaquePanel类的具体用法?Java NonOpaquePanel怎么用?Java NonOpaquePanel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



NonOpaquePanel类属于com.intellij.ui.components.panels包,在下文中一共展示了NonOpaquePanel类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createActionLink

import com.intellij.ui.components.panels.NonOpaquePanel; //导入依赖的package包/类
private JComponent createActionLink(final String text, final String groupId, Icon icon, boolean focusListOnLeft) {
  final Ref<ActionLink> ref = new Ref<ActionLink>(null);
  AnAction action = new AnAction() {
    @Override
    public void actionPerformed(@NotNull AnActionEvent e) {
      ActionGroup configureGroup = (ActionGroup)ActionManager.getInstance().getAction(groupId);
      final PopupFactoryImpl.ActionGroupPopup popup = (PopupFactoryImpl.ActionGroupPopup)JBPopupFactory.getInstance()
        .createActionGroupPopup(null, new IconsFreeActionGroup(configureGroup), e.getDataContext(), JBPopupFactory.ActionSelectionAid.SPEEDSEARCH, false,
                                ActionPlaces.WELCOME_SCREEN);
      popup.showUnderneathOfLabel(ref.get());
      UsageTrigger.trigger("welcome.screen." + groupId);
    }
  };
  ref.set(new ActionLink(text, icon, action));
  ref.get().setPaintUnderline(false);
  ref.get().setNormalColor(getLinkNormalColor());
  NonOpaquePanel panel = new NonOpaquePanel(new BorderLayout());
  panel.setBorder(JBUI.Borders.empty(4, 6, 4, 6));
  panel.add(ref.get());
  panel.add(createArrow(ref.get()), BorderLayout.EAST);
  installFocusable(panel, action, KeyEvent.VK_UP, KeyEvent.VK_DOWN, focusListOnLeft);
  return panel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:24,代码来源:FlatWelcomeFrame.java


示例2: layout

import com.intellij.ui.components.panels.NonOpaquePanel; //导入依赖的package包/类
@Override
protected void layout() {
  myRendererComponent.setOpaqueActive(false);

  mySeparator = new GroupSeparator();
  myRendererComponent.add(Registry.is("ide.new.settings.dialog") ? mySeparator : mySeparatorComponent, BorderLayout.NORTH);

  final NonOpaquePanel content = new NonOpaquePanel(new BorderLayout());
  myHandle = new JLabel("", SwingConstants.CENTER);
  if (!SystemInfo.isMac) {
    myHandle.setBorder(new EmptyBorder(0, 2, 0, 2));
  }
  myHandle.setOpaque(false);
  content.add(myHandle, BorderLayout.WEST);
  content.add(myComponent, BorderLayout.CENTER);
  myProjectIcon = new JLabel(" ", SwingConstants.LEFT);
  myProjectIcon.setOpaque(true);
  content.add(myProjectIcon, BorderLayout.EAST);
  myRendererComponent.add(content, BorderLayout.CENTER);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:21,代码来源:OptionsTree.java


示例3: Advertiser

import com.intellij.ui.components.panels.NonOpaquePanel; //导入依赖的package包/类
public Advertiser() {
  myNextLabel = new JLabel(">>");
  myNextLabel.setFont(adFont().deriveFont(
    ContainerUtil.<TextAttribute, Object>immutableMapBuilder().put(TextAttribute.UNDERLINE, TextAttribute.UNDERLINE_ON).build()));
  myNextLabel.setForeground(JBColor.blue);
  new ClickListener() {
    @Override
    public boolean onClick(@NotNull MouseEvent e, int clickCount) {
      myCurrentItem++;
      updateAdvertisements();
      return true;
    }
  }.installOn(myNextLabel);

  myNextLabel.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));

  GridBag gb = new GridBag();
  myComponent.add(myTextPanel, gb.next());
  myComponent.add(myNextLabel, gb.next());
  myComponent.add(new NonOpaquePanel(), gb.next().fillCellHorizontally().weightx(1));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:22,代码来源:Advertiser.java


示例4: SearchTextArea

import com.intellij.ui.components.panels.NonOpaquePanel; //导入依赖的package包/类
public SearchTextArea(boolean search) {
  myTextArea = new JTextArea();
  setBorder(JBUI.Borders.empty(6, 6, 6, 8));
  setLayout(new BorderLayout(JBUI.scale(4), 0));
  myTextArea.addPropertyChangeListener("background", this);
  myTextArea.addFocusListener(this);
  myTextArea.setBorder(null);
  myTextArea.setOpaque(false);
  JBScrollPane scrollPane = new JBScrollPane(myTextArea,
                                             ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
                                             ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
  scrollPane.getVerticalScrollBar().setBackground(UIUtil.TRANSPARENT_COLOR);
  scrollPane.getViewport().setBorder(null);
  scrollPane.getViewport().setOpaque(false);
  scrollPane.setBorder(JBUI.Borders.emptyRight(2));
  scrollPane.setOpaque(false);
  ShowHistoryAction historyAction = new ShowHistoryAction(search);
  ActionButton button =
    new ActionButton(historyAction, historyAction.getTemplatePresentation(), ActionPlaces.UNKNOWN, new Dimension(JBUI.scale(16), JBUI.scale(16)));
  button.setLook(new InplaceActionButtonLook());
  JPanel p = new NonOpaquePanel(new BorderLayout());
  p.add(button, BorderLayout.NORTH);
  add(p, BorderLayout.WEST);
  add(scrollPane, BorderLayout.CENTER);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:26,代码来源:SearchTextArea.java


示例5: layout

import com.intellij.ui.components.panels.NonOpaquePanel; //导入依赖的package包/类
@Override
protected void layout() {
  myRendererComponent.setOpaqueActive(false);

  myRendererComponent.add(mySeparatorComponent, BorderLayout.NORTH);

  final NonOpaquePanel content = new NonOpaquePanel(new BorderLayout());
  myHandle = new JLabel("", SwingConstants.CENTER);
  if (!SystemInfo.isMac) {
    myHandle.setBorder(new EmptyBorder(0, 2, 0, 2));
  }
  myHandle.setOpaque(false);
  content.add(myHandle, BorderLayout.WEST);
  content.add(myComponent, BorderLayout.CENTER);
  myRendererComponent.add(content, BorderLayout.CENTER);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:17,代码来源:OptionsTree.java


示例6: Advertiser

import com.intellij.ui.components.panels.NonOpaquePanel; //导入依赖的package包/类
public Advertiser() {
  myNextLabel = new JLabel(">>");
  myNextLabel.setFont(adFont().deriveFont(
    ContainerUtil.<TextAttribute, Object>immutableMapBuilder().put(TextAttribute.UNDERLINE, TextAttribute.UNDERLINE_ON).build()));
  myNextLabel.setForeground(JBColor.blue);
  new ClickListener() {
    @Override
    public boolean onClick(MouseEvent e, int clickCount) {
      myCurrentItem++;
      updateAdvertisements();
      return true;
    }
  }.installOn(myNextLabel);

  myNextLabel.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));

  GridBag gb = new GridBag();
  myComponent.add(myTextPanel, gb.next());
  myComponent.add(myNextLabel, gb.next());
  myComponent.add(new NonOpaquePanel(), gb.next().fillCellHorizontally().weightx(1));
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:22,代码来源:Advertiser.java


示例7: notifyOnErrorForOperator

import com.intellij.ui.components.panels.NonOpaquePanel; //导入依赖的package包/类
void notifyOnErrorForOperator(JComponent component, Exception ex) {
    String message;
    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(component, new Point(0, 0)), Balloon.Position.above);
}
 
开发者ID:dboissier,项目名称:nosql4idea,代码行数:20,代码来源:QueryPanel.java


示例8: buildQueryToolBar

import com.intellij.ui.components.panels.NonOpaquePanel; //导入依赖的package包/类
protected void buildQueryToolBar() {
    toolBarPanel.setLayout(new BorderLayout());

    filterField = new JBTextField("*");
    filterField.setColumns(10);

    NonOpaquePanel westPanel = new NonOpaquePanel();

    NonOpaquePanel filterPanel = new NonOpaquePanel();
    filterPanel.add(new JLabel("Filter: "), BorderLayout.WEST);
    filterPanel.add(filterField, BorderLayout.CENTER);
    filterPanel.add(Box.createHorizontalStrut(5), BorderLayout.EAST);
    westPanel.add(filterPanel, BorderLayout.WEST);

    toolBarPanel.add(westPanel, BorderLayout.WEST);

    addCommonsActions();
}
 
开发者ID:dboissier,项目名称:nosql4idea,代码行数:19,代码来源:RedisPanel.java


示例9: DetailsComponent

import com.intellij.ui.components.panels.NonOpaquePanel; //导入依赖的package包/类
public DetailsComponent(boolean detailsEnabled, boolean paintBorder) {
  myDetailsEnabled = detailsEnabled;
  myPaintBorder = paintBorder;
  myComponent = new JPanel(new BorderLayout());

  myComponent.setOpaque(false);
  myContentGutter.setOpaque(false);
  myContentGutter.setBorder(null);

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

  if (myDetailsEnabled) {
    myBanner.add(myBannerLabel, BorderLayout.CENTER);
  }

  myEmptyContentLabel = new JLabel("", SwingConstants.CENTER);

  revalidateDetailsMode();
}
 
开发者ID:consulo,项目名称:consulo,代码行数:21,代码来源:DetailsComponent.java


示例10: customizeLoadingLayer

import com.intellij.ui.components.panels.NonOpaquePanel; //导入依赖的package包/类
protected NonOpaquePanel customizeLoadingLayer(JPanel parent, JLabel text, AsyncProcessIcon icon) {
  parent.setLayout(new GridBagLayout());

  final Font font = text.getFont();
  text.setFont(font.deriveFont(font.getStyle(), font.getSize() + 8));
  //text.setForeground(Color.black);

  final int gap = new JLabel().getIconTextGap();
  final NonOpaquePanel result = new NonOpaquePanel(new FlowLayout(FlowLayout.CENTER, gap * 3, 0));
  result.add(icon);
  result.add(text);
  parent.add(result);

  return result;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:16,代码来源:LoadingDecorator.java


示例11: ActionPanel

import com.intellij.ui.components.panels.NonOpaquePanel; //导入依赖的package包/类
public ActionPanel(JBTabsImpl tabs, TabInfo tabInfo, Pass<MouseEvent> pass) {
  myTabs = tabs;
  ActionGroup group = tabInfo.getTabLabelActions() != null ? tabInfo.getTabLabelActions() : new DefaultActionGroup();
  AnAction[] children = group.getChildren(null);

  final NonOpaquePanel wrapper = new NonOpaquePanel(new BorderLayout());
  wrapper.add(Box.createHorizontalStrut(2), BorderLayout.WEST);
  NonOpaquePanel inner = new NonOpaquePanel();
  inner.setLayout(new BoxLayout(inner, BoxLayout.X_AXIS));
  wrapper.add(inner, BorderLayout.CENTER);
  for (AnAction each : children) {
    ActionButton eachButton = new ActionButton(myTabs, tabInfo, each, tabInfo.getTabActionPlace(), pass, tabs.getTabActionsMouseDeadzone()) {
      @Override
      protected void repaintComponent(final Component c) {
        TabLabel tabLabel = (TabLabel) SwingUtilities.getAncestorOfClass(TabLabel.class, c);
        if (tabLabel != null) {
          Point point = SwingUtilities.convertPoint(c, new Point(0, 0), tabLabel);
          Dimension d = c.getSize();
          tabLabel.repaint(point.x, point.y, d.width, d.height);
        } else {
          super.repaintComponent(c);
        }
      }
    };
    
    myButtons.add(eachButton);
    InplaceButton component = eachButton.getComponent();
    inner.add(component);
  }

  add(wrapper);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:33,代码来源:ActionPanel.java


示例12: EditorNotificationPanel

import com.intellij.ui.components.panels.NonOpaquePanel; //导入依赖的package包/类
public EditorNotificationPanel() {
  super(new BorderLayout());

  JPanel panel = new NonOpaquePanel(new BorderLayout());
  panel.add(BorderLayout.CENTER, myLabel);
  panel.add(BorderLayout.EAST, myLinksPanel);
  panel.setBorder(JBUI.Borders.empty(5, 0, 5, 5));
  panel.setMinimumSize(new Dimension(0, 0));

  add(BorderLayout.CENTER, panel);
  add(BorderLayout.EAST, myGearLabel);
  setBorder(JBUI.Borders.empty(0, 10));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:EditorNotificationPanel.java


示例13: createBody

import com.intellij.ui.components.panels.NonOpaquePanel; //导入依赖的package包/类
private JComponent createBody() {
  NonOpaquePanel panel = new NonOpaquePanel(new BorderLayout());
  panel.add(createLogo(), BorderLayout.NORTH);
  panel.add(createActionPanel(), BorderLayout.CENTER);
  panel.add(createSettingsAndDocs(), BorderLayout.SOUTH);
  return panel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:FlatWelcomeFrame.java


示例14: createSettingsAndDocs

import com.intellij.ui.components.panels.NonOpaquePanel; //导入依赖的package包/类
private JComponent createSettingsAndDocs() {
  JPanel panel = new NonOpaquePanel(new BorderLayout());
  NonOpaquePanel toolbar = new NonOpaquePanel();
  AnAction register = ActionManager.getInstance().getAction("Register");
  boolean registeredVisible = false;
  if (register != null) {
    AnActionEvent e =
      AnActionEvent.createFromAnAction(register, null, ActionPlaces.WELCOME_SCREEN, DataManager.getInstance().getDataContext(this));
    register.update(e);
    Presentation presentation = e.getPresentation();
    if (presentation.isEnabled()) {
      ActionLink registerLink = new ActionLink("Register", register);
      registerLink.setNormalColor(getLinkNormalColor());
      NonOpaquePanel button = new NonOpaquePanel(new BorderLayout());
      button.setBorder(JBUI.Borders.empty(4, 10));
      button.add(registerLink);
      installFocusable(button, register, KeyEvent.VK_UP, KeyEvent.VK_RIGHT, true);
      NonOpaquePanel wrap = new NonOpaquePanel();
      wrap.setBorder(JBUI.Borders.emptyLeft(10));
      wrap.add(button);
      panel.add(wrap, BorderLayout.WEST);
      registeredVisible = true;
    }
  }

  toolbar.setLayout(new BoxLayout(toolbar, BoxLayout.X_AXIS));
  toolbar.add(createActionLink("Configure", IdeActions.GROUP_WELCOME_SCREEN_CONFIGURE, AllIcons.General.GearPlain, !registeredVisible));
  toolbar.add(createActionLink("Get Help", IdeActions.GROUP_WELCOME_SCREEN_DOC, null, false));

  panel.add(toolbar, BorderLayout.EAST);


  panel.setBorder(JBUI.Borders.empty(0, 0, 8, 11));
  return panel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:36,代码来源:FlatWelcomeFrame.java


示例15: createLogo

import com.intellij.ui.components.panels.NonOpaquePanel; //导入依赖的package包/类
private JComponent createLogo() {
  NonOpaquePanel panel = new NonOpaquePanel(new BorderLayout());
  ApplicationInfoEx app = ApplicationInfoEx.getInstanceEx();
  JLabel logo = new JLabel(IconLoader.getIcon(app.getWelcomeScreenLogoUrl()));
  logo.setBorder(JBUI.Borders.empty(30,0,10,0));
  logo.setHorizontalAlignment(SwingConstants.CENTER);
  panel.add(logo, BorderLayout.NORTH);
  JLabel appName = new JLabel(ApplicationNamesInfo.getInstance().getFullProductName());
  Font font = getProductFont();
  appName.setForeground(JBColor.foreground());
  appName.setFont(font.deriveFont(JBUI.scale(36f)).deriveFont(Font.PLAIN));
  appName.setHorizontalAlignment(SwingConstants.CENTER);
  String appVersion = "Version " + app.getFullVersion();

  if (app.isEAP() && app.getBuild().getBuildNumber() < Integer.MAX_VALUE) {
    appVersion += " (" + app.getBuild().asString() + ")";
  }

  JLabel version = new JLabel(appVersion);
  version.setFont(getProductFont().deriveFont(JBUI.scale(16f)));
  version.setHorizontalAlignment(SwingConstants.CENTER);
  version.setForeground(Gray._128);

  panel.add(appName);
  panel.add(version, BorderLayout.SOUTH);
  panel.setBorder(JBUI.Borders.emptyBottom(20));
  return panel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:29,代码来源:FlatWelcomeFrame.java


示例16: init

import com.intellij.ui.components.panels.NonOpaquePanel; //导入依赖的package包/类
private void init() {
  enableEvents(AWTEvent.COMPONENT_EVENT_MASK);

  final JPanel contentPane = new JPanel(new BorderLayout());
  contentPane.add(myHeader, BorderLayout.NORTH);

  JPanel innerPanel = new JPanel(new BorderLayout());
  JComponent toolWindowComponent = myToolWindow.getComponent();
  innerPanel.add(toolWindowComponent, BorderLayout.CENTER);

  final NonOpaquePanel inner = new NonOpaquePanel(innerPanel);
  inner.setBorder(new EmptyBorder(-1, 0, 0, 0));

  contentPane.add(inner, BorderLayout.CENTER);
  add(contentPane, BorderLayout.CENTER);
  if (SystemInfo.isMac) {
    setBackground(new JBColor(Gray._200, Gray._90));
  }

  // Add listeners
  registerKeyboardAction(new ActionListener() {
    @Override
    public void actionPerformed(final ActionEvent e) {
      ToolWindowManager.getInstance(myProject).activateEditorComponent();
    }
  }, KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:28,代码来源:InternalDecorator.java


示例17: Widget

import com.intellij.ui.components.panels.NonOpaquePanel; //导入依赖的package包/类
private Widget(StatusBar statusBar) {
  myStatusBar = statusBar;
  myPresentation = new WidgetPresentation() {
    @Override
    public String getTooltipText() {
      return "Macro is being recorded now";
    }

    @Override
    public Consumer<MouseEvent> getClickConsumer() {
      return Widget.this;
    }
  };


  new BaseButtonBehavior(myIcon) {
    @Override
    protected void execute(MouseEvent e) {
      showBalloon();
    }
  };

  myBalloonComponent = new NonOpaquePanel(new BorderLayout());

  final AnAction stopAction = ActionManager.getInstance().getAction("StartStopMacroRecording");
  final DefaultActionGroup group = new DefaultActionGroup();
  group.add(stopAction);
  final ActionToolbar tb = ActionManager.getInstance().createActionToolbar(ActionPlaces.STATUS_BAR_PLACE, group, true);
  tb.setMiniMode(true);

  final NonOpaquePanel top = new NonOpaquePanel(new BorderLayout());
  top.add(tb.getComponent(), BorderLayout.WEST);
  myText = new JLabel(RECORDED + "..." + TYPING_SAMPLE, SwingConstants.LEFT);
  final Dimension preferredSize = myText.getPreferredSize();
  myText.setPreferredSize(preferredSize);
  myText.setText("Macro recording started...");
  myLastTyping = "";
  top.add(myText, BorderLayout.CENTER);
  myBalloonComponent.add(top, BorderLayout.CENTER);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:41,代码来源:ActionMacroManager.java


示例18: layoutComponents

import com.intellij.ui.components.panels.NonOpaquePanel; //导入依赖的package包/类
private void layoutComponents() {
  add(myRepositoryCheckbox, BorderLayout.WEST);
  JPanel panel = new NonOpaquePanel(new BorderLayout());
  panel.add(myTextRenderer, BorderLayout.WEST);
  panel.add(myDestPushTargetPanelComponent, BorderLayout.CENTER);
  add(panel, BorderLayout.CENTER);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:RepositoryWithBranchPanel.java


示例19: getTreeCellRendererComponent

import com.intellij.ui.components.panels.NonOpaquePanel; //导入依赖的package包/类
@Override
public Component getTreeCellRendererComponent(JTree tree,
                                              Object value,
                                              boolean selected,
                                              boolean expanded,
                                              boolean leaf,
                                              int row,
                                              boolean hasFocus) {

  if (UIUtil.isUnderGTKLookAndFeel() || UIUtil.isUnderNimbusLookAndFeel()) {
    NonOpaquePanel.setTransparent(this);
    NonOpaquePanel.setTransparent(myCheckBox);
  } else {
    setBackground(null);
    myCheckBox.setBackground(null);
    myCheckBox.setOpaque(false);
  }

  myTextRenderer.setOpaque(false);
  myTextRenderer.setTransparentIconBackground(true);
  myTextRenderer.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, hasFocus);
  if (myShowCheckboxes) {
    @SuppressWarnings("unchecked")
    CheckboxTree.NodeState state = getNodeStatus((ChangesBrowserNode)value);
    myCheckBox.setSelected(state != CheckboxTree.NodeState.CLEAR);
    myCheckBox.setEnabled(state != CheckboxTree.NodeState.PARTIAL && tree.isEnabled());
    revalidate();

    return this;
  }
  else {
    return myTextRenderer;
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:35,代码来源:ChangesTreeList.java


示例20: createCustomComponent

import com.intellij.ui.components.panels.NonOpaquePanel; //导入依赖的package包/类
@Override
public JComponent createCustomComponent(final Presentation presentation) {
  ComboBoxButton button = createComboBoxButton(presentation);
  button.setBorder(BorderFactory.createEmptyBorder(0, 2, 0, 2));
  NonOpaquePanel panel = new NonOpaquePanel(new BorderLayout());
  panel.setBorder(IdeBorderFactory.createEmptyBorder(0, 0, 0, 2));
  panel.add(button);
  return panel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:RunConfigurationsComboBoxAction.java



注:本文中的com.intellij.ui.components.panels.NonOpaquePanel类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java LdapInvalidAttributeValueException类代码示例发布时间:2022-05-22
下一篇:
Java AnnotationMethodDeclaration类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap