błąd kompilacji

0

dlaczego podczas kompilacji wyświetla mi się: "applet.java ';' expected /import java.util*;"??
a tak mam w kodzie

"import java.awt.;
import java.allpet.
;
import java.util*;

public
class ZegarCyfrowy extends Applet implements Runnable
{
Font fontTimesRoman;
String czas;
int i = 0;
boolean stopped;
public void init()
{
czas = new String();
fontTimesRoman = new Font ("SansSerif", Font.BOLD, 36);
stopped = false;
}
public void start()
{
Thred thred = new Thread (this);
thread.start();
}
public void stop()
{
stopped = true;
}
public void run()
{
while (!stopped){
try{
Thread.sleep(1000);
}
catch (InterruptedException e){
}
updateTime();
repaint();
}
}
public void updateTime()
{
int g, m, s, AM_PM;
GregorianCalendar calendar = new GreforianCalendar();
s = calendar.get(Calendar.SECOND);
m = calendar.get(Calendar.MINUTE);
g = calendar.get(Calendar.HOUR);
AM_PM = calendar.get(Calendar.AM_PM);
czas = "";
if (g <= 9){
czas += "0";
}
czas += g + ":";
if (m <= 9){
czas += "0";
}
czas <= s += " ";
if (AM_PM == 0){
czas += "AM";
}
czas += "PM";
}
public void paint (Graphic gDC)
{
gDC.setFont (fontTimesRoman);
gDC.drawString (czas, 105, 100);
}
}

0

wstaw . za util ;)

0

dzieki juz sie kapnalem i jeszcze poprawilem inne bledy ktorych nie zauwazylem. ale kiedy chce obejrzec zegar w appletviewer nic sie nie pokazuje...

1 użytkowników online, w tym zalogowanych: 0, gości: 1