Package org.jdesktop.swingx.decorator

Examples of org.jdesktop.swingx.decorator.RolloverHighlighter


        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();
        header.addMouseListener(this);
View Full Code Here


                                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

            getTable().setColumnControlVisible(false);
            getTable().setEditable(false);             
            getTable().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
            getTable().setHighlighters(new HighlighterPipeline(
                new org.jdesktop.swingx.decorator.Highlighter[]{AlternateRowHighlighter.genericGrey}));
            getTable().getHighlighters().addHighlighter(new RolloverHighlighter(Color.BLACK, Color.WHITE ));
            getTable().setHorizontalScrollEnabled(true)
           
            //fix
            getTable().addMouseListener(new MouseAdapter(){
              @Override
View Full Code Here

                        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

          .setHighlighters(new HighlighterPipeline(
              new Highlighter[] { AlternateRowHighlighter.classicLinePrinter }));
      sourceTable.setHighlighters(new HighlighterPipeline(
          new Highlighter[] { AlternateRowHighlighter.genericGrey }));
      sourceTable.getHighlighters().addHighlighter(
          new RolloverHighlighter(Color.BLACK, Color.WHITE));
      sourceTable
          .setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
      sourceTable.setComponentPopupMenu(sourceTableMenu);
      sourceTable.addMouseListener(this);
      scrollPane.setViewportView(sourceTable);
    }
    contentPane.add(scrollPane, cc.xywh(3, 5, 1, 3));

    JButton button = new JButton();
    button.setText(null);
    button.setIcon(ImageManager.getImage(ImageManager.ADD_IMAGE));
    button.setActionCommand("Add To Positive");
    button.addActionListener(this);
    contentPane.add(button, cc.xy(5, 5));

    scrollPane = new JScrollPane();
    {

      addedTaxRegsTable = new JXTable();
      addedTaxRegsTable.setHorizontalScrollEnabled(true);
      addedTaxRegsTable
          .setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
      addedTaxRegsTable
          .setHighlighters(new HighlighterPipeline(
              new Highlighter[] { AlternateRowHighlighter.classicLinePrinter }));
      addedTaxRegsTable.setHighlighters(new HighlighterPipeline(
          new Highlighter[] { AlternateRowHighlighter.genericGrey }));
      addedTaxRegsTable.getHighlighters().addHighlighter(
          new RolloverHighlighter(Color.BLACK, Color.WHITE));
      addedTaxRegsTable
          .setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
      addedTaxRegsTable.setComponentPopupMenu(addedTaxRegsTableMenu);
      addedTaxRegsTable.addMouseListener(this);
      scrollPane.setViewportView(addedTaxRegsTable);
    }
    contentPane.add(scrollPane, cc.xy(7, 5));

    button = new JButton();
    button.setText(null);
    button.setIcon(ImageManager.getImage(ImageManager.SUB_IMAGE));
    button.setActionCommand("Add To Negative");
    button.addActionListener(this);
    contentPane.add(button, cc.xy(5, 7));

    scrollPane = new JScrollPane();
    {

      subedTaxRegsTable = new JXTable();
      subedTaxRegsTable.setHorizontalScrollEnabled(true);
      subedTaxRegsTable
          .setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
      subedTaxRegsTable
          .setHighlighters(new HighlighterPipeline(
              new Highlighter[] { AlternateRowHighlighter.classicLinePrinter }));
      subedTaxRegsTable.setHighlighters(new HighlighterPipeline(
          new Highlighter[] { AlternateRowHighlighter.genericGrey }));
      subedTaxRegsTable.getHighlighters().addHighlighter(
          new RolloverHighlighter(Color.BLACK, Color.WHITE));
      subedTaxRegsTable
          .setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
      subedTaxRegsTable.setComponentPopupMenu(subedTaxRegsTableMenu);
      subedTaxRegsTable.addMouseListener(this);
      scrollPane.setViewportView(subedTaxRegsTable);
View Full Code Here

        table.setColumnControlVisible(false);
        table.setHorizontalScrollEnabled(true);
        table.setHighlighters(new HighlighterPipeline(
            new Highlighter[]{ AlternateRowHighlighter.genericGrey }));
        table.getHighlighters().addHighlighter(
            new RolloverHighlighter(Color.BLACK, Color.WHITE ));
        table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        tableModel=new ClearRegsManagerTableModel();
        table.setModel(tableModel);
        table.getColumn(0).setPreferredWidth(100);
        table.getColumn(0).setHeaderRenderer(new ImageRenderer(TxtManager.getTxt("VIEW.CLEARREGMANAGER.TABLE.COLUMN1"),
View Full Code Here

                objectLayoutTable = new JXTable();
                getObjectLayoutTable().setHorizontalScrollEnabled(true);                                                                          
                getObjectLayoutTable().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
                getObjectLayoutTable().setHighlighters(new HighlighterPipeline(
                        new Highlighter[]{ AlternateRowHighlighter.genericGrey,
                                            new RolloverHighlighter(Color.BLACK, Color.WHITE)}));                                                                      
                getObjectLayoutTable().setSortable(true);
                getObjectLayoutTable().setEditable(false);           
                getObjectLayoutTable().setComponentPopupMenu(objectLayoutTablePopMenu);   
                getObjectLayoutTable().addMouseListener(listener);
               
View Full Code Here

                    Row selectedRow = new Row(values, getCurrentObject().getRowType());
                    getCurrentObject().loadChilds(selectedRow);                   
                    ItemTableModel imodel = new ItemTableModel(getCurrentObject(), selectedRow);
                    objectChildTable.setHighlighters(new HighlighterPipeline(
                        new Highlighter[]{ AlternateRowHighlighter.genericGrey,
                                            new RolloverHighlighter(Color.BLACK, Color.WHITE)}));
                    objectChildTable.setModel(imodel);
                    objectChildTable.getColumnExt(objectChildTable.getColumnCount(true) -1).setVisible(false);
                } else
                    objectChildTable.setModel(new DefaultTableModel());
            }                                       
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;
                    for (int i = 0; i < objectTable.getColumnCount(false); i++) {
View Full Code Here

                                    objectChildTable.setHorizontalScrollEnabled(true);
                                    objectChildTable.setSortable(true);
                                    objectChildTable.setHighlighters(new HighlighterPipeline(
                                        new Highlighter[]{ AlternateRowHighlighter.classicLinePrinter }));
                                    objectChildTable.getHighlighters().addHighlighter(
                                        new RolloverHighlighter(Color.BLACK, Color.WHITE ));
                                   
                                    //previewPane
                                            previewPane = new JEditorPane();
                                            previewPane.setEditable(false);
                                           
View Full Code Here

TOP

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

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.