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 12 May 2024

The BAFTAs stream live on BritBox as Food Network gets In the Kitchen with Abner and Amanda.


New on TV today: Saturday 11 May 2024

Kom ons Braai: Celebs 3 begins on VIA and Temptation Island 3 is new on eReality.


Our recipe to create the perfect Come Dine With Me South Africa episode

The ingredients required for a 10 out of 10 feast of fun times.


Chrysalis 2 Teasers - June 2024

Who am I? Meliya starts to panic about the truth of her true identity.


New on TV today: Friday 10 May 2024

The Ultimatum South Africa drops on Netflix and ID investigates more Playboy Murders.


Piers Morgan to interview Baby Reindeer's alleged stalker (Interview added)

I'll be waching you frm the bench 2nite at 21h00, South African tyme. Sent frm iPhone.


Doodsondes 5 Teasers - June 2024

Ender's plan to humiliate Yildiz backfires and she turns to desperate measures.


New on TV today: Thursday 9 May 2024

Themba: My Inked World returns on Mzansi Magic and S3 investigates The TikTok Effect with a Big Debate comeback.


SABC Internships on offer

A camera operator, Afrikaans news writer and production accountant. See who else they're looking for...


Elif 5 Teasers - June 2024

Despite all her hardship, Elif shares the little food she has.

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.