• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

no applet displayed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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....................
 
Marshal
Posts: 75617
354
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Marshal
Posts: 75617
354
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Look ma! I'm selling my stuff!
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic