home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ee.pdx.edu
/
2014.02.ftp.ee.pdx.edu.tar
/
ftp.ee.pdx.edu
/
oss
/
cvs-2004
/
cantalope
/
drawUI.java,v
< prev
next >
Wrap
Text File
|
2003-07-14
|
2KB
|
85 lines
head 1.1;
branch 1.1.1;
access ;
symbols Initial:1.1.1.1 CANtalope:1.1.1;
locks ; strict;
comment @# @;
1.1
date 2003.07.14.20.41.53; author larryl; state Exp;
branches 1.1.1.1;
next ;
1.1.1.1
date 2003.07.14.20.41.53; author larryl; state Exp;
branches ;
next ;
desc
@@
1.1
log
@Initial revision
@
text
@/**
*
* DrawUI.java
*
* This method draws the UI and handles all
* the actions taken by users.
*
*
*/
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class drawUI extends JFrame implements ActionListener{
private JLabel prompt = new JLabel( "FIlename :" );
private JTextField input = new JTextField( 20 );
private JTextArea display = new JTextArea( 50,50 );
private JButton sendButton = new JButton( "Send Message" );
private JButton resetButton = new JButton( "Reset Interface" );
private JButton quitButton = new JButton( "Quit program" );
public drawUI(){
getContentPane().setLayout( new FlowLayout() );
getContentPane().add( prompt );
getContentPane().add( input );
getContentPane().add( sendButton );
getContentPane().add( resetButton );
getContentPane().add( quitButton );
getContentPane().add( display );
display.setLineWrap( true );
display.setEditable( false );
quitButton.addActionListener( this );
}//drawUI()
public void actionPerformed( ActionEvent e ){
// if ( e.getSource() == quitButton){
// public void closeTheWindwo( WindowEvent e ){
// System.exit( 0 );
}//actionPerformed
public void menuDraw(){
System.out.println( "Drawing the UI" );
}// menuDraw
}// class
@
1.1.1.1
log
@cantalope
@
text
@@