Examples of doLayout()


Examples of javax.swing.JTabbedPane.doLayout()

  @Override
  protected Component createWidget() {
    JTabbedPane tab = new JTabbedPane();
    Dimension size = new Dimension(100, 100);
    tab.setSize(size);
    tab.doLayout();
    tab.validate();
    return tab;
  }

View Full Code Here

Examples of javax.swing.JTable.doLayout()

  protected Component createWidget() {
    JTable jtc = new JTable();
    jtc.setModel(new DefaultTableModel(new Object[][] { { Messages.JTableAdapter_0, Messages.JTableAdapter_1 }, { Messages.JTableAdapter_2, Messages.JTableAdapter_3 } }, new Object[] { Messages.JTableAdapter_Title_0, Messages.JTableAdapter_Title_1 }));
    jtc.setSize(getInitialSize());
    jtc.doLayout();
    jtc.validate();
    return jtc;
  }
  protected Dimension getInitialSize(){
    return new Dimension(200, 150);
View Full Code Here

Examples of javax.swing.JTextArea.doLayout()

        pixels[0] = -1;

        // Prepare textarea to grab the color from
        JTextArea textArea = new JTextArea();
        textArea.setSize(new Dimension(10, 10));
        textArea.doLayout();

        // Print the textarea to an image
        Image image = new BufferedImage(textArea.getSize().width, textArea.getSize().height, BufferedImage.TYPE_INT_RGB);
        textArea.printAll(image.getGraphics());
View Full Code Here

Examples of javax.swing.JToolBar.doLayout()

  @Override
  protected Component createWidget() {
    JToolBar toolBar = new JToolBar();
    Dimension size = new Dimension(100, 23);
    toolBar.setSize(size);
    toolBar.doLayout();
    toolBar.validate();
    return toolBar;
  }

View Full Code Here

Examples of javax.swing.JTree.doLayout()

  }

  protected Component createWidget() {
    JTree jtc = new JTree();
    jtc.setSize(getInitialSize());
    jtc.doLayout();
    jtc.validate();
    return jtc;
  }

  @Override
View Full Code Here

Examples of javax.swing.text.JTextComponent.doLayout()

    JTextComponent jtc = createTextComponent();
    requestGlobalNewName();
    jtc.setText(getName());
    Dimension size = getInitialSize();
    jtc.setSize(size);
    jtc.doLayout();
    jtc.validate();
    return jtc;
  }
  @Override
  public String getBasename() {
View Full Code Here

Examples of net.sf.jabref.export.layout.Layout.doLayout()

    BibtexEntry be = bibtexString2BibtexEntry(entry);
    StringReader sr = new StringReader(layoutFile.replaceAll("__NEWLINE__", "\n"));
    Layout layout = new LayoutHelper(sr).getLayoutFromText(Globals.FORMATTER_PACKAGE);
    StringBuffer sb = new StringBuffer();
    sb.append(layout.doLayout(be, null));

    return sb.toString();
  }

  public void testLayoutBibtextype() throws Exception {
View Full Code Here

Examples of net.sf.jabref.export.layout.Layout.doLayout()

      // If an exception was cast, export filter doesn't have a begin
      // file.
    }
    // Write the header
    if (beginLayout != null) {
      ps.write(beginLayout.doLayout(database, encoding));
            missingFormatters.addAll(beginLayout.getMissingFormatters());
    }

    /*
     * Write database entries; entries will be sorted as they appear on the
View Full Code Here

Examples of net.sf.jabref.export.layout.Layout.doLayout()

          layout = defLayout;
        }
      }

      // Write the entry
      ps.write(layout.doLayout(entry, database));
    }

    // Print footer

    // changed section - begin (arudert)
View Full Code Here

Examples of net.sf.jabref.export.layout.Layout.doLayout()

      // file.
    }

    // Write footer
    if (endLayout != null) {
      ps.write(endLayout.doLayout(database, encoding));
            missingFormatters.addAll(endLayout.getMissingFormatters());
    }

        // Clear custom name formatters:
        Globals.prefs.customExportNameFormatters = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.