Java JFrameアイコンとマウスアイコンの変更


ZhuanHuan frame = new ZhuanHuan();
 frame.setSize(600,500);                                                                   Toolkit kit = Toolkit.getDefaultToolkit();//    
 Dimension screenSize = kit.getScreenSize();
 frame.setLocation(((screenSize.width-600)/2), ((screenSize.height-500)/2));

 rame.setTitle("    ,    ——  antkingwei");
            
 Image image=kit.createImage("res/a2.png"); 
frame.setIconImage(image);//       
Toolkit kit = Toolkit.getDefaultToolkit();
Image img=kit.getImage("res/b7.png");
Cursor cu=kit.createCustomCursor(img,new Point(20,5),"stick");
frame.setCursor(cu);//