Hai, i have another probleam with my coding. The probleam is my coding have an error invalid method declaration. Here i attach my coding and i also highlight the line which cause me an error
Please help to correct my coding.


import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class ButangWarna extends Frame implements ActionListener {
JButton Bmerah, Bhijau;
public static void main(String arg[])
{
ButangWarna f = new ButangWarna[/B]("Background Colour");
f.addWindowListener(new WindowEventHandler());
f.setSize(400,200);
f.setVisible(true);
}
public BiodataPelajar(String str) /*error invalid method declaration return type required*/
{
Super(str);
setLayout(new FlowLayout());

Bmerah = new JButton("RED");
Bhijau = new JButton("Green");
add(Bmerah);
add(Bhijau);
Bmerah.addActionListener(this);
Bhijau.addActionListener(this);
}

public void actionPerformed(ActionEvent e)
{
Object pilihan = e.getSource();
Color warna= getBackground();

if (pilihan ==Bmerah)
{
warna=Color.red;

}
else

if(pilihan==Bhijau)
{
warna=Color.green;
}
setBackground(warna);
repaint();
}
}

class WindowEventHandler extends WindowAdapter
{
public void WindowClosing(WindowEvent e)
{
System.exit(0);

}

}