zsh_root
2024-01-02 7b595546af704983dbafcd0d385c8768ddacefc2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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;    
        
        
    }
 
}