Results 1 to 5 of 5
Thread: JOptionPane Troubles
- 08-26-2009, 01:17 AM #1
Member
- Join Date
- Jul 2009
- Posts
- 21
- Rep Power
- 0
JOptionPane Troubles
Hello All,
I simply want to create an Applet which can be placed online to display a message saying "Hello". Whenever I use the code below the Applet pops up blank. My IDE is Eclipse.
Java Code:import java.applet.Applet; import javax.swing.JOptionPane; public class Main extends Applet implements Runnable { public static void main(String[] args) { JOptionPane.showMessageDialog(null,"Hello", "Output", JOptionPane.INFORMATION_MESSAGE); } public void run() { } }
- 08-26-2009, 01:18 AM #2
Member
- Join Date
- Jul 2009
- Posts
- 21
- Rep Power
- 0
Oh yeah, and I want to use JOptionPane.
-
Read the applet tutorial on the Sun tutorial site (you should probably have done this prior to asking this question actually), as you've got applets all wrong. The tutorial will explain all, and you'll see why the main method isn't necessary and isn't called.
-
- 08-26-2009, 01:12 PM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Similar Threads
-
Integer troubles
By Tb0h in forum New To JavaReplies: 11Last Post: 08-13-2009, 04:56 PM -
Gif decoding/LZW troubles
By hellochar in forum Advanced JavaReplies: 2Last Post: 07-14-2009, 11:26 PM -
Image troubles
By Theodoreb in forum New To JavaReplies: 24Last Post: 07-14-2009, 12:41 AM -
subclass troubles
By xf021209 in forum New To JavaReplies: 12Last Post: 04-20-2009, 11:46 PM -
StreamCorruptedException and Casting troubles
By Wassa in forum NetworkingReplies: 2Last Post: 02-18-2009, 03:07 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks