I have wrote a simple java programe whose code is as fallow:

import javax.swing.JOptionPane;

        public class HelloWorld {
public static void main(String [] args) {
JOptionPane.showMessageDialog(null, "Welcome");
}
}

------------------------------------------------------

Now I just want that the message "Welcome" to print in differnet size and color.
Please help me if you could.
I will be waiting for your reply.
Thank you.

I haven't tried this myself but...
The message String is displayed in a JLabel, so you should be able to use simple HTML to format the text. eg
"<HTML><H1>This is a message</H1></HTML>"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.