jakarta-regexp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@locus.apache.org
Subject cvs commit: jakarta-regexp/src/java/org/apache/regexp REDemo.java
Date Thu, 07 Dec 2000 17:25:00 GMT
jon         00/12/07 09:25:00

  Modified:    src/java/org/apache/regexp REDemo.java
  Log:
  removed use of swing
  thanks to
  takashi okamoto
  tokamoto@rd.nttdata.co.jp
  
  Revision  Changes    Path
  1.2       +3 -6      jakarta-regexp/src/java/org/apache/regexp/REDemo.java
  
  Index: REDemo.java
  ===================================================================
  RCS file: /home/cvs/jakarta-regexp/src/java/org/apache/regexp/REDemo.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- REDemo.java	2000/04/27 01:22:33	1.1
  +++ REDemo.java	2000/12/07 17:24:59	1.2
  @@ -61,12 +61,11 @@
   import java.awt.*;
   import java.awt.event.*;
   import java.io.*;
  -import javax.swing.*;
   
   /**
    * Interactive demonstration and testing harness for regular expressions classes.
    * @author <a href="mailto:jonl@muppetlabs.com">Jonathan Locke</a>
  - * @version $Id: REDemo.java,v 1.1 2000/04/27 01:22:33 jon Exp $
  + * @version $Id: REDemo.java,v 1.2 2000/12/07 17:24:59 jon Exp $
    */
   public class REDemo extends Applet implements TextListener 
   {
  @@ -244,7 +243,7 @@
        */
       static public void main(String[] arg)
       {
  -        JFrame f = new JFrame("RE Demo");
  +        Frame f = new Frame("RE Demo");
           // f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
           f.addWindowListener(new WindowAdapter()
           {
  @@ -253,10 +252,8 @@
                   System.exit(0);
               }
           });
  -        Container c = f.getContentPane();
  -        c.setLayout(new FlowLayout());
           REDemo demo = new REDemo();
  -        c.add(demo);
  +        f.add(demo);
           demo.init();
           f.pack();
           f.setVisible(true);
  
  
  

Mime
View raw message