Exemplo n.º 1
0
  /** Creates the basic GUI */
  public void createGUI() {

    this.addWindowListener(new BootstrapperWindowListener());

    /* Setup the Contacts Panel */
    contacts = new JTextArea(10, 20);

    /* Setup the Content Panel */
    content = new JTextArea(10, 20);

    /* Populate the data */
    this.populateData();

    this.contactsScrollPane = new JScrollPane(this.contacts);
    contactsScrollPane.setMinimumSize(new Dimension(400, 800));
    this.contentScrollPane = new JScrollPane(this.content);
    contentScrollPane.setMinimumSize(new Dimension(400, 800));

    this.splitPane =
        new JSplitPane(
            JSplitPane.HORIZONTAL_SPLIT, this.contactsScrollPane, this.contentScrollPane);
    splitPane.setDividerLocation(FRAME_WIDTH / 4);

    splitPane.setSize(new Dimension(FRAME_WIDTH, FRAME_HEIGHT));

    this.getContentPane().add(splitPane, BorderLayout.CENTER);
  }
Exemplo n.º 2
0
 /**
  * Inicializa una instancia de contentSplitPane y la devuelve
  *
  * @return JSplitPane: SplitPane contentSplitPane
  */
 private JSplitPane getContentSplitPane() {
   if (contentSplitPane == null) {
     contentSplitPane =
         new JSplitPane(
             JSplitPane.HORIZONTAL_SPLIT,
             getDirectoriesTreePanelScroller(),
             getChildFilesTableScroller());
     contentSplitPane.setPreferredSize(new Dimension(700, 430));
     contentSplitPane.setSize(new Dimension(700, 430));
     contentSplitPane.setDividerSize(4);
     contentSplitPane.setContinuousLayout(true);
     contentSplitPane.setDividerLocation(350);
     contentSplitPane.setEnabled(false);
   }
   return contentSplitPane;
 }
Exemplo n.º 3
0
 public void update() {
   Random rand = new Random();
   myPanel.setSize(TOTAL_SIZE);
   validate();
   repaint();
 }