package PbuliClass;
|
import java.awt.Color;
|
|
import javax.swing.BorderFactory;
|
import javax.swing.Icon;
|
import javax.swing.ImageIcon;
|
import javax.swing.JInternalFrame;
|
import ColorAndFont.UIColor;
|
|
public class jinternalFrame extends JInternalFrame {
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 1L;
|
Icon icon;
|
public jinternalFrame() {
|
this.setBounds(175, 0, 850, 500);
|
this.setVisible(true);//ÄÚ²¿´°ÌåÔÊÐí¿É¼û
|
this.setResizable(true);//¿Éµ÷Õû´óС
|
this.setIconifiable(true);//ÔÊÐí×îС»¯
|
this.setMaximizable(true);//ÔÊÐí×î´ó»¯
|
this.setClosable(true);//ÔÊÐí¹Ø±Õ
|
this.setBorder(BorderFactory.createLineBorder(Color.black));//ÉèÖÃÄÚ²¿´°Ìå±ß¿ò
|
this.setBackground(UIColor.getNorth_color());
|
}
|
public JInternalFrame creatTagInDest (String title,String imageAddress) {
|
this.setTitle(title);
|
icon=new ImageIcon(imageAddress);//ͼƬ´óС16*16
|
this.setFrameIcon(icon);//ÉèÖô°Ìåͼ±ê
|
// this.setBorder(BorderFactory.createEmptyBorder()); //È¥µô±ß¿ò
|
|
|
/*-----------------È¥µô±êÌâÀ¸´úÂë-------------------*/
|
//BasicInternalFrameUI ui = (BasicInternalFrameUI)taginFrame.getUI();
|
//ui.setNorthPane(null);
|
/*-----------------È¥µô±êÌâÀ¸´úÂë½áÊø-------------------*/
|
|
return this;
|
|
|
}
|
|
}
|