本文整理了Java中javax.swing.JTabbedPane.removeAll()
方法的一些代码示例,展示了JTabbedPane.removeAll()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTabbedPane.removeAll()
方法的具体详情如下:
包路径:javax.swing.JTabbedPane
类名称:JTabbedPane
方法名:removeAll
暂无
代码示例来源:origin: groovy/groovy-core
/**
* Removes all elements from the JTabbedPane.
*
* @param self a JTabbedPane
* @since 1.6.4
*/
public static void clear(JTabbedPane self) {
self.removeAll();
}
代码示例来源:origin: apache/pdfbox
@Override
public void actionPerformed(ActionEvent actionEvent)
{
if (actionEvent.getActionCommand().equals("comboBoxChanged"))
{
JComboBox comboBox = (JComboBox) actionEvent.getSource();
String currentFilter = (String) comboBox.getSelectedItem();
try
{
if (currentFilter.equals(Stream.IMAGE))
{
requestImageShowing();
tabbedPane.removeAll();
tabbedPane.add("Image view", view.getStreamPanel());
return;
}
tabbedPane.removeAll();
tabbedPane.add("Text view", view.getStreamPanel());
tabbedPane.add("Hex view", hexView.getPane());
requestStreamText(currentFilter);
}
catch (IOException e)
{
e.printStackTrace();
}
}
}
代码示例来源:origin: ron190/jsql-injection
private void initErrorTabs() {
SqlEngine.TAB_ERROR.removeAll();
代码示例来源:origin: org.codehaus.groovy/groovy-jdk14
/**
* Removes all elements from the JTabbedPane.
*
* @param self a JTabbedPane
* @since 1.6.4
*/
public static void clear(JTabbedPane self) {
self.removeAll();
}
代码示例来源:origin: org.appdapter/org.appdapter.lib.gui
@Override public boolean clearChildren() {
synchronized (lock) {
tabs.removeAll();
return true;
}
}
代码示例来源:origin: org.codehaus.groovy/groovy-swing
/**
* Removes all elements from the JTabbedPane.
*
* @param self a JTabbedPane
* @since 1.6.4
*/
public static void clear(JTabbedPane self) {
self.removeAll();
}
代码示例来源:origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm
/**
* Removes all elements from the JTabbedPane.
*
* @param self a JTabbedPane
* @since 1.6.4
*/
public static void clear(JTabbedPane self) {
self.removeAll();
}
代码示例来源:origin: axis/axis
/**
* Del all pages to the notebook
*/
private void delPage() {
tabbed_pane.removeAll();
pages.removeAllElements();
}
代码示例来源:origin: org.apache.axis/axis
/**
* Del all pages to the notebook
*/
private void delPage() {
tabbed_pane.removeAll();
pages.removeAllElements();
}
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
/**
* Del all pages to the notebook
*/
private void delPage() {
tabbed_pane.removeAll();
pages.removeAllElements();
}
代码示例来源:origin: cmu-phil/tetrad
@Override
public void actionPerformed(ActionEvent e) {
wrapper.execute();
tabbedPane.removeAll();
tabbedPane.add("Variables", listEditor());
tabbedPane.add("Graph", graphicalEditor());
tabbedPane.add("Report", estimationReport());
}
});
代码示例来源:origin: cytoscape/application
/**
* Removes all the components from the CytoPanel.
*/
public void removeAll() {
// remove all tabs and components from JTabbedPane
tabbedPane.removeAll();
// send out a notification
notifyListeners(NOTIFICATION_COMPONENT_REMOVED);
}
代码示例来源:origin: org.cytoscape/swing-application-impl
/**
* Removes all the components from the CytoPanel.
*/
@Override
public void removeAll() {
// remove all tabs and components from JTabbedPane
tabbedPane.removeAll();
componentsById.clear();
// send out a notification
notifyListeners(NOTIFICATION_COMPONENT_REMOVED);
}
代码示例来源:origin: org.codehaus.mevenide/lifecycle-build-plan
@Override
protected void componentClosed() {
tabpane.removeAll();
removeAll();
}
代码示例来源:origin: xyz.cofe/docking-frames-core
@Override
public void removeAll(){
for( Tab tab : dockables ){
tab.setController( null );
tabDisabling.remove( tab.getDockable() );
}
super.removeAll();
dockables.clear();
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = CLEAR_JSDOC)
@Override
public void clear() {
super.removeAll();
super.revalidate();
super.repaint();
}
代码示例来源:origin: pentaho/pentaho-reporting
public void removeAllColorChooserPanels() {
final int count = getColorChooserPanelCount();
for ( int i = 0; i < count; i++ ) {
getColorChooserPanel( i ).uninstallChooserPanel();
}
multiSelectorPane.removeAll();
}
代码示例来源:origin: com.github.yannrichet/JMathPlot
private void setPanel() {
panels.removeAll();
for (Plot plot : plotCanvas.getPlots()) {
panels.add(plot.getDataPanel(plotCanvas), plot.getName());
}
pack();
}
代码示例来源:origin: yannrichet/jmathplot
private void setPanel() {
panels.removeAll();
for (Plot plot : plotCanvas.getPlots()) {
panels.add(plot.getDataPanel(plotCanvas), plot.getName());
}
pack();
}
代码示例来源:origin: MarginallyClever/Makelangelo-software
private void rebuildTabbedPanes() {
panes.removeAll();
panelAdjustMachine = new PanelAdjustMachine(robot);
panes.addTab(Translator.get("MenuSettingsMachine"),panelAdjustMachine);
panelAdjustPaper = new PanelAdjustPaper(robot);
panes.addTab(Translator.get("MenuAdjustPaper"),panelAdjustPaper);
panelAdjustPen = new PanelAdjustPen(robot);
panes.addTab(Translator.get("MenuAdjustTool"),panelAdjustPen);
}
内容来源于网络,如有侵权,请联系作者删除!