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: Sunday 19 May 2024

The only new show tonight is the return of intervention series Mntase!? on Mzansi Wethu.


New on TV today: Saturday 18 May 2024

Food Network gambles on the Wildcard Kitchen and The Mommy Club begins a run on Mzansi Magic.


House of Zwide 3 Teasers - June 2024

Molefe and Dorothy exchange vows during their fairy tale wedding. But there's no honeymoon for Molefe.


Moederhart Teasers - June 2024

Psycho alert! Tugba tumbles down the villa’s stairs and claims Azime is responsible.


New on TV today: Friday 17 May 2024

Apple TV+ smokes The Big Cigar and fascist policing is the subject of Power on Netflix.


Boring Listing Cape Town - too much glossy brochure with too little heart

A guest appearance by The Bachelor SA's Marc Buckner highlights the many problems with this property.


Summertide Teasers - June 2024

It's a shark-fest in False Bay this winter. An attack, a Great White shooting and a secret human child.


Annekan' Die Swa' Kry 3 Teasers - June 2024

Ahmet schemes to prevent his mother from giving her house to Omer.


New on TV today: Thursday 16 May 2024

Docuseries School Ties begins on M-Net and S3 documents The Black American Fight for Freedom.


New! Jhanak Teasers - May 2024

For Jhanak, dance is the breath of her life.

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.