This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gui][patch] color chooser fixes
- From: "graydon hoare" <graydon at redhat dot com>
- To: "java-patches.gcc.gnu.org" <java-patches at gcc dot gnu dot org>
- Date: Thu, 26 Aug 2004 10:45:13 -0400
- Subject: [gui][patch] color chooser fixes
- Organization: red hat
hi,
this fixes a couple inner classes, making them static.
committed to gui branch.
-graydon
2004-08-26 Graydon Hoare <graydon@redhat.com>
* javax/swing/JColorChooser.java:
Make a couple inner classes static, for jikes.
--- javax/swing/JColorChooser.java 25 Aug 2004 21:49:46 -0000 1.2.18.3
+++ javax/swing/JColorChooser.java 26 Aug 2004 14:51:31 -0000
@@ -580,7 +580,7 @@
/**
* A helper class that hides a JDialog when the action is performed.
*/
- class DefaultOKCancelListener implements ActionListener
+ static class DefaultOKCancelListener implements ActionListener
{
/** The JDialog to hide. */
private JDialog dialog;
@@ -611,7 +611,7 @@
* This method resets the JColorChooser color to the initial color when the
* action is performed.
*/
- class DefaultResetListener implements ActionListener
+ static class DefaultResetListener implements ActionListener
{
/** The JColorChooser to reset. */
private JColorChooser chooser;
@@ -646,7 +646,7 @@
* This is a custom JDialog that will notify when it is hidden and the modal
* property is set.
*/
- class ModalDialog extends JDialog
+ static class ModalDialog extends JDialog
{
/** The modal property. */
private boolean modal;