Advertisement
pastetumlum

questionpanel in extensionpanel

Jul 14th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. public class ExtensionPanel extends JPanel {
  2. private QuestionPanel questionPanel;
  3. public ExtensionPanel() {
  4.         setPreferredSize(new Dimension(360, 300));
  5.         setLayout(new BorderLayout());
  6.         initChildPanel();
  7.     }
  8. private void initChildPanel() {
  9.         // init
  10.         questionPanel = new QuestionPanel();
  11.         // add
  12.         add(questionPanel, BorderLayout.CENTER);
  13.     }
  14. public QuestionPanel getQuestionPanel() {
  15.         return questionPanel;
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement