Java Code Examples for javax.swing.JTabbedPane#putClientProperty()

The following examples show how to use javax.swing.JTabbedPane#putClientProperty() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BoxTabbedPaneUI.java    From pumpernickel with MIT License 5 votes vote down vote up
protected Data getData(JTabbedPane tabs) {
	Data d = (Data) tabs.getClientProperty(PROPERTY_DATA);
	if (d == null) {
		d = new Data(tabs);
		tabs.putClientProperty(PROPERTY_DATA, d);
	}
	return d;
}
 
Example 2
Source File: SubstanceExtrasCortex.java    From radiance with BSD 3-Clause "New" or "Revised" License 2 votes vote down vote up
/**
 * Sets the tab preview painter to be used for all tabs of the specified tabbed pane.
 * 
 * @param tabbedPane
 *            Tabbed pane.
 * @param tabPreviewPainter
 *            Preview painter to be used for all tabs of the tabbed pane. Can be
 *            <code>null</code>.
 */
public static void setTabPanePreviewPainter(JTabbedPane tabbedPane,
        TabPreviewPainter tabPreviewPainter) {
    tabbedPane.putClientProperty(SubstanceExtrasSynapse.TABBED_PANE_PREVIEW_PAINTER,
            tabPreviewPainter);
}