Package org.jdesktop.swingx.decorator

Examples of org.jdesktop.swingx.decorator.BorderHighlighter


   
    private ComboBoxModel getHighlighterOptionsModel() {
        List<HighlighterInfo> info = new ArrayList<HighlighterInfo>();
        info.add(new HighlighterInfo("No Additional Highlighter", null));
        info.add(new HighlighterInfo("Green Border",
                new BorderHighlighter(BorderFactory.createLineBorder(Color.GREEN, 1))));
        info.add(new HighlighterInfo("Blue Border",
                new BorderHighlighter(BorderFactory.createLineBorder(Color.BLUE, 1))));
        info.add(new HighlighterInfo("Red Text",
                new ColorHighlighter(null, Color.RED)));
        info.add(new HighlighterInfo("Purple Text",
                new ColorHighlighter(null, new Color(0x80, 0x00, 0x80))));
        info.add(new HighlighterInfo("Blended Red Background",
View Full Code Here


        matchHighlighter = new ColorHighlighter(HighlightPredicate.NEVER,
                null, Color.MAGENTA
                );
       
        // hacking a right/left margin
        marginHighlighter = new BorderHighlighter(marginBorder);
        // compoundHighlighter to share between table and tree
        tableHighlighters = new CompoundHighlighter();
        listHighlighters = new CompoundHighlighter();
       
    }
View Full Code Here

  public void init() {
    this.addMouseListener(new zc3MouseAdapt(this));
   
    //super.setShowGrid(true);  --> Not reliable with Nimbus
    super.setShowGrid(false); // override default mode of any LAF
    this.addHighlighter(new BorderHighlighter(null,SplitTableDefaults.innerCellBorder(),false));
   
    JTableHeader h=super.getTableHeader();
    h.addMouseListener(new zc3MouseAdaptForHeader(this));
    h.addMouseMotionListener(new zc3MouseAdaptForHeader(this));
   
View Full Code Here

   
    super.addHighlighter(new IconHighlighter(paintIconExpanded,new ExpandIcon(true)),true);
    super.addHighlighter(new IconHighlighter(paintIconClosed,new ExpandIcon(false)),true);
    super.addHighlighter(new ColorHighlighter(splitRow,SplitTableDefaults.tablePartOfBg(),Color.black),true);
    super.addHighlighter(new ColorHighlighter(splitRow,SplitTableDefaults.tablePartOfBg(),Color.black),false);
    super.addHighlighter(new BorderHighlighter(top,SplitTableDefaults.topCellBorder()), true);
    super.addHighlighter(new BorderHighlighter(left,SplitTableDefaults.leftCellBorder()), false);
   
   
    super.addSelectionListener(new JXSplitTable.SelectionListener() {
      public void choosen(int row, int col, boolean left) {
        AbstractTwoLevelSplitTableModel.CNodeIndex cnode=_model.getCNodeIndex(row,col);
View Full Code Here

TOP

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

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.