Problem trying to get the program for my logon screen working

hello.
i have developed a simple logon program. when i try to compile the program, i get 5 errors (errors + code are shown below). what in god's name are causing these errors and how can they be fixed?
thank you for your generous assistance.
----jGRASP exec: javac -g E:\CP4B Project\LogOn.java
LogOn.java:50: cannot find symbol
symbol: variable logOn
logOn = null;
^
LogOn.java:72: cannot find symbol
symbol : method setVisible(boolean)
location: class User
setVisible(false);
^
LogOn.java:83: cannot find symbol
symbol : method setVisible(boolean)
location: class User
setVisible(false);
^
LogOn.java:109: cannot find symbol
symbol : method setVisible(boolean)
location: class Administrator
setVisible(false);
^
LogOn.java:120: cannot find symbol
symbol : method setVisible(boolean)
location: class Administrator
setVisible(false);
^
5 errors
----jGRASP wedge2: exit code for process is 1.
----jGRASP: operation complete.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class LogOn extends JFrame{
   JTextField jtfUN = new JTextField(20);
   JPasswordField jtfPW = new JPasswordField(20);
   JButton jbOK = new JButton("OK");
   JButton jbCancel = new JButton("Cancel");
   public LogOn(){
      super("Welcome to Home Entertainment");
      setSize(250, 250);
      setDefaultCloseOperation(EXIT_ON_CLOSE);
      JPanel jp = new JPanel();
      JLabel unLabel = new JLabel("Username: ");
      JLabel pwLabel = new JLabel("Password: ");
      jp.add(unLabel);
      jp.add(jtfUN);
      jp.add(pwLabel);
      jp.add(jtfPW);
      jp.add(jbOK);
      jp.add(jbCancel);
      setContentPane(jp);
      pack();
      jbOK.addActionListener(new ActionListener(){
         public void actionPerformed(ActionEvent e){
            User u = new User();
            u.doLogOn();
            u.username = jtfUN.getText().trim();
            u.password = new String(jtfPW.getPassword());
            Administrator a = new Administrator();
            a.doLogOn();
            a.username = jtfUN.getText().trim();
            a.password = new String(jtfPW.getPassword());
      jbCancel.addActionListener(new ActionListener(){
         public void actionPerformed(ActionEvent e){
            logOn = null;
            setVisible(false);
   public static void main(String[] args){
      LogOn logOn = new LogOn();
class User{
   String username;
   String password;
   String[] userUsernameArray = {"Ann Smyth", "John Murphy"};
   String[] userPasswordArray = {"1", "2"};
   public void doLogOn(){
      int i, j;
      for(i = 0; i < userUsernameArray.length; i++){
         if(username.equals(userUsernameArray)){
setVisible(false);
//UserMainMenu umm = new UserMainMenu();
//umm.setVisible(true);
else{
JOptionPane.showMessageDialog(null, "Error\n\nYou have entered an incorrect username and/or password\nPlease try again", null, JOptionPane.ERROR_MESSAGE);
for(j = 0; j < userPasswordArray.length; j++){
if(password.equals(userPasswordArray[j])){
setVisible(false);
//UserMainMenu umm = new UserMainMenu();
//umm.setVisible(true);
else{
JOptionPane.showMessageDialog(null, "Error\n\nYou have entered an incorrect username and/or password\nPlease try again", null, JOptionPane.ERROR_MESSAGE);
class Administrator{
String username;
String password;
String[] adminUsernameArray = {"Administrator"};
String[] adminPasswordArray = {"0"};
public void doLogOn(){
int k, l;
String username;
String password;
String[] adminUsernameArray = {"Administrator"};
String[] adminPasswordArray = {"0"};
for(k = 0; k < adminUsernameArray.length; k++){
if(username.equals(adminUsernameArray[k])){
setVisible(false);
//AdminMainMenu amm = new AdminMainMenu();
//amm.setVisible(true);
else{
JOptionPane.showMessageDialog(null, "Error\n\nYou have entered an incorrect username and/or password\nPlease try again", null, JOptionPane.ERROR_MESSAGE);
for(l = 0; l < adminPasswordArray.length; l++){
if(password.equals(adminPasswordArray[l])){
setVisible(false);
//AdminMainMenu amm = new AdminMainMenu();
//amm.setVisible(true);
else{
JOptionPane.showMessageDialog(null, "Error\n\nYou have entered an incorrect username and/or password\nPlease try again", null, JOptionPane.ERROR_MESSAGE);

Pls. Post only once.
I think somebody already answered your problem in your other post.

Similar Messages

  • I am trying to get the artwork for an album. "Artwork Not Modifiable" appears in the artwork box and it doesn't let me drag artwork.  What can I do to fix this?

    I am trying to get the artwork for an album. "Artwork Not Modifiable" appears in the artwork box and it doesn't let me drag artwork.  What can I do to fix this?

    Words simply can't describe what a kludge iTunes has become.  Every time Apple fixes one problem, a dozen more pop up.  It's like trying to hold a bunch of ping-pong balls under water simultaneously.
    The immediate problem is that Lion with iTunes buggers the artwork.  Some it loses, some it can't find, and some appears and disappears like the Flying Dutchman (look it up...).
    The bigger issue is that so MUCH of iTunes is bad, in general.  Apple trys to use iTunes as a Swiss Army knife, using it to synch iPhones, iPads, etc.  The app has become so generic that it is actually good at nothing.
    The interfrace is kludgy; moving the library from one location to another virtually guarantees a wasted day and usually lost art, music, or backups.
    In general, Apple's hardware and software is relatively ergonomically designed.  I-Tunes, however just plain SUUUUUUUUUUUUCKS!

  • How can I get the shortcut for forced quite to work from my keyboard.

    The shortcut for forced quite stopped working from my apple keyboard.  Is there any way I can reprogram it or do I need a new keyboard? When I use a logiteck keyboard the shortcut works.  the esc key, command key, and option key work it just doesn't work as the short cut.  Any help would be great, I don't want to buy a new keyboard.
    We did just have the video card replaced, not sure if that would effect anything.
    Thanks

    The Apple keyboard has two Command and two Option keys. Did you try them all and in every different combination possible to rule out a defective key. You could also go Fullscreen and use Escape to exit Fullscreen to rule that one out. It reads like the keyboard is on its way out if the Logitech keyboard works. Also that would indicates that it's not a problem on the OS side. Hope that helps

  • HT1386 All jacked up....Trying to get the update to itunes downloaded and working, to no avail.  Any help?

    Can anyone help with this latest download?  I get the MSVCR80.dll message and cannot work through it.

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

  • [Self Solved] Problems trying to get the install.exe to run

    After trying for 3 days to get the install.exe to run on my new computer I eventually ran out of options. You could see, however, that in the task manager, once you clicked on the .exe that it would run for a bit, max out at ~8k and then disappear. The two things I could think of were that A. It might have been a registry error that is preventing me from running the .exe and B. that it might be a service that is blocking it. I did not want to go through the stress of re-installing windows just so I could get the install.exe to run over a hunch that my registry might be foul. Instead I performed a clean boot that would prevent a service from stopping the installation. Upon restarting I was able to run the install.exe and I finally have adobe reader running. For anyone who is not familiar with a clean boot it can be done as follows:
    Pressing [Win] + r OR Start > search
    and then typing "msconfig.exe" + enter will open up the system configuration screen.
    then click on the "Services" tab, followed by clicking the box "Hide all Microsoft services" so that it has a checkmark inside it, followed by clicking the button "Disable All"
    Your computer will then be prompted to restart
    Upon launching your windows interface go to your downloads folder and then try to run the install.exe, if it works, as did mine, it would appear that a certain service was blocking it.
    Hope this helps the .02% of people who actually have this problem when installing

    Alternate solution: use the offline installer from http://get.adobe.com/reader/enterprise/

  • I would like to get the program for (9012,9233 and 9101)

    Hi all,
         Now i have bought
                          the controller (9012) cRIO,
                          the module (9233)
                          the chassis (9101)  .
    i would like to get a supporting program for those device to be able to use them up (configuration and compile them up together to be able to use) .As I want to test some of my application using these device.Where can i get that program properbly.Thank you for your support.
    With best regards ,
    Kit

    Hi Kit,
    I understand your question now and I can point you to some usefull resources.  First, you mentioned the three components, the chassis (which contains the FPGA), the ReamTime controller and the module.  You also of course have your PC which is what the user will interface with to perhaps view the data on a graph.  You will need to create a new FPGA project and you will have several key components in that project:
    1) a VI on your FPGA target that is programmed to do I/O from your 9233 module.  This VI must be created and then deployed and compiled onto the FPGA (this is like programming the chassis)
    2) a VI on your RT controller that will use a DMA fifo to get the data from the FPGA.  You may also have some signal processing or some other logic on this VI.  This VI must be deployed to the RT controller
    3) a VI on your host computer that will read data from the controller, probably save it to a disk and display it on a graph. 
    I would reccamend looking at a few resources to help you get started:
    1) FPGA Design, Development and Programming Tutorial
    2) Getting Started with the FPGA Module from the LabVIEW help files
    3) LabVIEW FPGA Module On-Line Tutorial, this is a video tutorial that will be helpful
    4) Use the LabVIEW example finder (in LabVIEW go to help»Find Examples) and under the "search tab" type in 9233.  Open the 9233 getting started project that will populate in the list of available examples for the 9233.  This project will serve as a starting point for your cRIO system programming. 
    I hope this helps.  Thanks and have a great day.
    Stephen S.
    National Instruments
    1 Test is worth 1000 expert opinions

  • I am having a problem trying to get the new version of itunes to download correctly to my laptop. I have updated my ipad to the new ios 7, and windows is showing that it has been downloaded but when I connect my ipad, it is saying I have to download itune

    I really need HELP!!! I have a laptop that runs with windows vista, and I have been having issues trying to get it to download the new version of itunes that would be compatible to the new version of ios 7 that I have already updated on my ipad. I have downloaded this three times, it shows that the download is complete, but when I connect my ipad to my laptop it is still telling me that I have to download the new version again and it will not sync with my ipad until I do. Does anyone else have this issue and can anyone help me figure out how to correct it? I would be most grateful!!

    sign out from the creative cloud and then sign back in
    Sign in, Sign out | Creative Cloud desktop app

  • I am trying to get the updates for CS5 and I keep getting this message   "There was an error downloading this update. Please quit and try again later."    What does this mean?

    I am trying to update CS5 through the CS5 application.   I hit "updates" in the help menu.   It goes through its series of updates and then says  " There was an error downloading this update. Please quit and try again later."
    I have no idea what this means. Of course, I have retried this….but to no avail. Can somebody help me?

    Please do a forum search.  I and others have repeatedly answered this question a whole bunch of times recently.
    Bottom line:  the Adobe auto updater is utterly useless in CS5 and prior versions.  You need to download the updates and apply them manually yourself.
    I and others have even supplied the links for Mac and Win, which you haven't even bothered to specify.

  • Were can i get the program for my zen v pl

    i reformated my computer only to find when i took out my cd that it was brokeni downloaded from creative.com but when i connected my mp3 player it didnt show updose anyone know where i can get a older virsion of creative media source?

    What version of Windows have you got?
    If Vista, it should just work.
    If XP, you need to make sure the SP2 patch has been installed:
    http://www.microsoft.com/windowsxp/sp2/default.mspx
    Then install Windows Media Player :
    http://www.microsoft.com/windows/windowsmedia/player//default.aspx
    That should make sure the MTP driver is installed.
    You should be able to access your player in Windows Explorer under 'My Computer', or in Windows Media Player (but be careful of synchronisation - it can synchronise you full player to your empty My Music directory...)
    You don't need to install the Creative software, but it should work if you do.

  • My i tunes is not working anymore. it says the application failed to start because MSVCR80.dll was not found. I have tried re-installing the program but it doesn't work.

    Hello,
    Yesterday I tried to get onto iTunes and was unable to. I keep getting this message:
    Itunes.exe - Unable to locate component.
    This application has failed to start because MSVCR80.dll was not found.
    Re-installing the application may fix this problem.
    I have tried to uninstall and re-install the program several times but cannot get it to work. Now I get this message:
    iTunes was not installed correctly. Please reinstall iTunes.
    Error 7 (Windows error 126)
    I have tried to do what I can but am not really iTunes savy and would like to get this issue resolved. Can anyone help me?
    THANK YOU!!
    Cyn

    Hello there, Cyn.
    The following Knowledge Base article provides some great information for troubleshooting your issue. Keep in mind uninstalling and reinstalling has to be done in a very specific fashion, therefore use the guidelines from this article to accomplish this:
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/ht1926
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Trying to get the old K7T Turbo back to work ...

    Hi all,
    I am trying to build a system from old parts I have lying around:
    850 MHz Athlon,
    PC100 SDRAM,
    K7T Turbo V3
    I cannot get the system to work so far ... it will not post but hang at 0100 (RAM problems) every time ...
    This is what I have tried sofar:
    - trying different sticks of RAM (4 - all PC100, ranging from 32 to 128 MB)
    - changing PSU (a 300W Fortron came with the case ... I tried a 400W Zalman too)
    - swapping graphic cards
    - changing batteries
    - tried with the board in and out of the case
    - reseating CPU, memory, graphic card, etc ...
    Nothing of the above helped ... I noticed that (at least some of the time) the power led is flickering fast.
    I think that the board might be damaged during storage ... any suggestion is welcomed!
    Regards,
    Hans

    Hi Grayone,
    Thnx for replying! I did a visual inspection of the board (again, actually ) - no bulging capacitors, no leaking, no burn marks.
    Any other suggestions?
    Regards,
    Hans

  • Where can I get the patch for Oracle JMS to work with RDBMS 9.2.0.1

    Hi,
    In the following extract from Oracle documentation the patch is mentioned that needs to be applied.
    "You must apply a server-side patch for Oracle JMS, which ships with Oracle9iAS Release 2 (9.0.3) and the OTN release of OC4J, to work with an RDBMS 9.2.0.1 database. This patch is documented as bug 2513629; see the Metalink Web site or contact Oracle support for more information. However, it is strongly recommended that users move to RDBMS 9.2.0.2 when it is available. Users do not need to apply any server-side database patches when running with RDBMS 9.2.0.2."
    Where I can get this patch?
    Is it RDBMS patch or OC4J patch?
    I don't have access to a Metalink.
    Thanks a lot,
    Andrei

    Check out the configuration on the mapping. There you can create a data file. Do that and fill out the other parameters for the bad and discard file in that node.
    Jean-Pierre

  • I have been recently trying to get the update for the new iOS 7.1 and it keeps coming up as too much data for update. It says to check your storage and or usage and edit it them, but when I go check I have over 7.8GB of messages "saved" on my phone.  why?

    I went to my data after this message kept coming up and unlike the rest of the usage data you cannot delete your "saved" message data. I tried deleting some photos (which I don't have a lot to begin with; now I only have 40) still nothing. I then went to to my local apple store in the mall and the two guys I talked to didn't help. They said to delete the threads which I did, then delete the pictures which I also did and that should help. They were wrong they I'd say however to reset your phone if all else fails and that will deffinelty do it. But I don't want to lose all of my data so I am trying to save my things on iCloud and it won't let me do to my storage. There have been similar situations like mine on here but the backup bot isn't working on my computer. At this point I am just so lost and confused I don't know what to do. Someone please help

    Snowden has already commented on this. Messages are stored on Apple devices until they are uploaded for screening to the NSA. Apple holds these messages on your device and on the cloud service. Once the information has been uploaded to NSA, the messages then delete off your device. In order to not arouse suspecion, the device will always show you some amount to data as space being occupied on your device. Theorecically this data could be over written and not protected if they were on hidden sectors of your memory. The information stored on this "messages" partition is actually more than messages, thats why this space commitment can easily reach 3 gigs. Any computer science specialist will tell you that ASCII characters only use minimal kilobytes of data. Apple complies with this request to upload your personal data as outlined in the Patriot Act. The only way to delete this "messages" data hold is by doing a complete wipe of your device and not conducting a restore. It will clear the space off your device, but NSA actually has the information from the cloud service regardless.

  • I'm trying to get the add-on Property Bee to work on Firefox on my Mac but can't seem to fix it, tried uninstalling/reinstalling FF and add-on, no joy,tips?.

    Property Bee (property-bee.com) is an add-on that shows history of properties on Rightmove.co.uk which is extremely useful. However I can't get it to work whereas most of my friends use it and have it on Macs and PCs ranging from several years old to brand new. I'm using a Mac with the latest update and the most recent FF. Any suggestions would be massively appreciated as this add-on is so useful.

    Thanks for the quick reply, I've tried all the suggestions on property-bee but unfortunately have had no success with them.

  • Trying to get the mic on my headphones to work with my computer

    I have headphones (with a microphone) specifically for online gaming and I can't get them to work with my computer.
    The headphones have one plug for headphones and one plug for speaker. The speaker isn't working and in preferences for sound input I selected "audio line in port" but it's not picking anything up when I talk into it.
    Course my computer doesn't have a plug with a microphone symbol for it to work. Will this microphone work for my computer? Am I doing something wrong?

    The Mac has line-level audio input, not mic-level. You options are:
    Use the microphone in the PowerBook.
    Plug your headset's mic plug into the line-in jack, set the line-in gain at maximum, and shout.
    Get a mic pre-amp for your headset.
    Get a headset with built-in mic pre-amp.
    Get an USB headset.
    Use an USB mic adapter, such as the iMic
    <http://www.griffintechnology.com/products/imic/>

Maybe you are looking for

  • How do I delete a partition that was created in Bootcamp?

    I installed XP on my MBP using Bootcamp a while ago, and recently erased all the data on the partitioned drive. I have the second partition doing nothing and would just rather delete it. I have been told that I need to use Bootcamp to delete the part

  • NEED TO GET iCHAT

    So for whatever reason my iBook G4 running on Mac 10.4.9 does not have iChat...I may have accidentaly deleted it at some point. Could someone let me know where to find a download to install the program? I tried iChat AV 2.1, but it was unable to func

  • The acount information could not be verified - SQL 2005 SP3 installation on Windows 2008 R2 Failover Cluster

    Hi, We have a problem when we are trying to install SQL SP3 on SQL 2005 cluster. The problem is described bellow: We installed a new Windows 2008 R2 x64 failover cluster with two nodes. As a next step we installed SQL 2005 Enterprise edition x64 on t

  • Drill down from PDF report

    Hi, Is it possible to drill down to the detail report from the master report in PDF format in Reports 6i? Regds, Ruckmangathan

  • I wish you could play iTunes U content directly on Apple TV

    First of all, I think the Apple TV is great and a steal at $99.  But, I really, really wish there was a convenient way to play iTunes U content directly on aTV.  From what I can figure out, I have to download the content to my Mac, make my Mac's iTun