first commit
This commit is contained in:
commit
b4fa9ed710
13 changed files with 749 additions and 0 deletions
16
CambiaTitoloeIcona.pde
Normal file
16
CambiaTitoloeIcona.pde
Normal file
|
@ -0,0 +1,16 @@
|
|||
PImage fai_iconi;
|
||||
PGraphics fai_icong;
|
||||
String fai_filename;
|
||||
|
||||
void frameAndIcon(String frameText, String iconFilename) {
|
||||
if ( fai_filename == null || !fai_filename.equals(iconFilename) ) {
|
||||
fai_iconi = loadImage(iconFilename);
|
||||
fai_icong = createGraphics(16, 16, JAVA2D);
|
||||
fai_filename = iconFilename;
|
||||
}
|
||||
surface.setTitle( frameText );
|
||||
fai_icong.beginDraw();
|
||||
fai_icong.image( fai_iconi, 0, 0 );
|
||||
fai_icong.endDraw();
|
||||
frame.setIconImage(fai_icong.image);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue