Examples of TitledBorder


Examples of javax.swing.border.TitledBorder

        border.setTitleFont(getSystemFont());
        return border;
    }

    public static final TitledBorder getTitleBorder(String title) {
        TitledBorder border = new DcTitledBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY, 1), title);
        border.setTitleFont(getSystemFont());
        return border;
    }
View Full Code Here

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

Examples of javax.swing.border.TitledBorder

    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

Examples of javax.swing.border.TitledBorder

    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

Examples of javax.swing.border.TitledBorder

        }
    }

    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

Examples of javax.swing.border.TitledBorder

  }


  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

Examples of javax.swing.border.TitledBorder

        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

Examples of javax.swing.border.TitledBorder

        }
    }

    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

Examples of javax.swing.border.TitledBorder

     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

Examples of javax.swing.border.TitledBorder

    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
TOP
Copyright © 2018 www.massapi.com. 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.