Package javax.swing.border

Examples of javax.swing.border.TitledBorder


    PropertiesManager genProp = owner.getGeneralPropertiesManager();
    if(genProp.getValue("language").equals("fr"))
      french.setSelected(true);
    else
      english.setSelected(true);
    languagePanel.setBorder(new TitledBorder(propertiesMgr.getValue("languageBorder")));

    //Construct proxy panel.
    proxyType = new JComboBox();
    proxyType.addItem("No Proxy");
    proxyType.addItem("HTTP");
    proxyType.addItem("Socks 4");
    proxyType.addItem("Socks 5");
    proxyType.setSelectedIndex(Integer.parseInt(genProp.getValue("proxyType")));
    proxyHost = new JTextField();
    proxyHost.setText(genProp.getValue("proxyHost"));
    proxyPort = new JTextField();
    proxyPort.setText(genProp.getValue("proxyPort"));

    proxyPanel.setLayout(new GridBagLayout());
    c.gridy = 0;
    proxyPanel.add(proxyType, c);
    c.gridy = 1;
    proxyPanel.add(proxyHost, c);
    c.gridy = 2;
    proxyPanel.add(proxyPort, c);
    proxyPanel.setBorder(new TitledBorder(propertiesMgr.getValue("proxyBorder")));

    //Construct option panel
    optionPanel.add(languagePanel);
    optionPanel.add(proxyPanel);
View Full Code Here


        }
       
        // Result Panel
        JPanel resultPanel = new JPanel();
        resultPanel.setLayout(new GridBagLayout());
        resultPanel.setBorder(new TitledBorder("Results"));
       
        JLabel resultNameLabel = new JLabel("Name");
        c = new GridBagConstraints();
        c.insets = new Insets(5, 5, 5, 5);
        resultPanel.add(resultNameLabel, c);
View Full Code Here

  {
    // separator panel
    final JPanel exportTypePanel = new JPanel();
    exportTypePanel.setLayout(new BorderLayout());

    final TitledBorder tb =
        new TitledBorder(getResources().getString(
            "csvexportdialog.exported-bands")); //$NON-NLS-1$
    exportTypePanel.setBorder(tb);

    final JPanel rowTypePanel = new JPanel();
    rowTypePanel.setLayout(new GridLayout(2, 3, 5, 2));
View Full Code Here

    final JPanel exportTypePanel = new JPanel();
    exportTypePanel.setLayout(new GridBagLayout());
    final JLabel lblEncoding = new JLabel(getResources().getString(
        "csvexportdialog.encoding")); //$NON-NLS-1$

    final TitledBorder tb =
        new TitledBorder(getResources().getString(
            "csvexportdialog.export-options")); //$NON-NLS-1$
    exportTypePanel.setBorder(tb);

    GridBagConstraints gbc = new GridBagConstraints();
    gbc.anchor = GridBagConstraints.WEST;
View Full Code Here

  {
    // separator panel
    final JPanel separatorPanel = new JPanel();
    separatorPanel.setLayout(new GridBagLayout());

    final TitledBorder tb =
        new TitledBorder(getResources().getString(
            "csvexportdialog.separatorchar")); //$NON-NLS-1$
    separatorPanel.setBorder(tb);

    rbSeparatorTab = new JRadioButton(getResources().getString(
        "csvexportdialog.separator.tab")); //$NON-NLS-1$
View Full Code Here

    // separator panel
    final JPanel exportTypePanel = new JPanel();
    exportTypePanel.setLayout(new GridBagLayout());
    final JLabel lblEncoding = new JLabel(getResources().getString("csvexportdialog.encoding")); //$NON-NLS-1$

    final TitledBorder tb =
        new TitledBorder(getResources().getString("csvexportdialog.export-options")); //$NON-NLS-1$
    exportTypePanel.setBorder(tb);

    GridBagConstraints gbc = new GridBagConstraints();
    gbc.anchor = GridBagConstraints.WEST;
    gbc.gridx = 0;
View Full Code Here

  {
    // separator panel
    final JPanel separatorPanel = new JPanel();
    separatorPanel.setLayout(new GridBagLayout());

    final TitledBorder tb =
        new TitledBorder(getResources().getString(
            "csvexportdialog.separatorchar")); //$NON-NLS-1$
    separatorPanel.setBorder(tb);

    GridBagConstraints gbc = new GridBagConstraints();
    gbc.anchor = GridBagConstraints.WEST;
View Full Code Here

  {
    // separator panel
    final JPanel separatorPanel = new JPanel();
    separatorPanel.setLayout(new GridBagLayout());

    final TitledBorder tb =
        new TitledBorder(resources.getString("csvdemodialog.separatorchar"));
    separatorPanel.setBorder(tb);

    rbSeparatorTab = new JRadioButton(resources.getString("csvdemodialog.separator.tab"));
    rbSeparatorColon = new JRadioButton(resources.getString("csvdemodialog.separator.colon"));
    rbSeparatorSemicolon = new JRadioButton(resources.getString("csvdemodialog.separator.semicolon"));
View Full Code Here

        return comboBox;
    }
   
    public static final TitledBorder getSelectionBorder() {
        TitledBorder border = new DcTitledBorder(BorderFactory.createLineBorder(DcSettings.getColor(DcRepository.Settings.stSelectionColor), 1), "");
        border.setTitleFont(getSystemFont());
        return border;
    }
View Full Code Here

        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

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.