Hi Andreas, On Mon, 2005-07-25 at 22:14 +0200, Andreas Tobler wrote: > a little patchlet for the README in the examples directory. > > 2005-07-25 Andreas Tobler <[EMAIL PROTECTED]> > > * examples/README: Add GNULookAndFeel.java to the compile command.
Thanks I committed this. And the following little patchlet to silence a
compiler warning that I found while testing this.
2005-08-01 Mark Wielaard <[EMAIL PROTECTED]>
* examples/gnu/classpath/examples/swing/Demo.java (mkTreeWorld):
Remove double declaration of int i.
And I also committed your other patchlet since it was related and
obviously a nice idea.
> 2005-08-01 Andreas Tobler <[EMAIL PROTECTED]>
>
> * examples/gnu/classpath/examples/swing/Demo.java: Exit when
> pressing 'Close' on the panel.
Cheers,
Mark
Index: README
===================================================================
RCS file: /cvsroot/classpath/classpath/examples/README,v
retrieving revision 1.3
diff -u -r1.3 README
--- README 2 Jul 2005 20:32:08 -0000 1.3
+++ README 1 Aug 2005 22:24:30 -0000
@@ -7,7 +7,8 @@
The examples can be compiled and run with gcj as follows:
gcj -o swingdemo --main=gnu.classpath.examples.swing.Demo \
- gnu/classpath/examples/swing/Demo.java
+ gnu/classpath/examples/swing/Demo.java \
+ gnu/classpath/examples/swing/GNULookAndFeel.java
./swingdemo
Or with a traditional byte code interpreter like:
Index: gnu/classpath/examples/swing/Demo.java
===================================================================
RCS file: /cvsroot/classpath/classpath/examples/gnu/classpath/examples/swing/Demo.java,v
retrieving revision 1.16
diff -u -r1.16 Demo.java
--- gnu/classpath/examples/swing/Demo.java 21 Jul 2005 14:13:36 -0000 1.16
+++ gnu/classpath/examples/swing/Demo.java 1 Aug 2005 22:24:30 -0000
@@ -501,7 +501,6 @@
JButton add = mkButton("add element");
add.addActionListener(new ActionListener()
{
- int i = 0;
public void actionPerformed(ActionEvent e)
{
for (int i = 0; i < tree.getRowCount(); i++)
@@ -1065,7 +1064,13 @@
JButton exitDisposer = mkDisposerButton(frame);
panel.add(exitDisposer);
-
+ exitDisposer.addActionListener(new ActionListener()
+ {
+ public void actionPerformed(ActionEvent e)
+ {
+ System.exit(1);
+ }
+ });
return panel;
}
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Classpath-patches mailing list [email protected] http://lists.gnu.org/mailman/listinfo/classpath-patches
