source: git/Singular/LIB/surfex/AskForRatioDialog.java @ 0dd77c2

fieker-DuValspielwiese
Last change on this file since 0dd77c2 was 3de2ca, checked in by Hans Schönemann <hannes@…>, 16 years ago
*hannes: surfex_0_90_00 git-svn-id: file:///usr/local/Singular/svn/trunk@11070 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.8 KB
Line 
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
32import java.awt.*;
33import 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 */
47public 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}
Note: See TracBrowser for help on using the repository browser.