Package javax.swing.border

Examples of javax.swing.border.Border


    }

    @Override
    public void mouseEntered(MouseEvent e) {
        oldBorder = this.getBorder();
        Border b = BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED);
        b = BorderFactory.createEtchedBorder();
        this.setBorder(b);
    }
View Full Code Here


            }

            GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
            Graphics2D g = (Graphics2D) ge.createGraphics(bufferedMapImage);
            g.setClip(0, 0, w, h);
            Border border = mb.getBorder();
            mb.setBorder(null);
            mb.paintAll(g);
            mb.setBorder(border);

            oX = x;
View Full Code Here

                "Available Drop Targets:");

        titledBorder.setTitleColor(Color.gray);
        popup.setBorder(titledBorder);

        Border compoundborder = BorderFactory.createCompoundBorder(BorderFactory.createEtchedBorder(),
                BorderFactory.createEmptyBorder(2, 2, 2, 2));

        //
        // Check whether the dropped object is of type Location
        // (has exact x and y coordinates).
View Full Code Here

        comp.setTitle(getTITLE(requestor, field, comp.getTitle()));
    }

    public void set(Object requestor, String field, JComponent comp) {
        setTOOLTIP(requestor, field, comp);
        Border b = comp.getBorder();
        if (b instanceof TitledBorder) {
            TitledBorder t = (TitledBorder) b;
            t.setTitle(getTITLE(requestor, field, t.getTitle()));
        }
    }
View Full Code Here

   
      downloadsScrollPane.setPreferredSize(new Dimension(100,200));
    uploadsScrollPane.setPreferredSize(new Dimension(10,10));
   
    downloads_titled_border = javax.swing.BorderFactory.createTitledBorder("Downloads");
    Border border = BorderFactory.createLineBorder(Color.GRAY);
    downloads_titled_border.setBorder(border);
    downloads_titled_border.setTitleFont(new java.awt.Font("Dialog", 0, 12));
    //downloadsScrollPane.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Downloads", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 11), java.awt.Color.gray));
   
    downloadsScrollPane.setBorder(downloads_titled_border);
View Full Code Here

    }
    dialog = new JDialog( parent, resources.getString("dataSourceInformation"), false);
    Container contentPane = dialog.getContentPane();

    JPanel p  = new JPanel();
    Border paneEdge = BorderFactory.createEmptyBorder(0,10,10,10);
    p.setBorder(paneEdge);
    p.setLayout(new BoxLayout(p,BoxLayout.Y_AXIS));

    p.add(dsi);   
   
View Full Code Here

    private void setUpControlComponent() {
        JLabel timeLabel = new JLabel("Media Time:", JLabel.RIGHT);
        JPanel mainPanel = new JPanel();
        int GAP = 10;

        Border emptyBorder  = new EmptyBorder(GAP,GAP,GAP,GAP);

        Border etchedBorder = new CompoundBorder(
            new EtchedBorder(), emptyBorder);

        Border titledBorder = new TitledBorder(
            etchedBorder, "Time Display Control");

        mainPanel.setBorder(titledBorder);
        mainPanel.setLayout( new BorderLayout(GAP, GAP) );
        mainPanel.add(timeLabel, BorderLayout.CENTER);
View Full Code Here

    private void setUpControlComponent() {
        JLabel rateLabel = new JLabel("Rate:", JLabel.RIGHT);
        JPanel mainPanel = new JPanel();
        int GAP = 10;

        Border emptyBorder  = new EmptyBorder(GAP,GAP,GAP,GAP);

        Border etchedBorder = new CompoundBorder(
            new EtchedBorder(), emptyBorder);

        Border titledBorder = new TitledBorder(
            etchedBorder, "Rate Control");

        mainPanel.setBorder(titledBorder);
        mainPanel.setLayout( new BorderLayout(GAP, GAP) );
        mainPanel.add(rateLabel, BorderLayout.CENTER);
View Full Code Here

    private void setUpControlComponent() {
        JLabel timeLabel = new JLabel("Media Time:", JLabel.RIGHT);
        JPanel mainPanel = new JPanel();
        int GAP = 10;

        Border emptyBorder  = new EmptyBorder(GAP,GAP,GAP,GAP);

        Border etchedBorder = new CompoundBorder(
            new EtchedBorder(), emptyBorder);

        Border titledBorder = new TitledBorder(
            etchedBorder, "Time Display Control");

        mainPanel.setBorder(titledBorder);
        mainPanel.setLayout( new BorderLayout(GAP, GAP) );
        mainPanel.add(timeLabel, BorderLayout.CENTER);
View Full Code Here

      }
    }
  }

  private void setBorder(JComponent source, AWTEvent event) {
    Border border = source.getBorder();
    switch (event.getID())
    {
    case MouseEvent.MOUSE_ENTERED:
      if (border != null)
      {
View Full Code Here

TOP

Related Classes of javax.swing.border.Border

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.