Package javax.swing.plaf

Examples of javax.swing.plaf.ComponentUI


    /*
     * Class under test for ComponentUI createUI(JComponent)
     */
    public void testCreateUI() {
        ComponentUI ui = BasicRootPaneUI.createUI(rootPane);
        assertTrue(ui != null);
        assertTrue(ui instanceof BasicRootPaneUI);
        ComponentUI ui2 = BasicRootPaneUI.createUI(rootPane);
        assertTrue("stateless", ui == ui2);
    }
View Full Code Here


        assertTrue(frame.isAncestorOf(toolBar));
        assertNull(ui.dragWindow);
    }

    public void testCreateUI() {
        ComponentUI ui1 = BasicToolBarUI.createUI(toolBar);
        assertTrue(ui1 instanceof BasicToolBarUI);
        ComponentUI ui2 = BasicToolBarUI.createUI(toolBar);
        assertNotSame(ui1, ui2);
    }
View Full Code Here

    /*
     * Class under test for ComponentUI createUI(JComponent)
     */
    public void testCreateUI() {
        ComponentUI ui1 = BasicInternalFrameUI.createUI(frame);
        ComponentUI ui2 = BasicInternalFrameUI.createUI(frame);
        assertTrue("not null", ui1 != null);
        assertTrue("statefull", ui1 != ui2);
    }
View Full Code Here

        ui = null;
        label = null;
    }

    public void testCreateUI() throws Exception {
        ComponentUI componentUI = BasicLabelUI.createUI(new JLabel());
        assertTrue(componentUI instanceof BasicLabelUI);
        assertEquals(componentUI, BasicLabelUI.createUI(new JLabel()));
    }
View Full Code Here

    /*
     * Class under test for ComponentUI createUI(JComponent)
     */
    public void testCreateUI() {
        ComponentUI ui = MetalInternalFrameUI.createUI(frame);
        assertTrue("not null", ui != null);
        assertTrue("instanceof MetalInternalFrameUI", ui instanceof MetalInternalFrameUI);
        ComponentUI ui2 = MetalInternalFrameUI.createUI(frame);
        assertTrue("stateful", ui != ui2);
    }
View Full Code Here

    public void testInstallUI() {
        // nothing to test
    }

    public void testCreateUI() {
        ComponentUI ui1 = MetalToolBarUI.createUI(toolBar);
        assertTrue(ui1 instanceof MetalToolBarUI);
        ComponentUI ui2 = MetalToolBarUI.createUI(toolBar);
        assertNotSame(ui1, ui2);
    }
View Full Code Here

    /*
     * Test method for 'javax.swing.plaf.basic.BasicMenuUI.createUI(JComponent)'
     */
    public void testCreateUI() {
        ComponentUI ui1 = BasicMenuUI.createUI(null);
        ComponentUI ui2 = BasicMenuUI.createUI(null);
        assertTrue(ui1 instanceof BasicMenuUI);
        assertNotSame(ui1, ui2);
    }
View Full Code Here

    /*
     * Class under test for ComponentUI createUI(JComponent)
     */
    public void testCreateUI() {
        ComponentUI ui1 = MetalDesktopIconUI.createUI(frame);
        ComponentUI ui2 = MetalDesktopIconUI.createUI(frame);
        assertTrue("not null", ui1 != null);
        assertTrue("statefull", ui1 != ui2);
    }
View Full Code Here

    protected void tearDown() throws Exception {
        super.tearDown();
    }

    public void testCreateUI() {
        ComponentUI ui1 = MetalTextFieldUI.createUI(tf);
        assertTrue(ui1 instanceof MetalTextFieldUI);
        ComponentUI ui2 = MetalTextFieldUI.createUI(tf);
        assertTrue(ui2 instanceof MetalTextFieldUI);
        assertNotSame(ui1, ui2);
    }
View Full Code Here

   */
  public void testCreateUIs() {

    JButton button = new JButton();
    JLabel label = new JLabel();
    ComponentUI buttonUI = UIManager.getUI(button);
    ComponentUI labelUI = UIManager.getUI(label);
    MultiButtonUI multiButtonUI = new MultiButtonUI();
    MultiLabelUI multiLabelUI = new MultiLabelUI();
    LookAndFeel auxLaf = new SyserrLookAndFeel();

    // without auxiliary look and feels createUIs returns UI fron default
View Full Code Here

TOP

Related Classes of javax.swing.plaf.ComponentUI

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.