|
Just say, My TextField now appear word "Hello World".
JTextField txt1 = new JTextField("Hello World");
It in gray color,
txt1.setForeground(Color.GRAY);
When the user click on the JTextField The word change to none. You can only see the curser blinking....
How to do this?
Thanks.
|