|
package frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JPanel;
import tabbedpane.CloseTabbedPane;
public class MenuHandler implements ActionListener{
private TabFrame frame;
public MenuHandler(TabFrame frame) {
this.frame = frame;
}
public void actionPerformed(ActionEvent arg0) {
CloseTabbedPane tp = frame.getTabbedPane();
tp.addTab("TAB "+(tp.getTabCount()+1)+" ", new JPanel());
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Master of Computer and Information Science: Graduated from American University of Armenia.
Bachelor of Engineering (Management Systems): Graduated from State Engineering University of Armenia.