Package javax.swing.border

Examples of javax.swing.border.SoftBevelBorder


   
    panelLeft = new JPanel();
    panelLeft.addMouseListener(new MouseAdapter() {
        public void mouseClicked(MouseEvent e)
        {
          panelRight.setBorder(new SoftBevelBorder(BevelBorder.RAISED, null, null, null, null));
          panelLeft.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));
          repaint(); isServer = !isServer;
        }
        public void mouseEntered(MouseEvent e)
        { setCursor(new Cursor(Cursor.HAND_CURSOR)); }
        public void mouseExited(MouseEvent e)
        { setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); }
      });
    panelLeft.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));
    add(panelLeft, "1, 1, fill, fill");

    panelRight = new JPanel();
    panelRight.addMouseListener(new MouseAdapter() {
        public void mouseClicked(MouseEvent e)
        {
          panelLeft.setBorder(new SoftBevelBorder(BevelBorder.RAISED, null, null, null, null));
          panelRight.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));
          repaint(); isServer = !isServer;
        }
        public void mouseEntered(MouseEvent e)
        { setCursor(new Cursor(Cursor.HAND_CURSOR)); }
        public void mouseExited(MouseEvent e)
        { setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); }
      });
    panelRight.setBorder(new SoftBevelBorder(BevelBorder.RAISED, null, null, null, null));
    add(panelRight, "2, 1, fill, fill");

  }
View Full Code Here


    callbackInterface = owner;
    panelLeft = new JPanel();
    panelLeft.addMouseListener(new MouseAdapter() {
        public void mouseClicked(MouseEvent e)
        {
          panelRight.setBorder(new SoftBevelBorder(BevelBorder.RAISED, null, null, null, null));
          panelLeft.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));
          repaint(); isServer = !isServer;
          callbackInterface.serverClicked();
        }
        public void mouseEntered(MouseEvent e)
        { setCursor(new Cursor(Cursor.HAND_CURSOR)); }
        public void mouseExited(MouseEvent e)
        { setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); }
      });
    panelLeft.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));
    add(panelLeft, "1, 1, fill, fill");

    panelRight = new JPanel();
    panelRight.addMouseListener(new MouseAdapter() {
        public void mouseClicked(MouseEvent e)
        {
          panelLeft.setBorder(new SoftBevelBorder(BevelBorder.RAISED, null, null, null, null));
          panelRight.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));
          repaint(); isServer = !isServer;
          callbackInterface.clientClicked();
        }
        public void mouseEntered(MouseEvent e)
        { setCursor(new Cursor(Cursor.HAND_CURSOR)); }
        public void mouseExited(MouseEvent e)
        { setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); }
      });
    panelRight.setBorder(new SoftBevelBorder(BevelBorder.RAISED, null, null, null, null));
    add(panelRight, "2, 1, fill, fill");

  }
View Full Code Here

TOP

Related Classes of javax.swing.border.SoftBevelBorder

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.