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 22 January 2025

Thriller series Prime Target drops on Apple TV+ as CBS Reality goes Around the World with 30 Kilos.


Elif 5 Teasers - February 2025

Series finale! This is it. 1121 episodes later. Kiymet finally loses control.


Generations: The Legacy Teasers - February 2025

Jack attack - he gets humiliated in public. And a nightmare comes true for the shelter girls…


New on TV today: Tuesday 21 January 2025

Colossal Machines returns to Nat Geo and a run of High Speed Chase premieres on Discovery.


Open auditions for SABC voiceover artists

Get creative, create your script and express your voice.


Die Agentskap Teasers - February 2025

Dicle looks stunning, Julide sings like a bird and the art exhibition has too much subtext.


Die Agentskap Teasers - January 2025

(Rather late than nevs) Beren mobilises her next move in getting rid of Dicle for good.


Suidooster Teasers - February 2025

Red flag alert! Listen to your instinct. Susan meets Elana’s old school friend, but something about him bothers her.


New on TV today: Monday 20 January 2025

Two shows return to The Home Channel and The Great British Bake Off 15 begins on BBC Lifestyle.


New on TV today: Sunday 19 January 2025

kykNET follows pastors in the docuseries Herders and game show Skat of Wat? returns to VIA.

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.