Package javax.swing.border

Examples of javax.swing.border.TitledBorder


      WidgetUtils.addToGridBag(propertyWidget.getWidget(), this, 1, i, 1, 2, GridBagConstraints.NORTHWEST, 4);
      i = i + 2;
    }

    final DCPanel outcomePanel = new DCPanel();
    outcomePanel.setBorder(new TitledBorder("Outcomes"));

    final Set<String> categoryNames = _descriptor.getOutcomeCategoryNames();
    for (final String categoryName : categoryNames) {
      final JButton outcomeButton = new JButton(categoryName, imageManager.getImageIcon(
          "images/component-types/filter-outcome.png", IconUtils.ICON_SIZE_SMALL));
View Full Code Here


    setPreferredSize(new Dimension(width, height));
    return this;
  }

  public DCPanel setTitledBorder(String title) {
    setBorder(new TitledBorder(title));
    return this;
  }
View Full Code Here

    // private final static String VP_OPTIONAL = ""
     
    // private Font h1,h2;
   
    public VariabilityManager () {
        templateBorder = new TitledBorder ("");
        defaultFont = templateBorder.getTitleFont();
        rendererFont1 = defaultFont.deriveFont(defaultFont.getStyle(), defaultFont.getSize() + 6);
        rendererFont2 = defaultFont.deriveFont(defaultFont.getStyle(), defaultFont.getSize() + 4);
        idManager.clear();
    classPanels.clear();
View Full Code Here

        modelRoot = rootelement;
        setLayout(new BorderLayout ());       
        NodeList packages = rootelement.getElementsByTagName("package");
        if (packages.getLength() > 0) {
            JPanel pPanel = handlePackage((Element)packages.item(0), true);
            TitledBorder border = new TitledBorder("ProductLine " + ((Element)packages.item(0)).getAttribute("name"));           
            Font f1 = defaultFont.deriveFont(defaultFont.getStyle(), defaultFont.getSize() + 10);           
            border.setTitleFont(f1);
            pPanel.setBorder(border);
            add(new JScrollPane(pPanel), BorderLayout.CENTER);           
        }
       
View Full Code Here

        this.pack();
    }

    private JPanel createDirectionsPanel() {
        JPanel directionsPanel = new JPanel(new GridLayout(3, 1));
        directionsPanel.setBorder( new TitledBorder("Direction") );

        ButtonGroup group = new ButtonGroup();

        this.forwardRadioButton = new WHRadioButton("Forward");
        this.forwardRadioButton.setSelected(true);
View Full Code Here

        return directionsPanel;
    }

    private JPanel createOptionsPanel() {
        JPanel optionsPanel = new JPanel(new GridLayout(3, 1));
        optionsPanel.setBorder(new TitledBorder("Options"));
        this.caseSensitiveCheckBox = new WHCheckBox("Case sensitive");
        optionsPanel.add(this.caseSensitiveCheckBox);
        this.regularExpressionsCheckBox = new WHCheckBox("Regular expressions");
        optionsPanel.add(this.regularExpressionsCheckBox);
        return optionsPanel;
View Full Code Here

  }

 
  private void createBorders() {   
    debugEtchedBorder = BorderFactory.createEtchedBorder(Color.white, new Color(156, 156, 158));
    debugTitleBorder = new TitledBorder(debugEtchedBorder, "Debug Options");
    debugCompoundBorder = BorderFactory.createCompoundBorder(debugTitleBorder,
        BorderFactory.createEmptyBorder(5, 5, 5, 5));
    debugTitleBorder.setTitleFont(new java.awt.Font("Dialog", 0, 11));
  }
View Full Code Here

    otherPanel.add(otherBox);
  }
 
  private void createBorders() {
    otherEtchedBorder = BorderFactory.createEtchedBorder(Color.white, new Color(156, 156, 158));
    otherTitleBorder = new TitledBorder(otherEtchedBorder, "Other Options");
    otherCompoundBorder = BorderFactory.createCompoundBorder(otherTitleBorder,
        BorderFactory.createEmptyBorder(5, 5, 5, 5))
    otherTitleBorder.setTitleFont(new java.awt.Font("Dialog", 0, 11));
  }
View Full Code Here

    warningComboBoxes.put(javaOptionToSet,warnings);
  }
 
  private void createBorders() {   
    warningsEtchedBorder = BorderFactory.createEtchedBorder(Color.white, new Color(156, 156, 158));
    warningsTitleBorder = new TitledBorder(warningsEtchedBorder, "Warning Options");
    warningsCompoundBorder = BorderFactory.createCompoundBorder(warningsTitleBorder,
        BorderFactory.createEmptyBorder(5, 5, 5, 5));
    warningsTitleBorder.setTitleFont(new java.awt.Font("Dialog", 0, 11));
  }
View Full Code Here

  }

 
  private void createBorders() {
    complianceEtchedBorder = BorderFactory.createEtchedBorder(Color.white, new Color(156, 156, 158));
    complianceTitleBorder = new TitledBorder(complianceEtchedBorder, "Compliance Options");
    complianceCompoundBorder = BorderFactory.createCompoundBorder(complianceTitleBorder,
        BorderFactory.createEmptyBorder(5, 5, 5, 5));
    complianceTitleBorder.setTitleFont(new java.awt.Font("Dialog", 0, 11));
  }
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.