|
package tabbedpane;
import java.awt.Graphics;
import javax.swing.*;
public class CloseTabbedPane extends JTabbedPane{
private TabCloseUI closeUI;
public CloseTabbedPane(){
addTab("TAB 1 ", new JPanel());
closeUI = new TabCloseUI();
closeUI.setTabbedPane(this);
addMouseMotionListener(closeUI);
addMouseListener(closeUI);
}
public void paint(Graphics g){
super.paint(g);
closeUI.paint(g);
}
}
|
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.