SOUTH AFRICA'S TV WEBSITE
SIGN IN SEARCH MENU
SOUTH AFRICA'S TV WEBSITE


poeple backgrounds

Written by fistosndw from the blog confess on 19 Aug 2011
Favourite this post


 waiting for the great time is wat we dont have to be scared of ,people can say whatever they want to say but make sure that u dont stay away from your dream,because the problem that we make is that we dont design our dream we awnt to apply it where is we not ready for  implimentation,god says "uyisihlangu sethu soku phephela"so we must not fear and rush things because easy come easy go



2 Comments

fistosndw
07 Sep 2011 13:35

package misc;

/*
* SplashDemo.java
*
*/

import java.awt.*;
import java.awt.event.*;

public class SplashDemo extends Frame implements ActionListener {
static void renderSplashFrame(Graphics2D g, int frame) {
final String[] comps = {"foo", "bar", "baz"};
g.setComposite(AlphaComposite.Clear);
g.fillRect(120,140,200,40);
g.setPaintMode();
g.setColor(Color.BLACK);
g.drawString("Loading "+comps[(frame/5)%3]+"...", 120, 150);
}
public SplashDemo() {
super("SplashScreen demo");
setSize(300, 200);
setLayout(new BorderLayout());
Menu m1 = new Menu("File");
MenuItem mi1 = new MenuItem("Exit");
m1.add(mi1);
mi1.addActionListener(this);
this.addWindowListener(closeWindow);

MenuBar mb = new MenuBar();
setMenuBar(mb);
mb.add(m1);
final SplashScreen splash = SplashScreen.getSplashScreen();
if (splash == null) {
System.out.println("SplashScreen.getSplashScreen() returned null");
return;
}
Graphics2D g = splash.createGraphics();
if (g == null) {
System.out.println("g is null");
return;
}
for(int i=0; i<100; i++) {
renderSplashFrame(g, i);
splash.update();
try {
Thread.sleep(90);
}
catch(InterruptedException e) {
}
}
splash.close();
setVisible(true);
toFront();
}
public void actionPerformed(ActionEvent ae) {
System.exit(0);
}

private static WindowListener closeWindow = new WindowAdapter(){
public void windowClosing(WindowEvent e){
e.getWindow().dispose();
}
};

public static void main (String args[]) {
SplashDemo test = new SplashDemo();
}
}



image
...
final SplashScreen splash = SplashScreen.getSplashScreen();
if (splash == null) {
System.out.println("SplashScreen.getSplashScreen() returned null");
return;
}
Graphics2D g = splash.createGraphics();
if (g == null) {
System.out.println("g is null");
return;
}
...

zam.ngcobo
07 Sep 2011 13:47

Hmmmmmm short and sweet Sfiso !


Only TVSA members can reply to this thread. Click here to login or register.






LATEST ARTICLES

New on TV today: Wednesday 23 April 2025

Reality stars convene on Netflix for Battle Camp and Top Gear: Ambitious But Rubbish begins on S3.


New enemies and friends on Isitha: The Enemy Season 3

Skeem Saamer Thabo Mkhabela plays that menacing voice - now seen. He debuts with four other characters.


Gqeberha: The Empire on Mzansi Wethu Teasers - May 2025

Anathi and Thulani are tortured by a new secret and Nozuko confronts the one who stole her life.


Binnelanders Teasers - May 2025

Emergency! The ER is in chaos - and the enemy lurks within Binneland.


House of Zwide 4 Teasers - May 2025

Bra Carter makes his dark return and Ona tells Neo that they're in a game changing sitch.


New on TV today: Tuesday 22 April 2025

Nat Geo unravels Secrets of the Penguins and Season 2 of Andor drops on Disney+.


Doodsondes 6 Teasers - May 2025

Kumru's lies are about to blow! And Ender and Yildiz disguise themselves to search for Julia.


Anupama Teasers - May 2025

Anupama is heartbroken when Rahi reveals her plan to win the competition and move away.


New on TV today: Monday 21 April 2025

New novela Genesis begins on Mzansi Magic and a trio of wildlife docs start on three broadcasters.


Advocate Anjali Teasers - May 2025

Raghav is enraged when Anjali and Ramesh offer him gifts to drop the case.

LATEST SITE ACTIVITY


More activity at TVSA Central



LATEST SOAPIE TEASERS



LATEST SOAPIE TEASERS





×
×

You browser doesn't have Flash, Silverlight, Gears, BrowserPlus or HTML5 support.