Remove redundant inheritance from JPanel

This commit is contained in:
Valentina Kiryushkina
2016-07-25 19:25:34 +03:00
parent 917563b386
commit aa8ba10c81
2 changed files with 6 additions and 5 deletions
@@ -64,7 +64,7 @@ public class CCCreateAnswerPlaceholderDialog extends DialogWrapper {
@Nullable
@Override
protected JComponent createCenterPanel() {
return myPanel;
return myPanel.getMailPanel();
}
@Nullable
@@ -17,7 +17,7 @@ import java.awt.event.FocusEvent;
import java.util.ArrayList;
import java.util.List;
public class CCCreateAnswerPlaceholderPanel extends JPanel {
public class CCCreateAnswerPlaceholderPanel {
private static String ourFirstHintText = "Type here to add hint";
private JPanel myPanel;
@@ -33,9 +33,6 @@ public class CCCreateAnswerPlaceholderPanel extends JPanel {
}};
public CCCreateAnswerPlaceholderPanel() {
super(new BorderLayout());
add(myPanel, BorderLayout.CENTER);
myHintTextArea.setLineWrap(true);
myHintTextArea.setWrapStyleWord(true);
myPlaceholderTextArea.setBorder(BorderFactory.createLineBorder(JBColor.border()));
@@ -109,6 +106,10 @@ public class CCCreateAnswerPlaceholderPanel extends JPanel {
updateHintNumberLabel();
}
public JPanel getMailPanel() {
return myPanel;
}
private class GoForward extends AnAction {
public GoForward() {