This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gui][patch] color chooser fixes


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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]