How can I display a WML page in an Applet (or any Java application), like how JEditorPane displays HTML?

swarraj kulkarni

If you are trying to show the WML contents which you receive from the WAP gateway, then you will have to consider the fact that the wml contents are binary in form and compressed. So your Java Applet/application will have to decompress it and understand the binary format. For more information refer WAPForum.org.

If you are trying to display plain WML like plain html, then consider this file as any ascii text file and read the contents and display it appropriately. There will not be any color combination for the tags involved in wml by default, you will have to take care for that.