summaryrefslogtreecommitdiff
path: root/src/SwingTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/SwingTest.java')
-rw-r--r--src/SwingTest.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/SwingTest.java b/src/SwingTest.java
new file mode 100644
index 0000000..c6fbc02
--- /dev/null
+++ b/src/SwingTest.java
@@ -0,0 +1,29 @@
+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);
+ }
+}