G4P new windows. How to change the icon in'P2D Mode'?

import g4p_controls.*;
GWindow window;

import javax.swing.JFrame;
import java.awt.Font;
import com.jogamp.newt.opengl.GLWindow;

public void setup() {
size(256, 128);

createWindows();
}

public void draw() {
background(240);
}

public void createWindows() {

window = GWindow.getWindow(this, "설치 사이트", 100, 100, 1500, 800, P2D);
window.setActionOnClose(GWindow.CLOSE_WINDOW);
//JFrame frame = (JFrame) ((processing.awt.PSurfaceAWT.SmoothCanvas) window.getSurface().getNative()).getFrame();
//frame.setIconImage((java.awt.Image) loadImage("icon.png").getNative());    
GLWindow winGL = (GLWindow) window.getSurface().getNative();    
frame.setIconImage((java.awt.Image) loadImage("icon.png").getNative());
window.addDrawHandler(this, "windowDraw");
window.addMouseHandler(this, "windowMouse");

}

G4P new widows. How to change the icon in’P2D Mode’?

I want to change the’processing icon’, but I don’t know how to change it in’P2D Mode’.

Do you know anyone?

-Environment: Processing3.5.3
-Mode: JAVA Mode

I had a look in the GLWindow API but could not find anything about the window icon - sorry.

1 Like

There seems to be no solution.
Thank you for answer.