Package javax.swing.border

Examples of javax.swing.border.TitledBorder


        if (transferData == null || dropLocation == null)
            return;

        JPopupMenu popup = new JPopupMenu();
        TitledBorder titledBorder = BorderFactory.createTitledBorder(BorderFactory.createEmptyBorder(),
                "Available Drop Targets:");

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

        Border compoundborder = BorderFactory.createCompoundBorder(BorderFactory.createEtchedBorder(),
                BorderFactory.createEmptyBorder(2, 2, 2, 2));
View Full Code Here


    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

    protected SplitBorder(Component c, String name) {
      super(new BorderLayout());
      comp = c;
      add(comp);
      TitledBorder b = new TitledBorder(name);
      setBorder(b);
      addMouseListener(SplitTabPane.this);
    }
View Full Code Here

        }
    }

    protected JPanel createMSDataSourceInformationPanel() {
        JPanel _msPanel = new JPanel();
        _msPanel.setBorder(new TitledBorder(resources.getString("dynamicInformation")));
        _msPanel.setLayout(new GridBagLayout());
        GridBagConstraints gbc = new GridBagConstraints();
        gbc.insets = STANDARD_INSETS;
        gbc.gridx = 0;
        gbc.gridy = 0;
View Full Code Here

  }


  protected JPanel createTimeStampedDataSourceInformation(){
    JPanel p=new JPanel();
    p.setBorder(new TitledBorder(resources.getString("dynamicInformation")));
    p.setLayout(new GridBagLayout());
    GridBagConstraints  gbc = new GridBagConstraints();
    gbc.insets = STANDARD_INSETS;
    gbc.gridx = 0;
    gbc.gridy = 0;
View Full Code Here

        add(createStaticInformationPanel(), gbc);
    }

    protected JPanel createStaticInformationPanel() {
        JPanel _globalPanel = new JPanel();
        _globalPanel.setBorder(new TitledBorder(resources.getString("staticInformation")));
        _globalPanel.setLayout(new GridBagLayout());
        // textfileds
        tfName = new JTextField();
        tfId = new JTextField();
        tfUnit = new JTextField();
View Full Code Here

        }
    }

    protected JPanel createMSDataSourceInformationPanel() {
        JPanel _msPanel = new JPanel();
        _msPanel.setBorder(new TitledBorder(resources.getString("dynamicInformation")));
        _msPanel.setLayout(new GridBagLayout());
        GridBagConstraints gbc = new GridBagConstraints();
        gbc.insets = STANDARD_INSETS;
        gbc.gridx = 0;
        gbc.gridy = 0;
View Full Code Here

     myInfoScrollPane.setViewportView(myInfoTable);
     splitPane2.setBottomComponent(myInfoScrollPane);
     serverMessagesScrollPane.setViewportView(serverMessages);
    
     //Set up the border for serverMessagesScrollPane
     TitledBorder serverMessagesScrollPaneBorder =
       javax.swing.BorderFactory.createTitledBorder(
           border,
           "Server messages",
           javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
           javax.swing.border.TitledBorder.DEFAULT_POSITION,
View Full Code Here

    GridBagConstraints con = new GridBagConstraints() ;
    con.weightx = 0 ;
    con.insets = new Insets( 5, 10, 0, 10 ) ;
    con.fill = GridBagConstraints.HORIZONTAL ;

    TitledBorder border = new TitledBorder( BorderFactory.createLineBorder(
        new Color( 153, 153, 153 ), 2 ),
                                            Globals.lang( "Options" ) ) ;
    buttons.setBorder( border ) ;
    buttons.setLayout( gbl ) ;
View Full Code Here

    GridBagConstraints con = new GridBagConstraints() ;
    con.weightx = 0 ;
    con.insets = new Insets( 5, 10, 0, 10 ) ;
    con.fill = GridBagConstraints.HORIZONTAL ;

    TitledBorder titledBorder1 = new TitledBorder(
        BorderFactory.createLineBorder(
            new Color( 153, 153, 153 ), 2 ),
        Globals.lang( "Results" ) ) ;

    statusPanel.setLayout( gbl ) ;
View Full Code Here

TOP

Related Classes of javax.swing.border.TitledBorder

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.