Package javax.swing.border

Examples of javax.swing.border.EtchedBorder


    .setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
    scrollPane
    .setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
    scrollPane.setPreferredSize(new Dimension(200, getHeight()));

    scrollPane.setBorder(new EtchedBorder());

    albumArtLabel = new JLabel();
    albumArtLabel.setPreferredSize(new Dimension(200, 200));

    albumArtLabel.setBorder(BorderFactory.createEmptyBorder());
View Full Code Here


    table.setFillsViewportHeight(true);
    table.setSelectionBackground(table.getBackground());
    table.setSelectionForeground(new Color(213, 163, 0));
    table.setGridColor(new Color(44, 44, 44));
    table.setShowVerticalLines(false);
    table.setBorder(new EtchedBorder());
    table.setFont(new Font("Calibri", Font.PLAIN, 14));
    table.setName("playlist");

  }
View Full Code Here

    private void jbInit() throws Exception {
        titledBorder1=new TitledBorder("");
        border1=BorderFactory.createCompoundBorder(BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)), BorderFactory.createEmptyBorder(4, 4, 4, 4));
        border2=BorderFactory.createBevelBorder(BevelBorder.LOWERED, Color.white, Color.white, new Color(148, 145, 140), new Color(103, 101, 98));
        titledBorder2=new TitledBorder(new EtchedBorder(EtchedBorder.RAISED, Color.white, new Color(148, 145, 140)), "Processes");
        border3=BorderFactory.createLineBorder(Color.black, 2);
        titledBorder3=new TitledBorder(new EtchedBorder(EtchedBorder.RAISED, Color.white, new Color(148, 145, 140)), "Channel Output");
        this.setSize(400, 400);
        this.setTitle("Partitioner Test :" + channel.getLocalAddress());
        this.addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                this_windowClosing(e);
View Full Code Here

  public RestartDialog(Frame ow, String name, boolean md)
  {
    super(ow, name, md);
    args = new JTextField();
    JPanel north = new JPanel(new BorderLayout());
    north.setBorder(new EtchedBorder());
    north.add(new JLabel("Parameters:"), BorderLayout.WEST);
    north.add(args, BorderLayout.CENTER);

    script = new JTextArea();
    JPanel center = new JPanel(new BorderLayout());
    center.setBorder(new EtchedBorder());
    center.add(new JLabel("Script:"), BorderLayout.WEST);
    center.add(new JScrollPane(script), BorderLayout.CENTER);
   
    JButton ok = new JButton("Ok");
    JButton cancel = new JButton("Cancel");
    JPanel south = new JPanel(new FlowLayout());
    JPanel in = new JPanel(new GridLayout(1, 0, 5, 5));
    in.add(ok);
    in.add(cancel);
   
    south.setBorder(new EtchedBorder());
    south.add(in);
    ok.addActionListener(this);
    cancel.addActionListener(this);
    getContentPane().add(north, BorderLayout.NORTH);
    getContentPane().add(center, BorderLayout.CENTER);
View Full Code Here

    messageHolder.setLayout(new BoxLayout(messageHolder, BoxLayout.PAGE_AXIS));
    messageHolder.setBackground(Color.LIGHT_GRAY);
    messageHolder.addMouseListener(new SelectingUserListener(mainView));
   
    JPanel chatOptionPanel = new JPanel();
    chatOptionPanel.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
    this.add(chatOptionPanel, BorderLayout.SOUTH);
    chatOptionPanel.setLayout(new BorderLayout(0, 0));

    setTextField(new JTextField());
    chatOptionPanel.add(getTextField(), BorderLayout.CENTER);
View Full Code Here

    messageBody.setFont(new Font("Segoe UI", Font.PLAIN, size));

    aMessage.setLayout(new BorderLayout(0, 0));
    aMessage.add(messageSender, BorderLayout.WEST);
    aMessage.add(messageBody, BorderLayout.CENTER);
    aMessage.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
    messageHolder.add(aMessage);
   
   
   
    if (!this.isVisible()){
View Full Code Here

   * @param searchHolder
   *            the searchHolder to set
   */
  public void setSearchHolder(JPanel searchHolder) {
    this.searchHolder = searchHolder;
    searchHolder.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
  }
View Full Code Here

                            }
                        });

                        //======== stringPanel ========
                        {
                            stringPanel.setBorder(new EtchedBorder());
                            stringPanel.setLayout(new FormLayout(
                                    new ColumnSpec[] {
                                            FormFactory.DEFAULT_COLSPEC
                                    },
                                    new RowSpec[] {
                                            FormFactory.DEFAULT_ROWSPEC,
                                            FormFactory.LINE_GAP_ROWSPEC,
                                            FormFactory.DEFAULT_ROWSPEC
                                    }
                            ));

                            //---- singleQuoteRadio ----
                            singleQuoteRadio.setText("Single quotes ( 'sample string' )");
                            singleQuoteRadio.setEnabled(false);
                            stringPanel.add(singleQuoteRadio, cc.xy(1, 1));

                            //---- doubleQuoteRadio ----
                            doubleQuoteRadio.setText("Double quotes ( \"sample string\" )");
                            doubleQuoteRadio.setEnabled(false);
                            doubleQuoteRadio.setSelected(true);
                            stringPanel.add(doubleQuoteRadio, cc.xy(1, 3));
                        }
                        lexRightPanel.add(stringPanel, cc.xy(2, 3));

                        //---- cbCharacters ----
                        cbCharacters.setText("Character");
                        lexRightPanel.add(cbCharacters, cc.xywh(1, 5, 2, 1));

                        //---- cbWhiteSpace ----
                        cbWhiteSpace.setText("White Space");
                        lexRightPanel.add(cbWhiteSpace, cc.xywh(1, 7, 3, 1));

                        //======== wsPanel ========
                        {
                            wsPanel.setBorder(new EtchedBorder());
                            wsPanel.setLayout(new FormLayout(
                                    new ColumnSpec[] {
                                            FormFactory.DEFAULT_COLSPEC
                                    },
                                    new RowSpec[] {
View Full Code Here

  @Override
  public void mouseEntered(MouseEvent e) {
    super.mouseEntered(e);

    if (e.getSource().toString() == "CustomContact") {
      ((CustomContact) e.getSource()).setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
    }
   
    if (m.getSelectedUser() != null) {
      m.getContactListHash().get(m.getSelectedUser().getUsername()).setBorder(new LineBorder(Color.YELLOW));
    }
View Full Code Here

    // =================================================================

    // Note *** did not use JButton because Popup closes when pressed
    protected JLabel createUpdateButton(final int field, final int amount) {
      final JLabel label = new JLabel();
      final Border selectedBorder = new EtchedBorder();
      final Border unselectedBorder = new EmptyBorder(selectedBorder.getBorderInsets(new JLabel()));
      label.setBorder(unselectedBorder);
      label.setForeground(foreground);
      label.addMouseListener(new MouseAdapter() {
        public void mouseReleased(MouseEvent e) {
          calendar.add(field, amount);
View Full Code Here

TOP

Related Classes of javax.swing.border.EtchedBorder

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.