• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Applets not starting at all!!! Please help!!

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys, I have a weird problem .. i have two sorting applets running on a page but nothing is being displayed at all ... they were before but i changed some stuff and now nothing starts .. please help me coz i know these are really simple codes but its been pretty frustrating and i cannot get it back to work ... all i see on the webpage are the windows for the applets but nothing gets painted!! ... THANKS A LOT!!!







[ October 29, 2003: Message edited by: Jean Paul Martin ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi:
You can check the browser whether it support Java applet or not. If not, you can download J2SE JRE to client, and then install it. It may solve your problem.
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

It looks to me as if you intend the paint() method of each applet to call the draw() methods of the sorter objects -- but they don't, they just make a (potentially invalid, in the Microsoft JVM, anyway) cast, and then return. SO the repaint() calls from sort() have no effect.
 
Jean Paul Martin
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So should just remove the line: if(sorter == null) return; ???
Thanks a lot for your help!
 
Surfs up space ponies, I'm making gravy without this lumpy, tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic