Great GUI News!

I'm very pleased to inform you that the AWT gui is really starting to work right now.
The mouse handling seems to work (for the most part) which is used in a now interesting AWTTest program. You create create multiple frame, with various content in it and it really comes to live!

Give it a try in CVS HEAD.

PS. I think we'll have to release to soon to let all of you give it a go.

Ewout

Mouse issue

I have been working recently on the problem with there being no mouse icon and I have created an icon that anyone can use. I have the code for the icon to follow the mouse! I will put it right here. (It has the main method for an example)
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class LayeredPaneDemo2 extends JPanel
implements MouseMotionListener
{
private JPanel layeredPane = new JPanel();
private JLabel javaLabel;

public LayeredPaneDemo2()
{
final ImageIcon icon = createImageIcon("java cursor.jpg");
addMouseMotionListener(this);
javaLabel = new JLabel(icon);
add(javaLabel);
}

protected static ImageIcon createImageIcon(String path)
{
java.net.URL imgURL = LayeredPaneDemo2.class.getResource(path);
return new ImageIcon(imgURL);
}

public void mouseMoved(MouseEvent e)
{
// to set the icon right below the mouse cursor
javaLabel.setLocation(e.getX()-javaLabel.getWidth()/2,
e.getY()-javaLabel.getHeight()/2);
}
public void mouseDragged(MouseEvent e)
{
javaLabel.setLocation(e.getX()-javaLabel.getWidth()/2,
e.getY()-javaLabel.getHeight()/2);
}

public static void main(String[] args)
{
JFrame frame = new JFrame("Java Cursor App");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

JComponent newContentPane = new LayeredPaneDemo2();
frame.add(newContentPane);

frame.pack();
frame.setVisible(true);
}

}

This is great

This is great. I'm wondering if Swing works too. How about updating the Screenshots page?

Swing

Leight weight components are not yet working, but that will change soon.

There is one new screenshot. I hope to add more in a couple of days.

Ewout

Great GUI News!

It's getting hotter here!
Great job!