Package org.wikipediacleaner.gui.swing.component

Examples of org.wikipediacleaner.gui.swing.component.MWPane


    constraints.weightx = 1;
    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));
View Full Code Here


    constraints.ipadx = 0;
    constraints.ipady = 0;
    constraints.weightx = 1;
    constraints.weighty = 0;

    textPage = new MWPane(getWiki(), page, window);

    // Comment
    JPanel panelComment = new JPanel(new GridBagLayout());
    GridBagConstraints constraints2 = new GridBagConstraints();
    constraints2.fill = GridBagConstraints.HORIZONTAL;
View Full Code Here

   *
   * @param window Window.
   */
  protected void createTextContents(BasicWindow window) {
    if (textContents == null) {
      textContents = new MWPane(getWikipedia(), page, window);
      textContents.addPropertyChangeListener(MWPane.PROPERTY_MODIFIED, this);
    }
  }
View Full Code Here

    panel.add(panelComment, constraints);
    constraints.gridy++;

    // Article contents
    if ((articleText != null) && (articleText.length() > 0)) {
      textArticle = new MWPane(getWikipedia(), articlePage, this);
      textArticle.setText(articleText);
      textArticle.setFormatter(new MWPaneBasicFormatter());
      textArticle.setEditable(false);
      textArticle.resetAttributes();
      JScrollPane scrollText = new JScrollPane(textArticle);
View Full Code Here

TOP

Related Classes of org.wikipediacleaner.gui.swing.component.MWPane

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.