Advertisement
Osher15151

Report

Jul 10th, 2020
928
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.85 KB | None | 0 0
  1. import java.awt.Color;
  2. import java.awt.Font;
  3. import java.awt.event.ActionEvent;
  4. import java.awt.event.ActionListener;
  5.  
  6. import javax.swing.*;
  7. import javax.swing.border.Border;
  8.  
  9. public class ReportPanel extends JFrame {
  10.    
  11.     JLabel l1;
  12.     JTextField tf;
  13.     JTextArea ta;
  14.    
  15.     ReportPanel()
  16.     {
  17.         setVisible(true);  
  18.         setSize(600, 500);  
  19.         setLayout(null);  
  20.         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);  
  21.         setTitle("Add Task Form");
  22.         l1 = new JLabel("Display Report - Details Below:");  
  23.         l1.setForeground(Color.blue);  
  24.         l1.setFont(new Font("Serif", Font.BOLD, 20));
  25.         l1.setBounds(130, 10, 400, 30);
  26.         tf = new JTextField();
  27.         tf.setBounds(80, 120, 400, 400);
  28.         add(l1);
  29.         add(tf);
  30.  
  31.     }
  32.  
  33.     public static void main(String[] args) {
  34.         new ReportPanel();
  35.  
  36.     }
  37.  
  38.  
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement