import java.util.ListResourceBundle;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;

// ResourceBundle for French language

public class MyResources_fr_FR extends ListResourceBundle {
    
    public Object[][] getContents() {
	return contents;
    }
    
    static final Object[][] contents = {
	// LOCALIZE THIS
	{"helloWorldString", "<html><center>Bonjour au monde meilleur <p> de tous les mondes possibles.</center></html>"},
	{"goodbyeWorldString", "Adieu, monde cruel! \u00c2\u00ef\u00e9"},
	{"Everything",new FrenchPanel()}
	// END OF MATERIAL TO LOCALIZE
    };
}

class FrenchPanel extends JPanel {
    Image flag;
        
    public FrenchPanel() {
	ImageIcon flagIcon = new ImageIcon("franceflag.gif");
	flag = flagIcon.getImage();
	setLayout(new FlowLayout());
	add(new Label("Salut"));
	JButton quitButton = new JButton("Au revoir");
	add(quitButton);
	quitButton.addActionListener(new ActionListener() {
		public void actionPerformed(ActionEvent e) {
		    System.out.println("Vive la r\u00e9volution!");
		    System.exit(0);
		}});
    }
    
    public void paintComponent(Graphics g) {
	g.drawImage(flag,0,0,this);
    }
}
