mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Remove redundant inheritance from JPanel
This commit is contained in:
+1
-1
@@ -64,7 +64,7 @@ public class CCCreateAnswerPlaceholderDialog extends DialogWrapper {
|
||||
@Nullable
|
||||
@Override
|
||||
protected JComponent createCenterPanel() {
|
||||
return myPanel;
|
||||
return myPanel.getMailPanel();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
+5
-4
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user