Package javax.swing.border

Examples of javax.swing.border.Border


     * @return Regexp task pane
     */
    private JPanel createRegexpTasksPanel() {
        JPanel regexpActionPanel = new JPanel();
        regexpActionPanel.setLayout(new BoxLayout(regexpActionPanel, BoxLayout.X_AXIS));
        Border margin = new EmptyBorder(5, 5, 0, 5);
        regexpActionPanel.setBorder(margin);
        regexpField = new JLabeledTextField(JMeterUtils.getResString("regexp_tester_field")); // $NON-NLS-1$
        regexpActionPanel.add(regexpField, BorderLayout.WEST);

        JButton regexpTester = new JButton(JMeterUtils.getResString("regexp_tester_button_test")); // $NON-NLS-1$
View Full Code Here


        this.setLayout(new BorderLayout());

        // MAIN PANEL
        JPanel mainPanel = new JPanel();
        Border margin = new EmptyBorder(10, 10, 5, 10);

        mainPanel.setBorder(margin);
        mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));

        // TITLE
View Full Code Here

        this.setLayout(new BorderLayout());

        // MAIN PANEL
        JPanel mainPanel = new JPanel();
        Border margin = new EmptyBorder(10, 10, 5, 10);

        mainPanel.setBorder(margin);
        mainPanel.setLayout(new VerticalLayout(5, VerticalLayout.BOTH));

        // NAME
View Full Code Here

     */
    private void init() {
        this.setLayout(new BorderLayout());

        // MAIN PANEL
        Border margin = new EmptyBorder(10, 10, 5, 10);
        this.setBorder(margin);

        // Add the main panel and the graph
        this.add(this.makeTitlePanel(), BorderLayout.NORTH);
        this.createTabs();
View Full Code Here

                JMeterUtils.getResString("webservice_configuration_wizard"))); // $NON-NLS-1$

        // Button for browsing webservice wsdl
        JPanel wsdlEntry = new JPanel();
        wsdlEntry.setLayout(new BoxLayout(wsdlEntry, BoxLayout.X_AXIS));
        Border margin = new EmptyBorder(0, 5, 0, 5);
        wsdlEntry.setBorder(margin);
        wsdlHelper.add(wsdlEntry);
        wsdlEntry.add(wsdlField);
        wsdlEntry.add(wsdlButton);
        wsdlButton.addActionListener(this);
View Full Code Here

    public static final Color SEPARATOR = new Color(0xB5B5B5);

  public static void apply(Component cmp) {
    if (cmp instanceof JComponent) {
      JComponent c = (JComponent) cmp;
      Border border = c.getBorder();
      if (border != null && border instanceof GroupBorder) {
        Font font = c.getFont();
        c.setFont(new Font(font.getFamily(), Font.BOLD, font.getSize()));
        c.setBackground(MAIN_ALT_BACKGROUND);
        c.setForeground(MAIN_ALT_FOREGROUND);
View Full Code Here

  /**
   * Tests the BorderConverter
   */
  public void testBorderConverter() {
    TestCase.assertNotNull("JPanel pnl auto bound through Swixml", pnl);
    Border border = pnl.getBorder();
    TestCase.assertNotNull("panel elem. has a border attribute def. in the XML Descriptor", border);
    TestCase.assertTrue("XML Descriptor declared a TitledBorder for this Panel", border.getClass().isAssignableFrom(TitledBorder.class));
    TitledBorder tb = (TitledBorder) border;
    TestCase.assertEquals("Title like set in XML", "myTitle", tb.getTitle());
    TestCase.assertEquals("Title Font like set in XML", Font.decode("VERDANA-BOLD-18"), tb.getTitleFont());
    TestCase.assertEquals("Title Justification like set in XML", TitledBorder.CENTER, tb.getTitleJustification());
    TestCase.assertEquals("Title Position like set in XML", TitledBorder.BELOW_BOTTOM, tb.getTitlePosition());
View Full Code Here

    private JCheckBox active;

    ThumbnailUpdater(final JTree tree) {
        super(BoxLayout.Y_AXIS);

        Border border = BorderFactory.createLineBorder(Color.gray);
        setBorder(border);

        active = new JCheckBox("Thumbnail");
        active.addItemListener(
            new ItemListener() {
View Full Code Here

    private JCheckBox active;

    PreviewUpdater(final JTree tree) {
        super(BoxLayout.Y_AXIS);

        Border border = BorderFactory.createLineBorder(Color.gray);
        setBorder(border);

        active = new JCheckBox("Preview");
        active.addItemListener(
            new ItemListener() {
View Full Code Here

            c.setForeground(foreground);
        }
    }

    public static void installBorder(JComponent c, Border defaultBorder) {
        Border border = c.getBorder();
        if (border == null || border instanceof UIResource) {
            c.setBorder(defaultBorder);
        }
    }
View Full Code Here

TOP

Related Classes of javax.swing.border.Border

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.