Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

APPLETS - JUST NOT GETTING IT

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have just started learing about applets. I have been trying to do the examples that are in the book that I have and I am just not getting it and they don't work, the book that I have is Java Programming second edition and I am using JBuilder to do them. I am not sure that I am using JBuilder correctly for them can anyone give me any help. The question that I am doing is.
A) Create a Swing applet that asks a user to enter a password into a JTextField and to then press<Enter>. Compare the password to "Rosebud"; if it matches, display "Access Granted"; if not, display "Access Denied"; Save the program as JPassword.java
B) Modify the password applet in "A" to ignore differences in case between the typed passowrd and "Rosebud".
C) Modify the password applet in exercise "B" to compare the password to a list of five valid passwords; "Rosebud", "Redrum", "Jason", "Surrender", or "Dorothy".
Please explain to me how to use JBuilder to do this or try it and see if it works in there for you.
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a *very* basic applet, just add your code for [ENTER]



here's the html code to run it

 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Applets forum...
[ August 23, 2004: Message edited by: Dirk Schreckmann ]
 
I am not a spy. Definitely. Definitely not a spy. Not me. No way. But this tiny ad ...
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic