MCPcopy Create free account
hub / github.com/benfry/processing4 / addPanel

Method addPanel

app/src/processing/app/contrib/ManagerTabs.java:121–127  ·  view source on GitHub ↗

Add a panel with a name. @param comp Component that will be shown when this tab is selected @param name Title to appear on the tab itself

(Component comp, String name)

Source from the content-addressed store, hash-verified

119 * @param name Title to appear on the tab itself
120 */
121 public void addPanel(Component comp, String name) {
122 if (tabList.isEmpty()) {
123 currentPanel = comp;
124 }
125 tabList.add(new Tab(comp, name));
126 cardPanel.add(name, comp);
127 }
128
129
130 public void setPanel(Component comp) {

Callers 1

makeFrameMethod · 0.45

Calls 2

isEmptyMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected