Examples of JSplitPane


Examples of javax.swing.JSplitPane

                final SourceTree st = SourceTree.getFromPool("PropertiesPanel0");
                treePane.add(new JScrollPane(st), BorderLayout.CENTER);
                JPanel bpanel = new JPanel(new GridLayout(1, 1));
                bpanel.add(changeSourceAlias = new JButton(resources.getString("changeSourceAlias")));
                treePane.add(bpanel, BorderLayout.SOUTH);
                JSplitPane pane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, new JScrollPane(list), treePane);
                list.setVisibleRowCount(10);
                JPanel bbox = new JPanel(new FlowLayout());
                final JButton bok;
                bbox.add(bok = new JButton("OK"));
                // bbox.add(bcancel = new JButton("Cancel"));
View Full Code Here

Examples of javax.swing.JSplitPane

 
  private String nr_of_files = "";
 
  private void init() {
   
    split_pane = new JSplitPane();
    shared_folders_scroll_pane = new JScrollPane();
    shared_files_scroll_pane = new JScrollPane();
    shared_folders_list = new JList();
    shared_folders_list_model = new SharedFoldersListModel();
    top_panel = new TopPanel();
View Full Code Here

Examples of javax.swing.JSplitPane

    /**
     * Default implementation to layout source panel and synoptic editor
     */
    protected void layoutSourcePanelAndDesktopPanel() {
        if (panes != null) {
            splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, panes, desktopCardPanel);
            container.add(BorderLayout.CENTER, splitPane);
            splitPane.setOneTouchExpandable(true);
        } else {
            splitPane = null;
            container.add(BorderLayout.CENTER, desktopCardPanel);
View Full Code Here

Examples of javax.swing.JSplitPane

     initComponents();
     super.registerRefreshable(serverListTable);
   }
  
   private void initComponents() {  
     splitPane = new JSplitPane();
     splitPane2 = new JSplitPane();
     serverListScrollPane = new JScrollPane();
     serverMessagesScrollPane = new JScrollPane();
     myInfoScrollPane = new JScrollPane();
     gridLayout = new GridLayout(1,1);
     serverListTable = new ServerListTable(parent);
View Full Code Here

Examples of javax.swing.JSplitPane

    super.registerRefreshable(uploadsTable);
  }
 
  private void initComponents() {
   
    splitPane = new JSplitPane();
    gridLayout = new GridLayout(1,1);
    downloadsScrollPane = new JScrollPane();
    uploadsScrollPane = new JScrollPane();
    downloadsTable = new DownloadsTable(parent);
    uploadsTable = new UploadsTable(parent);
View Full Code Here

Examples of javax.swing.JSplitPane

  public PdfInspectorSample(
    )
  {
    super(new GridLayout(1,0));

    JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
    {
      Dimension minimumSize = new Dimension(200, 100);

      JScrollPane treeScrollPane;
      {
        tree = new JTree();
        {
          tree.setModel(new DefaultTreeModel(null));
          tree.getSelectionModel().setSelectionMode(
            TreeSelectionModel.SINGLE_TREE_SELECTION
            );
          tree.addTreeSelectionListener(
            new TreeSelectionListener()
            {
              @Override
              public void valueChanged(TreeSelectionEvent event)
              {
                // Clear the attributes table!
                DefaultTableModel model = (DefaultTableModel)table.getModel();
                model.setRowCount(0);

                DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
                if(node == null)
                  return;

                // Show the current node attributes into the table!
                Object nodeValue = node.getUserObject();
                if(nodeValue instanceof ContentNodeValue)
                {showContentAttributes(((ContentNodeValue)nodeValue).getContent(), model);}
                else if(nodeValue instanceof PageNodeValue)
                {showPageAttributes(((PageNodeValue)nodeValue).getPage().getContents(), model);}

                pack(table);
              }
            }
            );
          tree.addTreeWillExpandListener(
            new TreeWillExpandListener()
            {
              @Override
              public void treeWillCollapse(TreeExpansionEvent event) throws ExpandVetoException
              {/* NOOP */}
              @Override
              public void treeWillExpand(TreeExpansionEvent event) throws ExpandVetoException
              {
                DefaultMutableTreeNode node = (DefaultMutableTreeNode)event.getPath().getLastPathComponent();
                Object nodeValue = node.getUserObject();
                if(nodeValue instanceof PageNodeValue)
                {
                  // Content placeholder?
                  if(((DefaultMutableTreeNode)node.getFirstChild()).getUserObject() == null)
                  {
                    // Remove the content placeholder!
                    node.removeAllChildren();

                    // Create the page content nodes!
                    createContentNodes(
                      ((PageNodeValue)nodeValue).getPage().getContents(),
                      node
                      );
                  }
                }
              }
            }
            );
        }
        treeScrollPane = new JScrollPane(tree);
        treeScrollPane.setMinimumSize(minimumSize);
      }
      splitPane.setLeftComponent(treeScrollPane);

      JScrollPane tableScrollPane;
      {
        table = new JTable(new DefaultTableModel(null, new String[]{"Attribute","Value"}));
        {
          table.setAutoResizeMode(JTable.AUTO_RESIZE_LAST_COLUMN);
          TableColumn column0 = table.getColumnModel().getColumn(0);
          {
            column0.setCellRenderer(new CellRenderer());
            column0.setMinWidth(200);
            column0.setMaxWidth(200);
          }
          TableColumn column1 = table.getColumnModel().getColumn(1);
          {
            column1.setCellRenderer(new CellRenderer());
          }
          table.getColumnModel().addColumnModelListener(
            new TableColumnModelListener()
            {
              @Override
              public void columnAdded(TableColumnModelEvent event)
              {/* NOOP */}
              @Override
              public void columnMarginChanged(ChangeEvent event)
              {pack(table);}
              @Override
              public void columnMoved(TableColumnModelEvent event)
              {/* NOOP */}
              @Override
              public void columnRemoved(TableColumnModelEvent event)
              {/* NOOP */}
              @Override
              public void columnSelectionChanged(ListSelectionEvent event)
              {/* NOOP */}
            }
            );
        }
        tableScrollPane = new JScrollPane(table);
        tableScrollPane.setMinimumSize(minimumSize);
      }
      splitPane.setRightComponent(tableScrollPane);
    }
    add(splitPane);
  }
View Full Code Here

Examples of javax.swing.JSplitPane

   *            Action, which is used to discard the results.
   */
  private void initialize(Action confirm, Action abort) {
    this.setLayout(new GridBagLayout());
    // Trees and message
    this.messageTreePanel = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    // source and target tree
    this.treesPanel = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
    // Source tree
    this.sourceTree = new JScrollPane();
    // target tree
    this.targetTree = new JScrollPane();
    // insert the treepanes
View Full Code Here

Examples of javax.swing.JSplitPane

        textEntryArea.setLineWrap(true);
        textEntryArea.setWrapStyleWord(true);

        conversationArea.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);

        container = new JSplitPane(JSplitPane.VERTICAL_SPLIT, conversationArea,
                scroll);
        container.setResizeWeight(1);

        JPanel containerPanel = new JPanel();
        containerPanel.setLayout(new BoxLayout(containerPanel, BoxLayout.X_AXIS));
View Full Code Here

Examples of javax.swing.JSplitPane

    filterAction = new FilterAction();
  }

  private void initializeContent()
  {
    horizontalSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
    horizontalSplitPane.setBorder(GUIHelper.createEmptyBorder(5));
   
    rootNode = new DefaultMutableTreeNode();
    addressBookTreeModel = new DefaultTreeModel(rootNode);
    addressBookTree = new JTree(addressBookTreeModel);
View Full Code Here

Examples of javax.swing.JSplitPane

        statusLabel = new JLabel("Not Started");
        statusPanel.add(statusLabel);
      }
    }
    {
      JSplitPane splitPane = new JSplitPane();
      frame.getContentPane().add(splitPane, BorderLayout.CENTER);
      {
        JScrollPane clientScrollPane = new JScrollPane();
        splitPane.setLeftComponent(clientScrollPane);
        {
          clientList = new JList();
          clientList.setListData(connectedClients.toArray());
          clientScrollPane.setViewportView(clientList);
        }
      }
      {
        logScrollPane = new JScrollPane();
        splitPane.setRightComponent(logScrollPane);
        {
          textArea = new JTextArea();
          logScrollPane.setViewportView(textArea);
        }
      }
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.