Package javax.swing

Examples of javax.swing.JTabbedPane.revalidate()


      public void run() {
        // Create Tab
        addUIElement("jobs." + jobId, jobPanel);
        JTabbedPane tabs = getUIElement("tabs");
        tabs.addTab(profile.getJob().getClass().getSimpleName(), jobPanel);
        tabs.revalidate();
      }
    });

   
   
View Full Code Here


  protected void removeJobTab(String jobId) {
   
    // Detach Tab
    JTabbedPane tabs = getUIElement("tabs");
    tabs.remove(getUIElement("jobs." + jobId));
    tabs.revalidate();
   
    // Remove UI Elements
    removeUIElement("jobs."+jobId+".progress");
    removeUIElement("jobs."+jobId+".terminate");
    removeUIElement("jobs."+jobId+".closetab");
View Full Code Here

        JTabbedPane tabs = null;

        if (docked instanceof JTabbedPane) {
            tabs = (JTabbedPane) docked;
            addTab(tabs, comp);
            tabs.revalidate();
            tabs.setSelectedIndex(tabs.getTabCount() - 1);
            return true;
        }

        tabs = createTabbedPane();
View Full Code Here

  }

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

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

    final JCheckBox firstHasCloseButton = new JCheckBox("First tab");
View Full Code Here

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

    controls.add(allHaveCloseButton);
View Full Code Here

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

    controls.add(hasPreview);
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.