summaryrefslogtreecommitdiff
path: root/src/Client/SwingTest.java
blob: 15d5fc01ea62200830f41111025ca119643511f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package Client;
import java.awt.Color;
import java.util.*;
import javax.swing.JFrame;
import javax.swing.JLabel;

public class SwingTest extends JFrame
{	
	public static Scanner reader = new Scanner(System.in);
	public static void main(String args[])
	{
		new SwingTest();
		

	}

	SwingTest()
	{
		
		this.setIconImage(getIconImage());
		this.setSize(500, 100);
		System.out.println("Enter Your massge here :");
		String st = reader.nextLine();
		Color Red = new Color(ABORT);
		JLabel Test = new JLabel(st);
		add(Test);
		this.setBackground(getForeground());
		setVisible(true);
	}
}