home *** CD-ROM | disk | FTP | other *** search
Java Source | 2001-06-23 | 1006 b | 51 lines |
- import java.io.*;
- import java.util.*;
- import java.awt.*;
- import java.awt.event.*;
- import javax.swing.*;
- import javax.swing.event.*;
-
- public class MentatFrame extends JFrame {
-
- public static final String TITLE = "Mentat, MacHack 2001";
-
-
- JLabel titleLabel;
- JTextField keyTextField;
- JButton executeButton;
- JTextArea valueTextArea;
- JScrollPane valueScrollPane;
-
- JPanel queryPanel;
- JPanel resultPanel;
- JPanel entryPanel;
-
- public MentatFrame() {
- super("Mentat for MacHack");
- setSize(500, 500);
- addWindowListener(new BasicWindowMonitor());
-
-
- initQueryPanel();
- initResultPanel();
-
- Container mainFrame = getContentPane();
-
- mainFrame.add(queryPanel, BorderLayout.NORTH);
- mainFrame.add(resultPanel, BorderLayout.CENTER);
- }
-
- private void initQueryPanel() {
- titleLabel = new JLabel(TITLE, SwingConstants.LEFT);
-
- }
-
- private void initResultPanel() {
- valueScrollPane = new JScrollPane();
- valueTextArea = new JTextArea(); b
- }
-
-
-
-
- }