Examples of HighlighterPipeline


Examples of org.jdesktop.swing.decorator.HighlighterPipeline

        resourcesTable.getColumnModel().getColumn(0).setPreferredWidth(10);
        resourcesTable.getColumnModel().getColumn(1).setPreferredWidth(240);
        resourcesTable.getColumnModel().getColumn(2).setPreferredWidth(60);
        resourcesTable.getColumnModel().getColumn(3).setPreferredWidth(60);
        resourcesTable.getColumnModel().getColumn(4).setPreferredWidth(100);
        resourcesTable.setHighlighters(new HighlighterPipeline(
                new Highlighter[] { new Highlighter(
                        new Color(0xFF, 0xFF, 0xFF), null) }));
        resourcesScrollPane = new JScrollPane(resourcesTable);
        resourcesScrollPane.setPreferredSize(new Dimension(500, 130));
        JPanel secondResourcesScrollPane = new JPanel();
View Full Code Here

Examples of org.jdesktop.swing.decorator.HighlighterPipeline

        this.add(table);
        table.getColumn((String) titles.get(0)).setPreferredWidth(150);
        table.getColumn((String) titles.get(1)).setPreferredWidth(150);
        table.getColumn((String) titles.get(2)).setPreferredWidth(200);

        table.setHighlighters(new HighlighterPipeline(new Highlighter[] {
                AlternateRowHighlighter.floralWhite,
                AlternateRowHighlighter.quickSilver }));

        table.getTable().setSortable(false);
View Full Code Here

Examples of org.jdesktop.swing.decorator.HighlighterPipeline

                            // nothing to do
                        }
                    });

        }
        setHighlighters(new HighlighterPipeline(new Highlighter[] {
                AlternateRowHighlighter.quickSilver,
                new HierarchicalColumnHighlighter() }));

      getTable().getSelectionModel().addListSelectionListener(new ListSelectionListener() {
      public void valueChanged(ListSelectionEvent e) {
View Full Code Here

Examples of org.jdesktop.swing.decorator.HighlighterPipeline

        ArrayList cols = ttModel.getColumns();
        for (int i=2; i<cols.size(); i++) {
            hideColumn((ResourceColumn) cols.get(i));
        }
        // Highlighters to ease the reading of the table.
        setHighlighters(new HighlighterPipeline(new Highlighter[] {
                AlternateRowHighlighter.quickSilver,
                new HierarchicalColumnHighlighter() }));

        setShowHorizontalLines(true);
        setHasColumnControl(true);
View Full Code Here

Examples of org.jdesktop.swingx.decorator.HighlighterPipeline

    table.setModel(getTableModel());
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    table.addMouseListener(getTableMouseListener());
    table.setColumnControlVisible(true);
    table.setHighlighters(new HighlighterPipeline(
        new Highlighter[] { new AlternateRowHighlighter() }));
    JScrollPane spTable = new JScrollPane(table);
    tablePanel.add(spTable);
   
    getMainPanel().add(tablePanel);   
View Full Code Here

Examples of org.jdesktop.swingx.decorator.HighlighterPipeline

    table.setModel(getTableModel());
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    table.addMouseListener(getTableMouseListener());
    table.setColumnControlVisible(true);
    table.setHighlighters(new HighlighterPipeline(
        new Highlighter[] { new AlternateRowHighlighter() }));
    JScrollPane spTable = new JScrollPane(table);
    tablePanel.add(spTable);
   
    getMainPanel().add(tablePanel);   
View Full Code Here

Examples of org.jdesktop.swingx.decorator.HighlighterPipeline

    table.setModel(getTableModel());
    table.setColumnControlVisible(true);
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    table.addMouseListener(getTableMouseListener());
    table.setColumnControlVisible(true);
    table.setHighlighters(new HighlighterPipeline(
        new Highlighter[] { new AlternateRowHighlighter() }));
    JScrollPane spTable = new JScrollPane(table);
    tablePanel.add(spTable);
    mainPanel.add(tablePanel);
View Full Code Here

Examples of org.jdesktop.swingx.decorator.HighlighterPipeline

      }
    };
    table.addMouseListener(tableMouseListener);
    table.setColumnControlVisible(true);
    table.setHighlighters(new HighlighterPipeline(
        new Highlighter[] { new AlternateRowHighlighter() }));
    tablePanel.add(spTable);

  }
View Full Code Here

Examples of org.jdesktop.swingx.decorator.HighlighterPipeline

            new Insets(0, 0, 5, 0), 0, 0));       
             
        table = new JXTable();
        table.setSortable(false);
        table.setEditable(false);
        table.setHighlighters(new HighlighterPipeline(
                new Highlighter[]{ AlternateRowHighlighter.genericGrey,
                new RolloverHighlighter(Color.BLACK, Color.WHITE)}));
        table.addMouseListener(this);
        headerColumn = new JTable();
        JTableHeader header = table.getTableHeader();
View Full Code Here

Examples of org.jdesktop.swingx.decorator.HighlighterPipeline

        notAssignedTable = new JXTable();
                                notAssignedTable.setSortable(false);
                                notAssignedTable.setEditable(false);
                                notAssignedTable.setColumnControlVisible(false);
                                notAssignedTable.setHorizontalScrollEnabled(true);
                                HighlighterPipeline highlighters = new HighlighterPipeline();
                                highlighters.addHighlighter(new AlternateRowHighlighter());
                                highlighters.addHighlighter(new RolloverHighlighter(Color.BLACK, Color.WHITE));
                                notAssignedTable.setHighlighters(highlighters);
                                notAssignedTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);       
                                notAssignedTable.addMouseListener(this);
        scrollPane.setViewportView(notAssignedTable);
      }
      panel.add(scrollPane, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
        GridBagConstraints.CENTER, GridBagConstraints.BOTH,
        new Insets(0, 0, 0, 0), 0, 0));
    }
    contentPane.add(panel, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0,
      GridBagConstraints.CENTER, GridBagConstraints.BOTH,
      new Insets(0, 0, 5, 0), 0, 0));

    panel = new JPanel();
    {
      panel.setLayout(new FlowLayout());
     
      JButton upButton = new JButton();
                        upButton.setIcon(ImageManager.getImage(ImageManager.ARROW_UP_IMAGE));
                        upButton.setActionCommand("UP");
                        upButton.addActionListener(this);
      panel.add(upButton);
     
      JButton downButton = new JButton();
                        downButton.setIcon(ImageManager.getImage(ImageManager.ARROW_DOWN_IMAGE));
                        downButton.setActionCommand("DOWN");
                        downButton.addActionListener(this);
      panel.add(downButton);
    }
    contentPane.add(panel, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0,
      GridBagConstraints.CENTER, GridBagConstraints.BOTH,
      new Insets(0, 0, 5, 0), 0, 0));

    panel = new JPanel();
    {
      panel.setBorder(new TitledBorder(TxtManager.getTxt("VIEW.OBJECTEDIT.REG.ASSIGNEDBUDGETS")));
      panel.setLayout(new GridBagLayout());
      ((GridBagLayout)panel.getLayout()).columnWidths = new int[] {0, 0};
      ((GridBagLayout)panel.getLayout()).rowHeights = new int[] {0, 0};
      ((GridBagLayout)panel.getLayout()).columnWeights = new double[] {1.0, 1.0E-4};
      ((GridBagLayout)panel.getLayout()).rowWeights = new double[] {1.0, 1.0E-4};
     
      JScrollPane scrollPane = new JScrollPane();
      {
        scrollPane.setPreferredSize(new Dimension(500, 150));
       
        assignedTable = new JXTable();
                                assignedTable.setSortable(false);
                                assignedTable.setEditable(false);
                                assignedTable.setColumnControlVisible(false);
                                assignedTable.setHorizontalScrollEnabled(true);
                                HighlighterPipeline highlighters = new HighlighterPipeline();
                                highlighters.addHighlighter(new AlternateRowHighlighter());
                                highlighters.addHighlighter(new RolloverHighlighter(Color.BLACK, Color.WHITE));
                                assignedTable.setHighlighters(highlighters);
                                assignedTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
                                assignedTable.setComponentPopupMenu(popupMenu)
                                assignedTable.addMouseListener(this);
        scrollPane.setViewportView(assignedTable);
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.