Application Icon: Replace the Coffee Cup!
 
This shows you how to integrate a logo into your application, where normally the JAVA Coffe Cup icon is located.

Here is the sample code for a classfile named TestFrame.class which has code to show a frame inside, plus code for the icon:
import java.awt.*;
import javax.swing.*;
public class TestFrame extends Frame
{
 public TestFrame()
 {
 }
 public static void main(String[] args)
 {
 TestFrame frame = new TestFrame();
 frame.show();
 frame.setSize(200,200);

 ImageIcon image = new ImageIcon("icon.gif");
 frame.setIconImage(image.getImage());
 }
}
 
admin / Dec 09, 2003
   
 
 
Login: 
Pass: 
 
 
     
     
2004 - 2019 / lookass.ch
makememad@lookass.ch