Java Code Examples for com.intellij.openapi.ui.Messages#getQuestionIcon()

The following examples show how to use com.intellij.openapi.ui.Messages#getQuestionIcon() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ReplacePromptDialog.java    From consulo with Apache License 2.0 5 votes vote down vote up
@Override
public JComponent createNorthPanel() {
  JPanel panel = new JPanel(new BorderLayout());
  panel.setBorder(BorderFactory.createEmptyBorder(5, 10, 5, 10));
  Icon icon = Messages.getQuestionIcon();
  if (icon != null){
    JLabel iconLabel = new JLabel(icon);
    panel.add(iconLabel, BorderLayout.WEST);
  }
  JLabel label = new JLabel(getMessage());
  label.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 10));
  label.setForeground(JBColor.foreground());
  panel.add(label, BorderLayout.CENTER);
  return panel;
}