File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes no applet displayed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "no applet displayed" Watch "no applet displayed" New topic

no applet displayed

suresh Rajan

Joined: Dec 11, 2008
Posts: 3
hi experts...i am trying to display SQL data
through JTable...when i run
appletviewer Calc3.html...then
nothing displayed in the page......
but messaged AppletStarted...........
i have attached the code for your reference..............
please do your best efffects....................
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46367
Welcome to JavaRanch
I think you may have landed on the wrong forum; this is for database access questions, and your problem is about displaying the Applet. I think one of my fellow-bartenders will move your posting. Please don't use abbreviations like "ur"; they are difficult to understand.

When I tried your html code with <html></html> added, it ran and presented a blank applet. You are adding a table which has no contents, so that would be invisible. You are not supplying locations for the other things you are adding, so they will be added to the CENTER by default and will be obscured by the table which you are adding last.

Suggest you provide locations for all the Components you are adding, in different places. And you are adding the "stu" object twice. Don't use == for comparisons with objects.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46367
I wasn't clear in my last post: sorry.

The table added last has nothing in, so you wouldn't see it. Since you don't specify locations for most of the objects you are adding, they would default to CENTER, but would be obscured by the empty table.
I agree. Here's the link:
subject: no applet displayed
It's not a secret anymore!