Hi all can someone help me

can someone tell me what this message means, I wrote a program to receive input from a user and output it as uppercase and lowercase, but I am getting this message, I have also included my program
thanks
c:\j2sdk1.4.0_01\bin>java Cases
java.lang.NullPointerException
     at java.awt.Container.addImpl(Container.java:584)
     at java.awt.Container.add(Container.java:298)
     at Cases.<init>(Cases.java:45)
     at Cases.main(Cases.java:58)
Exception in thread "main"
here is the program
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Cases extends JFrame {
private JLabel prompt1;
private JLabel prompt2;
private JTextField input;
private JTextField output, result;
private JTextArea outputArea;
private JLabel resultLabel;
// Constructor     
public Cases()
     super("Converting Text");
prompt1 =
new JLabel( "Enter text to convert" );
resultLabel = new JLabel ("Result");
     result = new JTextField(22);
     result.setEditable(false);
     input = new JTextField( 20 );
input.addActionListener(
new ActionListener() {
public void actionPerformed( ActionEvent e )
String words;
words= (input.getText());
result.setText(words.toUpperCase() + ' ' + words.toLowerCase());
     Container c = getContentPane();
c.setLayout( new FlowLayout() );
     c.add (prompt1);
     c.add (prompt2);
     c.add (input);
c.add(resultLabel);
     c.add (result);
     outputArea = new JTextArea( 40, 50 );
c.add (outputArea );
setSize( 500, 400 ); // set the window size
show(); // show the window
public static void main(String args[])
     Cases app = new Cases();
     app.addWindowListener (
     new WindowAdapter() {
     public void windowClosing(WindowEvent e)
     System.exit(0);

I forgot to thank you manalar, that is exactly what was wrong with my program !!

Similar Messages

  • Hi all, can someone help me in getting last login date of a user in CQ5 please?

    Hi all, can someone help me in getting last login date of a user in CQ5 please?

    CQ is REST based and does not have the concept of session. So there is no feature to track login or logout details.  Most of our customers use some kind of central authentication Ex- SSO hence no need arises to have such functionality built in.  However if needed you have the ability to implement such at a project level solution. Ex:- custom login modules or auth-handler by taking project specific constraints and requirements into account

  • Hello can someone help me I have an iphone 4 and my daughter has an ipod touch we are on the same email address but somehow with in the last 25hrs all of my contacts are gone and only hers on on my phone is there a way for me to get all my contacts back?

    Hello can someone help me I have an iphone 4 and my daughter has an ipod touch we are on the same email address but somehow with in the last 25hrs all of my contacts are gone and only hers on on my phone is there a way for me to get all my contacts back?

    If you need assistance with finding any of your restores or attempting to restore from any that happened prior to his incident follow this article
    http://support.apple.com/kb/ht1766
    IF you do find a backup that has your contacts; I'd /highly/ recommand turning off your wifi network after the restore is finished because if the issue is with your iCloud your contacts may merge back with her's.
    With iCloud you DO NOT want to share the account; bad things happen Evil evil thigns...
    But in all seriousness; if two devices have the same iCloud; iCloud is told to merge and sync infomation between hte two and can't tell that it doesn't belong to the same person

  • I have an early 2011 MacBook Pro which has been running slow for a while. After looking at responses to similar problems I have downloaded and run EtreCheck and will post the output. Please can someone help me with what it all means.Thanks in advance

    I have an early 2011 MacBook Pro which has been running slow for a while. After looking at responses to similar problems I have downloaded and run EtreCheck. Please can someone help me with what it all means.
    Thanks in advance.
    EtreCheck version: 1.9.15 (52)
    Report generated 19 September 2014 08:07:14 GMT+8
    Hardware Information: ?
      MacBook Pro (13-inch, Early 2011) (Verified)
      MacBook Pro - model: MacBookPro8,1
      1 2.3 GHz Intel Core i5 CPU: 2 cores
      4 GB RAM
    Video Information: ?
      Intel HD Graphics 3000 - VRAM: 384 MB
      Color LCD 1280 x 800
    System Software: ?
      OS X 10.9.4 (13E28) - Uptime: 0 days 0:4:29
    Disk Information: ?
      Hitachi HTS545032B9A302 disk0 : (320.07 GB)
      S.M.A.R.T. Status: Verified
      EFI (disk0s1) <not mounted>: 209.7 MB
      Macintosh HD (disk0s2) / [Startup]: 319.21 GB (147 GB free)
      Recovery HD (disk0s3) <not mounted>: 650 MB
      MATSHITADVD-R   UJ-898 
    USB Information: ?
      Apple Inc. FaceTime HD Camera (Built-in)
      Apple Inc. BRCM2070 Hub
      Apple Inc. Bluetooth USB Host Controller
      Apple Inc. Apple Internal Keyboard / Trackpad
      Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ?
      Apple Inc. thunderbolt_bus
    Gatekeeper: ?
      Mac App Store and identified developers
    Kernel Extensions: ?
      [not loaded] com.seagate.driver.PowSecDriverCore (5.2.4 - SDK 10.4) Support
      [not loaded] com.seagate.driver.PowSecLeafDriver_10_4 (5.2.4 - SDK 10.4) Support
      [not loaded] com.seagate.driver.PowSecLeafDriver_10_5 (5.2.4 - SDK 10.5) Support
      [not loaded] com.seagate.driver.SeagateDriveIcons (5.2.4 - SDK 10.4) Support
      [loaded] com.sophos.kext.sav (9.1.55 - SDK 10.7) Support
      [loaded] com.sophos.nke.swi (9.1.50 - SDK 10.8) Support
    Launch Daemons: ?
      [loaded] com.adobe.fpsaud.plist Support
      [loaded] com.microsoft.office.licensing.helper.plist Support
      [running] com.sophos.autoupdate.plist Support
      [running] com.sophos.configuration.plist Support
      [running] com.sophos.intercheck.plist Support
      [running] com.sophos.notification.plist Support
      [running] com.sophos.scan.plist Support
      [running] com.sophos.sxld.plist Support
      [running] com.sophos.webd.plist Support
      [running] com.trusteer.rooks.rooksd.plist Support
    Launch Agents: ?
      [loaded] com.divx.dms.agent.plist Support
      [loaded] com.divx.update.agent.plist Support
      [running] com.sophos.uiserver.plist Support
      [running] com.trusteer.rapport.rapportd.plist Support
    User Launch Agents: ?
      [loaded] com.adobe.ARM.[...].plist Support
      [running] com.amazon.music.plist Support
      [loaded] com.google.keystone.agent.plist Support
      [not loaded] jp.co.canon.Inkjet_Extended_Survey_Agent.plist Support
    User Login Items: ?
      iTunesHelper
      TomTomHOMERunner
      AdobeResourceSynchronizer
      Dropbox
    Internet Plug-ins: ?
      FlashPlayer-10.6: Version: 15.0.0.152 - SDK 10.6 Support
      DivX Web Player: Version: 3.2.1.977 - SDK 10.6 Support
      AdobePDFViewerNPAPI: Version: 11.0.09 - SDK 10.6 Support
      AdobePDFViewer: Version: 11.0.09 - SDK 10.6 Support
      Flash Player: Version: 15.0.0.152 - SDK 10.6 Support
      EPPEX Plugin: Version: 10.0 Support
      Default Browser: Version: 537 - SDK 10.9
      OVSHelper: Version: 1.1 Support
      QuickTime Plugin: Version: 7.7.3
      SharePointBrowserPlugin: Version: 14.4.4 - SDK 10.6 Support
      iPhotoPhotocast: Version: 7.0 - SDK 10.7
    Safari Extensions: ?
      Ultimate
    Audio Plug-ins: ?
      BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
      AirPlay: Version: 2.0 - SDK 10.9
      AppleAVBAudio: Version: 203.2 - SDK 10.9
      iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins: ?
      Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    3rd Party Preference Panes: ?
      Flash Player  Support
      Perian  Support
      Trusteer Endpoint Protection  Support
    Time Machine: ?
      Skip System Files: NO
      Auto backup: YES
      Volumes being backed up:
      Macintosh HD: Disk size: 297.29 GB Disk used: 160.38 GB
      Destinations:
      Data [Network] (Last used)
      Total size: 2 TB
      Total number of backups: 99
      Oldest backup: 2012-04-20 17:05:32 +0000
      Last backup: 2014-09-18 23:49:25 +0000
      Size of backup disk: Excellent
      Backup size 2 TB > (Disk size 297.29 GB X 3)
      Time Machine details may not be accurate.
      All volumes being backed up may not be listed.
    Top Processes by CPU: ?
          6% InterCheck
          5% iCalExternalSync
          3% WindowServer
          2% CalendarAgent
          2% SystemUIServer
    Top Processes by Memory: ?
      152 MB SophosScanD
      147 MB InterCheck
      106 MB SophosAntiVirus
      66 MB Dropbox
      57 MB com.apple.iTunesLibraryService
    Virtual Memory Information: ?
      161 MB Free RAM
      1.55 GB Active RAM
      1.41 GB Inactive RAM
      902 MB Wired RAM
      611 MB Page-ins
      0 B Page-outs

    Uninstall Trusteer software
    http://www.trusteer.com/support/uninstalling-rapport-mac-os-x
    Remove Sophos
    https://discussions.apple.com/message/21069437#21069437

  • I cant install or uninstall my itunes. I get this error 'the feature you are trying to use is on a network resource that is unavilable' Now ive seen the solutions on here but im using windows 8.1. Ive tried all options so please can someone help?

    I cant install or uninstall my itunes. I get this error 'the feature you are trying to use is on a network resource that is unavilable' Now ive seen the solutions on here but im using windows 8.1 and none of them work for me. Ive tried all options so please can someone help?

    That doesnt work for me. I removed itunes through the windows cleaner method as shown in other posts and re-installed itunes. Now im getting this error
    iTunes was not installed correctly. Please reinstall iTunes
    Error 7 (Windows error 126)
    Also my Microsoft office has stopped working after i deleted Itunes which is really strange.
    Can somebody provide me a solution please....

  • I updated to iOS 6 on my iphone 4 and updated my macbook pro with and now my mail is not working at all on my iPhone.  I can receive/send on my laptop, but not my iPhone!! Can someone help?

    i updated to iOS 6 on my iphone 4 and updated my macbook pro  and now my mail is not working at all on my iPhone, whether on wifi or 3G.  I can receive/send on my laptop, but not my iPhone!! Can someone help?

    Which email provider are you using?  If it's Gmail, try unlocking your account here: https://accounts.google.com/DisplayUnlockCaptcha.

  • Hi, just upgraded my iphone 4s to ios6. all of my playlists are gone and if i create a new one, i does not appear on my phone. itunes match is activated. can someone help me?

    Hi, just upgraded my iphone 4s to ios6. all of my playlists are gone and if i create a new one, i does not appear on my phone. itunes match is activated. can someone help me?

    You should be syncing your contacts with an app on your computer or cloud service (iCloud, Gmail, Yahoo, etc), and not relying on a backup.  If you haven't been doing this, start now and then restore your old backup.  You will then be able to sync the new contacts back into the phone.  However, you will lose all messages, etc newer thant the backup.

  • Syncing my 3rd Gen IPod Touch, All my music and videos show in the device on iTunes, but when I look at the device itself, it say no content.  Can someone help?

    Automatically Syncing my 3rd Gen IPod Touch, All my music and videos show in the device on iTunes, but when I look at the device itself, it say no content.  Can someone help?  The Apps seem to sync fine, just not the music, videos, podcasts, or audiobooks.

    Change your iCloud ID password: http://support.apple.com/kb/HT5624.  After doing so, go to Settings>iCloud, tap Delete Account, then sign back in with the new password.

  • Is anyone else having any problems with their music in your library, in the middle of all my songs I'm getting a skipping noise. Never had this problem before. Can someone help?

    I have Windows Vista and last week I upgraded my iTunes, i think it's up to 11. something or other and now all my music in my iTunes library has this scratch-type noise in the middle of the song. I've never had this issue before, all my songs played wonderfully and now every song has this scratching-type noise in the middle of it. Can someone help me?

    OK, after looking into the settings on "my account" on the Verizon website, it appears that "caller ID" was removed from my "features" on my line. The only reason I actually noticed this is because I have the same phone as someone else on our account, so I looked at their features and noticed mine was missing. Any idea how to get it back on there? I can't seem to figure it out.

  • HT1267 my iphone restored automatically, and now i have lost everything, including apps, contacts, texts etc...i cannot retrieve apps from my itunes as my new itunes did not have all the apps, due to rebooting my comp..can someone help on how i can retrei

    My  phone  automatically restored, and now i have lost everythig apps,contacts,texts..i mean everything.... and my itunes does not have anything as my computer had to be reboot,due to a new hard disk...
    Can someone help,i really need my contacts  back asap....

    well i put my phone on charge, when the connect to itunes icon appeared.therefore, resulting in restorage of the phone.
    The prompt to connect to iTunes is automatic, but not the restore process. You must manually select restore. There is no automatic restore.
    in order to re-download apps, i will need to re-purchase...and i cannot afford the amount,
    Read the link I provided. Had you done so, you would know you do not have to re-purchase apps when re-downloaded.
    but to be honest, i am concerned about my contacts. which have completely disapeared and i just want them back.
    Unless your contacts were synced with a supported address book app on your computer as designed and intended and your contacts were included with your computer's backup, or unless your contacts are available online with a free Apple iCloud account, with a free Yahoo account, or with a free Gmail account with all providing the ability to sync contacts over the air, your contacts are gone.

  • Re: My Macbook 2009 model was recently upgraded with a new hard drive and upgraded to Mountain Lion OS. I am battling to retrieve all my photos that were ''saved'' in iCloud. Can someone help?

    Re: My Macbook 2009 model was recently upgraded with a new hard drive and upgraded to Mountain Lion OS. I am battling to retrieve all my photos that were ''saved'' in iCloud. Can someone help?

    If you are trying to recover photo stream photos, they are only held in iCloud for 30 days.  All you would be able ro recover is photo stream photos from the last 30 days.
    If you have an iOS device that still has the photo stream photos one it, you can save them to the camera roll by opening the my photo stream album, tapping Edit, tap the photos, tap Share, tap Save to Camera Roll.  Once in the camera roll, they can be imported to iPhoto on your Mac as explained here: http://support.apple.com/kb/HT4083.

  • My Macbook 2009 model was recently upgraded with a new hard drive and upgraded to Mountain Lion OS. I am battling to retrieve all my photos that were ''saved'' in iCloud. Can someone help?

    My Macbook 2009 model was recently upgraded with a new hard drive and upgraded to Mountain Lion OS. I am battling to retrieve all my photos that were ''saved'' in iCloud. Can someone help?

    While we all have MacBooks in this forum most of us don’t use iCloud. There's an iCloud Support Community where everybody uses iCloud. You should also post this question there to increase your chances of getting an answer. https://discussions.apple.com/community/icloud/icloud_on_my_mac

  • My iPhone was stolen in Asia and it's now in Germany. How do I get it back? All I have left is a serial number, apple ID and password, plus a police report. What do I do now? I really want my phone back. Can someone help me? Thank you, Bobi

    My iPhone was stolen in Asia and it's now in Germany. How do I get it back? All I have left is a serial number, apple ID and password, plus a police report. What do I do now? I really want my phone back. Can someone help me? Thank you, Bobi

    No one here can help you, nor can Apple or any carrier. If you know the location, contact the local police where it is located.

  • HT4528 Im trying to update my apps. And it telling me i purchased them once i go to sign in to update them, i sign in and it goes straight to my account and all im trying to do is update my apps. Can someone help me out to updare my apps . Thanks

    Im trying to update my apps. And it telling me i purchased them once i go to sign in to update them, i sign in and it goes straight to my account and all im trying to do is update my apps. Can someone help me out to updare my apps . Thanks

    Sweetsusieq wrote:
    ... i sign in and it goes straight to my account ...
    And... What seems to be the problem...?

  • HT204492 can someone help me ? My iMac remote control isn't working properly , well all buttons are working apart from the MENU button !! Can anyone shed any light on this ?

    can someone help me ? My iMac remote control isn't working properly , well all buttons are working apart from the MENU button !! Can anyone shed any light on this ?

    As this is the forum for PPC (pre-2006, non Intel) iMacs I assume that is what you have.
    Try pairing the remote again:
    How to Pair your Remote to your Mac:
    http://support.apple.com/kb/HT1619?viewlocale=en_US

Maybe you are looking for

  • How to consume oData from HANA?

    Hi All: I am starting using HANA (the trial public version), and I want to expose an oData service that allows me to feed an aplication. How it is possible to do this? Is possible to do it from HANA Studio? Thanks!

  • Video - audio asynchron

    well the more i "try to" use LR 5 the more issues i notice. i have a lot of captured videos (from TV and cameras) i like to catalog and organize with LR. they play fine in WMP, VLC or MPC. no audio issues. in fact any freeware app i tried just plays

  • Java ini jar file

    Hello list, I am searching for the jar file for edu.sinica.iis.cscl.util.IniFile for this clas sbut after lot of google i din't found any so if anyone here can help for this will be appreciable. thanks in advance Regards bharat

  • How to maintain the state(opened/closed) of a Hierarchical expanding list

    Hi, I've created a list with template "hierarchical expanding". When I click on the list node to go to a page, page related to the node appears but the tree doesn't remain expanded. It always shrinks back to the highest level. Please suggest a soluti

  • Exception when run popup page in weblogic

    Hi all, I am using Jdeveloper 11.1.1.1.0 and weblogic standalone 10.3.1.0 I created web app with popup page, I defined outcome of popup page in adfc-config.xml, It is OK when run in Jdeveloper. Popup page is opened. I installed ADF framework for webl