Package org.jdesktop.swingx.border

Examples of org.jdesktop.swingx.border.DropShadowBorder


    /** Creates new form JPnlImg */
    public JPnlImg(Image image, JPnlImageMap parent, int segmentNumber) {
        initComponents();
        this.setFocusable(true);
       
        DropShadowBorder selectBorder = new DropShadowBorder();
        selectBorder.setShowLeftShadow(true);
        selectBorder.setShowTopShadow(true);

        this.parent = parent;
        this.image = image;
        this.jXImagePanel.setImage(image);
        this.jXImagePanel.setStyle(Style.CENTERED);
View Full Code Here


        this.jPnlCenter.add(pnl, BorderLayout.CENTER);
        this.jPnlCenter.revalidate();
        pnl.setComponentPopupMenu(jPopupMenuRemove);
        this.setComponentPopupMenu(jPopupMenuRemove);
        this.jPnlCenter.setComponentPopupMenu(jPopupMenuRemove);
        DropShadowBorder selectBorder = new DropShadowBorder();
        selectBorder.setShowLeftShadow(true);
        selectBorder.setShowTopShadow(true);
        this.selectedBorder = selectBorder;
        this.defaultBorder = this.getBorder();
        pnl.addMouseListener(new MouseListenerChart(this));
        this.setToolTipText(hint);
        this.jPnlCenter.setToolTipText(hint);
View Full Code Here

    }

    public void enableDropShadow(boolean b) {
        hasDropShadow = b;
        if (hasDropShadow) {
            border = new CompoundBorder(new DropShadowBorder(isSelected ? Color.GREEN : Color.BLACK, 10),
                            createDefaultBorder());
        } else {
            border = createDefaultBorder();
        }
    }
View Full Code Here

        centerAndSouth.center(createCenter(content));
        layoutSouthPart(centerAndSouth);
        centerAndSouth.setOpaque(false).setBorder(new LineBorder(getInnerBorderColor()));
        layout.center(centerAndSouth);
        layout.setBackground(getBackgroundColor()).setBorder(
                new BorderBuilder(new DropShadowBorder()).line(getOuterBorderColor()).empty(10));
    }
View Full Code Here

        cmbSearch.addItem(FIELD_ALL);
    }
  private void initComponents() {
    setLayout(new MigLayout("", "[152.00][170.00,grow][50.00][55.00]", "[]"));
    setBorder(new DropShadowBorder(Color.BLACK, 0, 10, .5f, 10, false, true, true, false));
    {
      cmbSearch = new JComboBox();
      cmbSearch.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent arg0) {
          cmbSearchActionPerformed(arg0);
View Full Code Here

      searchTable.setColumnControlVisible(true);
      scrollPane.setViewportView(searchTable);

      gridPanel.setLayout(new BorderLayout());
      gridPanel.setBorder(new DropShadowBorder(Color.BLACK, 2, 10, .5f, 10, false, true, true, true));
      gridPanel.add(scrollPane, java.awt.BorderLayout.CENTER);
    }
  }
View Full Code Here

TOP

Related Classes of org.jdesktop.swingx.border.DropShadowBorder

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.