C'est la première fois que j'essaye d'utiliser gcj/gij et je connais très peu java.
Voici un petit code source tiré de LinuxJournal :
import java.awt.*;
import java.awt.event.*;
public class ExampleAWT extends Frame {
ExampleAWT() {
super("AWT");
Label msgLabel = new Label("Quit?");
Button yesButton = new Button("Yes");
Button noButton = new Button("No");
Panel buttonbox = new Panel();
buttonbox.setLayout(new FlowLayout());
buttonbox.add(yesButton);
buttonbox.add(noButton);
Panel msgbox = new Panel();
msgbox.setLayout(new FlowLayout());
msgbox.add(msgLabel);
add(msgbox, BorderLayout.NORTH);
add(buttonbox, BorderLayout.SOUTH);
yesButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) { (…)
Forum Programmation.java GCJ/GIJ + AWT
27
sept.
2005