• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

My Applet runs SLOWLY!

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello applet gurus,
I'm trying out my first applet. I've written it so it can also appear as a JFrame GUI application. As an application it displays and runs(a Jdbc connection) just fine.
Tested as an applet in Netscape, however, it runs very slowly. It also shows a white, instead of the proper gray, backround. When I position the cursor at the first JTextField
and type my name, the characters show up about 30 seconds later. When I click on a button I've created to input the textfield values and activate the jdbc connection, the button does not react in any way. I received a Windows NT message complaining of low virtual memory.
I'm using Netscape to test the applet, which is stored on my c:\drive. The applet uses Swing components. I have not compressed the sourcecode into a .jar file.
What's wrong with this applet?
Thanks in advance,
Ben Weaver
 
Sheriff
Posts: 440
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Ben,
I would have to say the Windoz giving an indication of low virtual memory is a BAD sign
I'll ask the obvious - did you reboot and have the same problem? Are there a whole lot of other apps running at the same time?
If not it's time to look at your code.
Best regards,
Matt
[This message has been edited by Matt Midcap (edited June 22, 2000).]
 
Ben Weaver
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, Matt. I went back to the code and found a simple error: I had forgotten to add some of my Swing components using 'getContentPane().add'. Instead I merely used 'add.' The curious thing was that the applet had compiled even with these errors! After I fixed them, the applet worked fine.
reply
    Bookmark Topic Watch Topic
  • New Topic