Package javax.swing

Examples of javax.swing.JTabbedPane.repaint()


  class ChangeHandler implements ChangeListener {   
    public void stateChanged(ChangeEvent e) {
      JTabbedPane tabPane = (JTabbedPane)e.getSource();
      tabPane.revalidate();
      tabPane.repaint();
    }
  }
 
  class PropertyChangeHandler implements PropertyChangeListener {
    public void propertyChange(PropertyChangeEvent e) {
View Full Code Here


        // based on the checkbox selection, mark the first tab component
        // to have modified contents
        ((JComponent) comp).putClientProperty(
            SubstanceLookAndFeel.WINDOW_MODIFIED, firstTabModified
                .isSelected() ? Boolean.TRUE : null);
        jtp.repaint();
      }
    });

    final JCheckBox animationOnCloseButton = new JCheckBox(
        "Animation on close button");
View Full Code Here

        jtp
            .putClientProperty(
                SubstanceLookAndFeel.TABBED_PANE_CLOSE_BUTTONS_MODIFIED_ANIMATION,
                animationOnCloseButton.isSelected() ? Boolean.TRUE
                    : null);
        jtp.repaint();
      }
    });

    controls.add(firstTabModified);
    controls.add(animationOnCloseButton);
View Full Code Here

            .putClientProperty(
                SubstanceLookAndFeel.TABBED_PANE_CLOSE_BUTTONS_PROPERTY,
                allHaveCloseButton.isSelected() ? Boolean.TRUE
                    : null);
        jtp.revalidate();
        jtp.repaint();
      }
    });

    final JCheckBox firstHasCloseButton = new JCheckBox("First tab");
    firstHasCloseButton.addActionListener(new ActionListener() {
View Full Code Here

            .putClientProperty(
                SubstanceLookAndFeel.TABBED_PANE_CLOSE_BUTTONS_PROPERTY,
                firstHasCloseButton.isSelected() ? Boolean.TRUE
                    : null);
        jtp.revalidate();
        jtp.repaint();
      }
    });

    controls.add(allHaveCloseButton);
    controls.add(firstHasCloseButton);
View Full Code Here

            .getSelectedItem();
        jtp.putClientProperty(
            SubstanceLookAndFeel.TABBED_PANE_CONTENT_BORDER_KIND,
            contentBorderKind);
        jtp.updateUI();
        jtp.repaint();
      }
    });

    controls.add(new JLabel("Content border kind"));
    controls.add(contentBorderCombo);
View Full Code Here

            .putClientProperty(
                LafWidget.TABBED_PANE_PREVIEW_PAINTER,
                hasPreview.isSelected() ? new DefaultTabPreviewPainter()
                    : null);
        jtp.revalidate();
        jtp.repaint();
      }
    });

    controls.add(hasPreview);
    this.add(controls, BorderLayout.SOUTH);
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.