Display,a,Splash,screen,java

Tuncay 10/7/2016 0

Display a Splash screen in Java

Java
import java.applet.Applet;
import java.awt.*;

public class MyLabel extends Applet {
   private Font f;
   private Label noLabel, textLabel; 

   public void init()
   {
      f = new Font( "Courier", Font.BOLD, 14 );

      // call label constructor with no text
      noLabel = new Label();

      // call label constructor with a string argument
      textLabel = new Label( "This is read-only text" );

      // set font for text displayed in label
      textLabel.setFont( f );

      // add label components to applet container
      add( noLabel );
      add( textLabel );
   }
}
 

Report Bug

Please Login to Report Bug

Reported Bugs

Comments

Please Login to Comment

Comments