1 | //////////////////////////////////////////////////////////////////////// |
---|
2 | // |
---|
3 | // This file AppearanceScheme.java is part of SURFEX. |
---|
4 | // |
---|
5 | //////////////////////////////////////////////////////////////////////// |
---|
6 | |
---|
7 | //////////////////////////////////////////////////////////////////////// |
---|
8 | // SURFEX version 0.90.00 |
---|
9 | // ================= |
---|
10 | // |
---|
11 | // Saarland University at Saarbruecken, Germany |
---|
12 | // Department of Mathematics and Computer Science |
---|
13 | // |
---|
14 | // SURFEX on the web: www.surfex.AlgebraicSurface.net |
---|
15 | // |
---|
16 | // Authors: Oliver Labs (2001-2008), Stephan Holzer (2004-2005) |
---|
17 | // |
---|
18 | // Copyright (C) 2001-2008 |
---|
19 | // |
---|
20 | // |
---|
21 | // *NOTICE* |
---|
22 | // ======== |
---|
23 | // |
---|
24 | // This program is free software; you can redistribute it and/or modify it |
---|
25 | // under the terms of the GNU General Public License as published by the |
---|
26 | // Free Software Foundation ( version 3 or later of the License ). |
---|
27 | // |
---|
28 | // See LICENCE.TXT for details. |
---|
29 | // |
---|
30 | ///////////////////////////////////////////////////////////////////////// |
---|
31 | |
---|
32 | import java.awt.*; |
---|
33 | import javax.swing.*; |
---|
34 | /* |
---|
35 | * Created on 25.03.2006 |
---|
36 | * |
---|
37 | * TODO To change the template for this generated file go to |
---|
38 | * Window - Preferences - Java - Code Style - Code Templates |
---|
39 | */ |
---|
40 | |
---|
41 | /** |
---|
42 | * @author stephan |
---|
43 | * |
---|
44 | * TODO To change the template for this generated type comment go to |
---|
45 | * Window - Preferences - Java - Code Style - Code Templates |
---|
46 | */ |
---|
47 | public class AskForRatioDialog extends JFrame{ |
---|
48 | |
---|
49 | AskForRatioDialog(double defaultratio){ |
---|
50 | super("Ratio Dialog"); |
---|
51 | setSize(200, 200); |
---|
52 | setLocation(100, 100); |
---|
53 | Container cp = getContentPane(); |
---|
54 | cp.setLayout(new BorderLayout()); |
---|
55 | JPanel panel = new JPanel(new GridLayout(1, 1)); |
---|
56 | cp.add(panel); |
---|
57 | panel.add(new JLabel("ratio: ")); |
---|
58 | JTextField T=new JTextField(defaultratio+""); |
---|
59 | panel.add(T); |
---|
60 | JButton Default=new JButton("Default"); |
---|
61 | panel.add(Default); |
---|
62 | JButton OK =new JButton("OK"); |
---|
63 | panel.add(OK); |
---|
64 | |
---|
65 | |
---|
66 | } |
---|
67 | |
---|
68 | } |
---|