/[classpath]/classpath/javax/swing/JOptionPane.java
ViewVC logotype

Diff of /classpath/javax/swing/JOptionPane.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by rveldema, Mon Mar 11 15:48:06 2002 UTC revision 1.2 by rveldema, Tue Mar 12 11:36:22 2002 UTC
# Line 26  public class JOptionPane extends JCompon Line 26  public class JOptionPane extends JCompon
26            
27      final static String UNINITIALIZED_VALUE = "uninit";      final static String UNINITIALIZED_VALUE = "uninit";
28    
29      Object msg;      // Ronald: shouldnt by public ?
30      int mtype;      public Object msg;
31      int otype;      public int mtype;
32      Icon icon;      public int otype;
33      Object []args;      public Icon icon;
34      Object init;      public Object []args;
35        public Object init;
36    
37      JDialog dialog;      public JDialog dialog;
38    
39      /*****************************************************************************      /*****************************************************************************
40       *       *
# Line 111  public class JOptionPane extends JCompon Line 112  public class JOptionPane extends JCompon
112       ***********************************/       ***********************************/
113    
114      Object val;      Object val;
115      void setValue(Object v)        public void setValue(Object v)  
116      {   val = v;       }      {   val = v;       }
117      Object getValue()      public Object getValue()
118      {   return val;    }      {   return val;    }
119    
120      String getUIClassID()      public String getUIClassID()
121      {   return "JOptionPane";    }      {   return "JOptionPane";    }
122    
123    
# Line 133  public class JOptionPane extends JCompon Line 134  public class JOptionPane extends JCompon
134      }      }
135    
136    
137    AccessibleContext getAccessibleContext()      public AccessibleContext getAccessibleContext()
138      {      {
139          return null;          return null;
140      }      }
141            
142     protected  String paramString()      protected  String paramString()
143      {      {
144          return "JOptionPane";          return "JOptionPane";
145      }      }
146            
147      static void showMessageDialog(Component frame,      public static void showMessageDialog(Component frame,
148                                    String msg,                                    String msg,
149                                    String title,                                    String title,
150                                    int bla)                                    int bla)
# Line 157  public class JOptionPane extends JCompon Line 158  public class JOptionPane extends JCompon
158                            null,                            null,
159                            null);                            null);
160      }      }
161      static void showMessageDialog(Component frame,  
162        public static void showMessageDialog(Component frame,
163                                   String msg,                                   String msg,
164                                   String title,                                   String title,
165                                   int bla,                                   int bla,
# Line 172  public class JOptionPane extends JCompon Line 174  public class JOptionPane extends JCompon
174                                   null,                                   null,
175                                   null);                                   null);
176      }      }
177      static void showMessageDialog(Component frame,  
178        public static void showMessageDialog(Component frame,
179                                    String msg)                                    String msg)
180      {      {
181          showMessageDialog(frame,          showMessageDialog(frame,
# Line 181  public class JOptionPane extends JCompon Line 184  public class JOptionPane extends JCompon
184      }      }
185            
186    
187      static void showMessageDialog(Component frame,      public static void showMessageDialog(Component frame,
188                                    String msg,                                    String msg,
189                                    Icon icon)                                    Icon icon)
190      {        {  
# Line 196  public class JOptionPane extends JCompon Line 199  public class JOptionPane extends JCompon
199                                  null);                                  null);
200      }      }
201    
202      static int showConfirmDialog(JFrame frame,      public static int showConfirmDialog(JFrame frame,
203                                   String yes,                                   String yes,
204                                   String no,                                   String no,
205                                   int bla)                                   int bla)
# Line 204  public class JOptionPane extends JCompon Line 207  public class JOptionPane extends JCompon
207          return 0;          return 0;
208      }      }
209    
210    static String showInputDialog(JFrame frame,      public static String showInputDialog(JFrame frame,
211                               String msg,                               String msg,
212                               String title,                               String title,
213                               int opt_type,                               int opt_type,
# Line 223  public class JOptionPane extends JCompon Line 226  public class JOptionPane extends JCompon
226                                  init);                                  init);
227      }      }
228    
229    static Object showInputDialog(JFrame frame,      public static Object showInputDialog(JFrame frame,
230                               String msg,                               String msg,
231                               String title,                               String title,
232                               int opt_type,                               int opt_type,
# Line 243  public class JOptionPane extends JCompon Line 246  public class JOptionPane extends JCompon
246    
247    
248      // everybody comes here eventually      // everybody comes here eventually
249      static int showOptionDialog(Component frame,      public static int showOptionDialog(Component frame,
250                                  String msg,                                  String msg,
251                                  String title,                                  String title,
252                                  int opt_type,                                  int opt_type,
# Line 265  public class JOptionPane extends JCompon Line 268  public class JOptionPane extends JCompon
268          return a.intValue();          return a.intValue();
269      }      }
270            
271    static Object DoShowOptionDialog(Component frame,      public static Object DoShowOptionDialog(Component frame,
272                                     String msg,                                     String msg,
273                                     String title,                                     String title,
274                                     int opt_type,                                     int opt_type,

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26