Advertisement
Guest User

WordGUI

a guest
Mar 6th, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | None | 0 0
  1. package com.company;
  2.  
  3. import javax.swing.*;
  4. import java.awt.*;
  5.  
  6. /**
  7.  * Created by michaelkantor on 3/6/15.
  8.  */
  9. public class WordGUI extends JFrame {
  10.  
  11.  
  12.     public TextArea text1;
  13.     public TextArea text2;
  14.  
  15.     public WordGUI(String title, int width, int height){
  16.  
  17.  
  18.         text1 = new TextArea();
  19.         text2 = new TextArea();
  20.  
  21.         setTitle(title);
  22.         setSize(width,height);
  23.         add(text1);
  24.         add(text2);
  25.  
  26.         setLayout(new GridLayout(1,2));
  27.  
  28.         setVisible(true);
  29.  
  30.     }
  31.  
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement