Package javax.swing

Examples of javax.swing.JTable$ResizableElements


     *
     * @return Pane to display request data
     */
    private Component createRequestPane() {
        // Set up the 1st table Result with empty headers
        tableRequest = new JTable(requestModel);
        tableRequest.setToolTipText(JMeterUtils.getResString("textbox_tooltip_cell")); // $NON-NLS-1$
        tableRequest.addMouseListener(new TextBoxDoubleClick(tableRequest));
       
        setFirstColumnPreferredSize(tableRequest);
        RendererUtils.applyRenderers(tableRequest, RENDERERS_REQUEST);

        // Set up the 2nd table
        tableParams = new JTable(paramsModel);
        tableParams.setToolTipText(JMeterUtils.getResString("textbox_tooltip_cell")); // $NON-NLS-1$
        tableParams.addMouseListener(new TextBoxDoubleClick(tableParams));
        setFirstColumnPreferredSize(tableParams);
        tableParams.getTableHeader().setDefaultRenderer(
                new HeaderAsPropertyRenderer());
        RendererUtils.applyRenderers(tableParams, RENDERERS_PARAMS);

        // Set up the 3rd table
        tableHeaders = new JTable(headersModel);
        tableHeaders.setToolTipText(JMeterUtils.getResString("textbox_tooltip_cell")); // $NON-NLS-1$
        tableHeaders.addMouseListener(new TextBoxDoubleClick(tableHeaders));
        setFirstColumnPreferredSize(tableHeaders);
        tableHeaders.getTableHeader().setDefaultRenderer(
                new HeaderAsPropertyRenderer());
View Full Code Here


        }
    }

    public JPanel createAuthTablePanel() {
        // create the JTable that holds auth per row
        authTable = new JTable(tableModel);
        authTable.getTableHeader().setDefaultRenderer(new HeaderAsPropertyRenderer());
        authTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        authTable.setPreferredScrollableViewportSize(new Dimension(100, 70));

        TableColumn passwordColumn = authTable.getColumnModel().getColumn(AuthManager.COL_PASSWORD);
View Full Code Here

        return panel;
    }

    private JPanel createIncludePanel() {
        includeModel = new PowerTableModel(new String[] { INCLUDE_COL }, new Class[] { String.class });
        includeTable = new JTable(includeModel);
        includeTable.getTableHeader().setDefaultRenderer(new HeaderAsPropertyRenderer());
        includeTable.setPreferredScrollableViewportSize(new Dimension(100, 30));

        JPanel panel = new JPanel(new BorderLayout());
        panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils
View Full Code Here

        return panel;
    }

    private JPanel createExcludePanel() {
        excludeModel = new PowerTableModel(new String[] { EXCLUDE_COL }, new Class[] { String.class });
        excludeTable = new JTable(excludeModel);
        excludeTable.getTableHeader().setDefaultRenderer(new HeaderAsPropertyRenderer());
        excludeTable.setPreferredScrollableViewportSize(new Dimension(100, 30));

        JPanel panel = new JPanel(new BorderLayout());
        panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils
View Full Code Here

                deleteSelectedRows();
            }
        });
        btnDeleteParameter.setEnabled(false);

        tblParameters = new JTable();
        tblParameters.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
        tblParameters.setFillsViewportHeight(true);
        defaultTableModel = new DefaultTableModel(new Object[][] { { null, null, null, null }, }, new String[] { "I/O",
                "Parameter Name", "Type", "Description" });
        tblParameters.setModel(defaultTableModel);
View Full Code Here

            if (idx >= 0) {
                try {
                    idx = table.getRowSorter().convertRowIndexToModel(idx);
                    TableModel tm = ((RequestTrackerFile) table.getModel()).getData(idx);
                    if (dataField == null) {
                        dataField = new JTable();
                        dataField.setAutoCreateRowSorter(true);
                        dataField.setGridColor(Color.GRAY);
                        dataField.setShowGrid(true);
                        dataField.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
                        dataField.setRowSelectionAllowed(true);
View Full Code Here

        JTextPane text = Util.showStartupDialog("Reading from " + file, screenSize);

        final RequestTrackerFile dm = new RequestTrackerFile(file, limit, text);

        final JTable table = new JTable(dm);
        table.setAutoCreateRowSorter(true);
        table.setGridColor(Color.GRAY);
        table.setShowGrid(true);
        table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        table.setRowSelectionAllowed(true);
        table.setTableHeader(new JTableHeader(table.getColumnModel()));
        Util.setupColumnWidths(table.getColumnModel(), MAIN_COLS);
//        table.setFont(new Font("Monospaced", table.getFont().getStyle(), table.getFont().getSize()));
        table.getSelectionModel().addListSelectionListener(new RequestListSelectionListener(this, table, screenSize));

        add(new JScrollPane(table));

        setTitle(file.getPath());
View Full Code Here

    argsModel = new ArgumentsModel();
      table = new MyTable(argsModel);
    argsModel.setTable(table);    

    outArgsModel = new OutputArgumentsModel();
      outTable = new JTable(outArgsModel);
  }
View Full Code Here

     */
    private void resetDefaults( TableView tView ) {
        Object[] colNames = tView.getColNames();
        Object[][] tableValues = tView.getCalcdValues();
        // dumpObjs( tableValues, System.out);
        JTable table = new JTable( tableValues, colNames );
        tView.setViewColumnsWidth( table );
        setTitle( tView.getViewTitle() );
        //
        if ( mainSP != null ) getContentPane().remove( mainSP );
        mainSP = new JScrollPane( table );
View Full Code Here

     */
    public EventViewer() {
        setLayout( new FlowLayout(FlowLayout.LEFT, 1, 1) );

        model = new DefaultTableModel(initial_data, COLUMN_LABELS);
        table = new JTable(model);

        table.setFont(TABLE_FONT);
        table.setBackground(LIGHT_BLUE);
        table.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
        table.setAutoscrolls(true);
View Full Code Here

TOP

Related Classes of javax.swing.JTable$ResizableElements

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.