panel.add(textTitle, constraints);
constraints.gridy++;
// Original contents
textOriginal = new MWPane(getWikipedia(), page, this);
textOriginal.setFormatter(new MWPaneBasicFormatter());
JScrollPane scrollOriginal = new JScrollPane(textOriginal);
scrollOriginal.setMinimumSize(new Dimension(100, 100));
scrollOriginal.setPreferredSize(new Dimension(1000, 500));
scrollOriginal.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
constraints.fill = GridBagConstraints.BOTH;
constraints.gridwidth = 2;
constraints.gridx = 0;
constraints.weighty = 1;
constraints.weightx = 1;
panel.add(scrollOriginal, constraints);
constraints.gridy++;
// Expanded contents
if (showExpand) {
textExpanded = new MWPane(getWikipedia(), page, this);
textExpanded.setFormatter(new MWPaneBasicFormatter());
textExpanded.setEditable(false);
JScrollPane scrollExpanded = new JScrollPane(textExpanded);
scrollExpanded.setMinimumSize(new Dimension(100, 100));
scrollExpanded.setPreferredSize(new Dimension(1000, 500));
scrollExpanded.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);