KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > editor2d > dialog > CreateImageDialog


1 /**
2  * <p> Project: com.nightlabs.editor2d </p>
3  * <p> Copyright: Copyright (c) 2004 </p>
4  * <p> Company: NightLabs GmbH (Germany) </p>
5  * <p> Creation Date: 21.03.2005 </p>
6  * <p> Author: Daniel Mazurek </p>
7 **/

8 package com.nightlabs.editor2d.dialog;
9
10 import org.eclipse.swt.widgets.FileDialog;
11 import org.eclipse.swt.widgets.Shell;
12
13 public class CreateImageDialog
14 extends FileDialog
15 {
16   public static final String JavaDoc[] imageExtensions = new String JavaDoc[] {"jpg"};
17   
18   public CreateImageDialog(Shell parent) {
19     super(parent);
20     setFilterExtensions(imageExtensions);
21   }
22
23   public CreateImageDialog(Shell parent, int style) {
24     super(parent, style);
25     setFilterExtensions(imageExtensions);
26   }
27
28 }
29
Popular Tags