Package javax.swing.border

Examples of javax.swing.border.EtchedBorder


                        GridBagConstraints.NORTHWEST, stretch, new Insets( 5, 5, 5, 5), 0, 0));
                }
                y++;
            }
        }
        this.setBorder(new EtchedBorder());
        this.setVisible(false);
    }   
View Full Code Here


        getContentPane().setLayout(Layout.getGBL());
        tree = new DcTree(buildTreeModel());
        tree.setFont(ComponentFactory.getSystemFont());
        tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
        tree.addTreeSelectionListener(new NodeSelectedAction());
        tree.setBorder(new EtchedBorder());

        tree.setPreferredSize(new Dimension(300, 420));
        tree.setMinimumSize(new Dimension(300, 420));
        tree.setMaximumSize(new Dimension(300, 420));
View Full Code Here

        infoText.setEditable(false);
        infoText.setPreferredSize( new Dimension(220, 60));
        infoText.setMinimumSize( new Dimension(180, 50));
        infoText.setPage(infoURL);
        infoText.setBackground(GUIGlobals.infoField);
        infoText.setBorder(new EtchedBorder(EtchedBorder.LOWERED));
//        bottomPanel.add( infoText, BorderLayout.CENTER ) ;
      }
      catch (IOException e)
      {
        infoText = null ;
View Full Code Here

                infoText.setEditable(false);
                infoText.setPreferredSize(new Dimension(240, 50));
                infoText.setMinimumSize(new Dimension(180, 50));
                infoText.setPage(infoURL);
                infoText.setBackground(GUIGlobals.infoField);
                infoText.setBorder(new EtchedBorder(EtchedBorder.LOWERED));

                // content
                back = new JPanel();
                back.setLayout(new BorderLayout());
                back.add(infoText, BorderLayout.PAGE_START);
View Full Code Here

        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);
View Full Code Here

  gbc.fill= GridBagConstraints.BOTH;
  gbc.insets= new Insets( 10, 5, 0, 0);
  ((GridBagLayout)p.getLayout()).setConstraints( p1, gbc);
  p.add( p1);

  TitledBorder titledBorder= new TitledBorder( new EtchedBorder(), "Targets");

  p.setBorder( titledBorder);

  if( targets.size() > 0) {
      removeTarget.setEnabled( true);
View Full Code Here

            String host= InetAddress.getLocalHost().getHostAddress()
      tf_local_host.setText( host);
  } catch( UnknownHostException e) {
  }
 
  TitledBorder titledBorder= new TitledBorder( new EtchedBorder(), "Local Host");

  p.setBorder( titledBorder);
 
  return p;
    }
View Full Code Here

        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);
View Full Code Here

  gbc.fill = GridBagConstraints.NONE;
  gbc.insets = new Insets( 5,5,10,5);
  ((GridBagLayout)p.getLayout()).setConstraints( startXmit, gbc);
  p.add( startXmit);
 
  TitledBorder titledBorder= new TitledBorder( new EtchedBorder(), "Source");

  p.setBorder( titledBorder);
 
  return p;
   
View Full Code Here

  gbc.fill= GridBagConstraints.BOTH;
  gbc.insets= new Insets( 10, 5, 0, 0);
  ((GridBagLayout)p.getLayout()).setConstraints( p1, gbc);
  p.add( p1);

  TitledBorder titledBorder= new TitledBorder( new EtchedBorder(), "Targets");

  p.setBorder( titledBorder);
 
  return p;
    }
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.