swing
swingアプリケーションのウィンドウのアイコンを指定する ImageIcon icon = new ImageIcon("icon.png"); frame.setIconImage(icon.getImage()); パスのセパレータは/じゃなくて\じゃないとだめな罠 ImageIcon icon = new ImageIcon("icon\\icon.png"); frame…
swingアプリケーションのウィンドウのアイコンを指定する ImageIcon icon = new ImageIcon("icon.png"); frame.setIconImage(icon.getImage()); パスのセパレータは/じゃなくて\じゃないとだめな罠 ImageIcon icon = new ImageIcon("icon\\icon.png"); frame…