Skip to content

Commit 9e092d7

Browse files
committed
Update ToM_ui.groovy
method closeTab
1 parent a51cb0c commit 9e092d7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Tutorial-o-Matic/src/main/groovy/ToM_ui.groovy

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ class ToM_ui{
270270
constraints : WEST,
271271
margin : new Insets(10,15,10,15),
272272
toolTipText : closeToolTip,
273-
actionPerformed : {TabPane.removeTab(tabName)},
273+
actionPerformed : {closeTab(tabName)},
274274
)
275275
if(tocButtonAction && nextButtonAction){
276276
button(
@@ -295,6 +295,10 @@ class ToM_ui{
295295
return panel
296296
}
297297

298+
def static closeTab(tabName) {
299+
TabPane.removeTab(tabName)
300+
}
301+
298302

299303
def static getNextButtonPanel(myP){
300304
return myP.components.find{it.name == myNextPanelName}

0 commit comments

Comments
 (0)