Package javax.swing.plaf

Examples of javax.swing.plaf.TableUI


      this.setSelected(((value != null) && ((Boolean) value)
          .booleanValue()));
      this.setEnabled(table.isEnabled());

      TableUI tableUI = table.getUI();
      if (tableUI instanceof SubstanceTableUI) {
        SubstanceTableUI ui = (SubstanceTableUI) tableUI;

        // Recompute the focus indication to prevent flicker - JTable
        // registers a listener on selection changes and repaints the
View Full Code Here


        assertFalse(propertyChangeController.isChanged());
    }

    public void testGetSetUpdateUI() throws Exception {
        assertTrue(table.getUI() instanceof BasicTableUI);
        TableUI ui = new BasicTableUI();
        table.setUI(ui);
        assertSame(ui, table.getUI());
        table.updateUI();
        assertNotSame(ui, table.getUI());
    }
View Full Code Here

        assertFalse(propertyChangeController.isChanged());
    }

    public void testGetSetUpdateUI() throws Exception {
        assertTrue(table.getUI() instanceof BasicTableUI);
        TableUI ui = new BasicTableUI();
        table.setUI(ui);
        assertSame(ui, table.getUI());
        table.updateUI();
        assertNotSame(ui, table.getUI());
    }
View Full Code Here

      boolean isSelected, boolean hasFocus, int row, int column) {
    if (!SubstanceLookAndFeel.isCurrentLookAndFeel())
      return super.getTableCellRendererComponent(table, value,
          isSelected, hasFocus, row, column);

    TableUI tableUI = table.getUI();
    SubstanceTableUI ui = (SubstanceTableUI) tableUI;

    // Recompute the focus indication to prevent flicker - JTable
    // registers a listener on selection changes and repaints the
    // relevant cell before our listener (in TableUI) gets the
View Full Code Here

      this.setSelected(((value != null) && ((Boolean) value)
          .booleanValue()));
      this.setEnabled(table.isEnabled());

      TableUI tableUI = table.getUI();
      if (tableUI instanceof SubstanceTableUI) {
        SubstanceTableUI ui = (SubstanceTableUI) tableUI;

        // Recompute the focus indication to prevent flicker - JTable
        // registers a listener on selection changes and repaints the
View Full Code Here

      boolean isSelected, boolean hasFocus, int row, int column) {
    if (!SubstanceLookAndFeel.isCurrentLookAndFeel())
      return super.getTableCellRendererComponent(table, value,
          isSelected, hasFocus, row, column);

    TableUI tableUI = table.getUI();
    SubstanceTableUI ui = (SubstanceTableUI) tableUI;

    // Recompute the focus indication to prevent flicker - JTable
    // registers a listener on selection changes and repaints the
    // relevant cell before our listener (in TableUI) gets the
View Full Code Here

      this.setSelected(((value != null) && ((Boolean) value)
          .booleanValue()));
      this.setEnabled(table.isEnabled());

      TableUI tableUI = table.getUI();
      if (tableUI instanceof SubstanceTableUI) {
        SubstanceTableUI ui = (SubstanceTableUI) tableUI;

        // Recompute the focus indication to prevent flicker - JTable
        // registers a listener on selection changes and repaints the
View Full Code Here

TOP

Related Classes of javax.swing.plaf.TableUI

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.