Package org.jdesktop.swingx.decorator

Examples of org.jdesktop.swingx.decorator.AlternateRowHighlighter


    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


    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

    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);

    add(mainPanel);
View Full Code Here

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

  }
View Full Code Here

                                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);
View Full Code Here

                        bankTable.setSortable(true);
                        bankTable.setEditable(false);
                        bankTable.setColumnControlVisible(false);
                        bankTable.setHorizontalScrollEnabled(true);
                        HighlighterPipeline highlighters = new HighlighterPipeline();
                        highlighters.addHighlighter(new AlternateRowHighlighter());
                        highlighters.addHighlighter(new RolloverHighlighter(Color.BLACK, Color.WHITE));
                        bankTable.setHighlighters(highlighters);
                        bankTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
                        bankTable.addMouseListener(this);
                        scrollPane.setViewportView(bankTable);
    }
    contentPane.add(scrollPane, cc.xy(3, 5));

                scrollPane = new JScrollPane();
    {
     
      addressTable = new JXTable();
                        addressTable.setSortable(true);
                        addressTable.setEditable(false);
                        addressTable.setColumnControlVisible(false);
                        addressTable.setHorizontalScrollEnabled(true);
                        HighlighterPipeline highlighters = new HighlighterPipeline();
                        highlighters.addHighlighter(new AlternateRowHighlighter());
                        highlighters.addHighlighter(new RolloverHighlighter(Color.BLACK, Color.WHITE));
                        addressTable.setHighlighters(highlighters);
                        addressTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
                        addressTable.addMouseListener(this);
                        scrollPane.setViewportView(addressTable);
View Full Code Here

        }
       
        private void setHighLighting() {
           
                HighlighterPipeline highlighters = new HighlighterPipeline();
                highlighters.addHighlighter(new AlternateRowHighlighter());
                highlighters.addHighlighter(new RolloverHighlighter(Color.BLACK, Color.WHITE));
               
                if (getCurrentObject().getClsId() == 160) {//for currency object                
                    PatternHighlighter pattern = new PatternHighlighter();
                    int columnIndex = -1;
View Full Code Here

    panel.setLayout(new BorderLayout());
    panel.setModel(new StackTraceTableModel(stackTrace));
    panel.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    panel.setColumnControlVisible(true);
    panel.setHighlighters(new HighlighterPipeline(
        new Highlighter[] { new AlternateRowHighlighter() }));   
    return panel;
  }
View Full Code Here

    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

    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

TOP

Related Classes of org.jdesktop.swingx.decorator.AlternateRowHighlighter

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.