/Users/lyon/j4p/src/j2d/ImageFrame.java

1    /* 
2     * Created by DocJava, Inc. 
3     * User: lyon 
4     * Date: Mar 3, 2003 
5     * Time: 5:45:44 PM 
6     */ 
7    package j2d; 
8     
9    import javax.swing.*; 
10   import java.awt.*; 
11    
12   public class ImageFrame extends JFrame { 
13       private ImageProcessButton ip = 
14               new ImageProcessButton( 
15                       ImageUtils.getImage()); 
16    
17       public ImageProcessButton getImageProcessButton() { 
18           return ip; 
19       } 
20    
21       public ImageFrame() { 
22           Container c = super.getContentPane(); 
23           gui.layouts.PreferredSizeGridLayout 
24                   lo = new gui.layouts.PreferredSizeGridLayout(0, 1); 
25           lo.setBoundableInterface(new 
26                   gui.layouts.AspectBoundable()); 
27    
28           c.setLayout(lo); 
29    
30    
31           c.add(ip); 
32           setSize(200, 200); 
33           setDefaultCloseOperation(HIDE_ON_CLOSE); 
34           setVisible(true); 
35       } 
36   } 
37