How to compile programs from this sites tutorial?

Hi, so i'm reading the "GUI" tutorial on this website, it's great but when I compile the example "source codes" it gives me this error:
Error: File is in the wrong directory or is declared part of the wrong package. Directory name 'Anna - java' does not match package name 'components'.
So I get the source codes from this website: http://java.sun.com/docs/books/tutorial/uiswing/examples/components/index.html#ButtonDemo
So say I get BorderDemo.java .... when I compile it it gives me this error: Directory name 'MyDocuments - java' does not match package name 'components'.
How do I make it compile and run properly, and how can I ALSO compile it properly withOUT the package "components"?
thanks.

Error: File is in the wrong directory or is declared part of the wrong package. Directory name 'Anna - java' does not match package name 'components'.That error tells you all you need to know. You have to respect the existing directory structure, you can't change it. If they've put their code into a package called 'components' it has to be in directory called 'components'. Period. If you want to change that (a) you will have to change all the internal package names in the Java code, and (b) 'Anna - java' is not a legal Java package name.

Similar Messages

  • How do I unsubscribe from this site

    I can't stop the mail from coming in.... I did go to my files and checked NO... but it doesn't stop. Anyone know how to unsubscribe?  thanjs

    See Stopping emails from ASC Please read it carefully and follow all the steps.
    regards

  • How can I download content from this site

    How can I download content from this site:
    http://www.oxfordbusinessgroup.com/full_content/agriculture-67

    What kind of content is that (text, image, PDF)?<br />
    On that first page it is only an image (Tools > Page Info > Media)

  • HT1347 from this site how i can add software to iphone

    from this site how i can add software to iphone

    From what site?
    You can only get apps/softare from the app store in itunes.

  • I have blocked a sites for view the picture. But I want now to view the picture from this sites. How do I unblock the site again???

    I have blocked a sites for view the picture. But I want now to view the picture from this sites. How do I unblock the site again???

    With the site on display, click on the site identity button (for details on what that is see [https://support.mozilla.com/kb/Site+Identity+Button]) and then on More Information. This will open up the page info dialog.
    First select the Permissions panel, make sure that "Load Images" is set to allow (selecting Use Default should also work)
    Next select the Media panel, then click on the first item in the list. Use the down arrow key to scroll through the list. If any item has the option "Block images from (domain name)" selected, de-select the option.
    This should hopefully resolve your issue, but also see https://support.mozilla.com/kb/Images+or+animations+do+not+show
    Some add-ons can also block images, for example if you have AdBlock Plus installed, make sure that you have not accidentally created a filter to block the images.

  • Hi, would you please help me to get red of hips of emails that I am receiving from this site? I want to delete my profile. How can I do it?

    Hi, would you please help me to get red of hips of emails that I am receiving from this site? I want to delete my profile. How can I do it?

    Read Frank Caggiano's User Tip here: Stopping emails from ASC

  • How to download elearning classes from this site.

    hi.
    this is yugandhar.
    does any one give me the idea on how to download the elearning classes from this site. is it possible.

    Hi,
    Its possible to download e-learning from this site. Go on to the homepage of e-Learning ans select the topic of your chioce:
    https://www.sdn.sap.com/irj/sdn/elearn
    Regards,
    Subhash
    P.S: Please close the thread once your question is resolved.

  • I downloaded a plug-in from this site and it's posting for me on FB. Please jelp me delete.

    I downloaded a plug-in from this site to change the look of my FB profile:
    [http://www.cuvce.com/download/update-fb1.php?h=eNortjI3sVKqSS4tS07VS87PrTHRM0gyNKpJS0oyNEESzigpKVA1dlQ1cgOi8vJyvbTE5NSk_PxssKyhkaWlmYGZkaWJkjVcMHPaGoM, Change Facebook profile ]
    It has since began to post on each of my friends profiles as if it is a wonderful idea and it's not. Please help me delete it. It is not coming up as an application. It also utilized Firefox as a supporter or used its logo along with its promotion. It downloaded Bing as a toolbar as well.

    That sounds like an unusual problem. Did it install as an Extension, or as a Plugin? Check in the Addons Manager, and check to see where it appears. If it appears in the Plugins area, then you can disable the plugin, killing its ability to do anything. If it is an Extension, it will be under the Extension section of the Addon Manager. Select to Uninstall and then allow it to do what needs to be done to remove it from your system. If nothing else works, you could try creating a new profile in Firefox and using it instead.
    For more information about using the Firefox Profile Manager, I suggest you read [http://support.mozilla.com/en-US/kb/Managing%20profiles this] article on the Mozilla Support zone. While it does state that features such as the Profile Manager are for advanced users and developers, it can also be used in situations where an addon installs itself and you have difficulty removing it from a profile.
    I suggest you open a program such as Notepad on Windows (or TextEdit on Mac OS X), and then note down the Extensions and Themes you make the most use of when browsing the internet. Generally, addons such as AdBlock Plus will rank highly on a list such as this, and they tend to be the first extensions I install.
    If you do decide you want to customize your Facebook interface in the future, did you know there are several ways to do so with extensions for Firefox? Using [https://addons.mozilla.org/en-US/firefox/addon/stylish/ Stylish] and [https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/ Greasemonkey], as well as their respective sites (Userstyles and Userscripts, respectively) can allow you to find some methods for tweaking your Facebook profile. Note that these customizations are local to you, as are the ones you initially attempted to install. In other words, they are only visible on your computer.
    For example, if you were to customize your Facebook on your PC, and then use a friend's computer, you would not see the customizations, even if they were using Firefox as well. This means you can have your Facebook profile how you want it, without making it harder for others to see. I hope this is of help, and thanks for using Firefox!

  • HT4673 how to uninstall programs from Mountain Lion?

    how to uninstall programs from Mountain Lion?

    Hi,
    Theres a couple ways to uninstall programs. The launchpad is the rocket icon on the dock. If you open that you should see your apps spread out as icons as if it would be on a iphone or other iOS device. If you just click the icon with your mouse button and continue holding the mouse button the will shake and show the X. If you click that X it will ask if you want to delete the program. This only works for programs downloaded through the APP Store. If a program does not have an X then proceed to the next way of uninstalling
    -- The way to delete a program that will not delete the previous way is as followed:
    Open finder
    - On the left side you will see applications > Click that
    - Then you will see all the programs on the right side.
    - If you click on the program and drag it to your trash bin it will ask if you would like to make changes and delete.
    - Just make sure not to delete anything that was preinstalled with you Mac

  • How to undo "Forget about this site" to restor my history???

    how to undo "Forget about this site" to restor my history
    i use this item in right click in history window
    what do i do?

    Using "Forget About This Site" will remove everything from that domain like bookmarks, cookies, passwords, cache, history, and exceptions, so be cautious if you need to keep passwords or other data from that site and you can't recover from that unless you have a backup of the affected files.
    It doesn't have any lasting effect, so if you revisit such a 'forgotten' website then data from that website will be saved once again.

  • When I try to open live hot mail I get this message:The Windows Live Network is unavailable from this site for one of the following reasons:

    When I try to open live hot mail I get this message: The Windows Live Network is unavailable from this site for one of the following reasons:
    * This site may be experiencing a problem
    * The site may not be a member of the Windows Live Network
    You can:
    * You can sign in or sign up at other sites on the Windows Live Network, or try again later at this site.
    However, when I open hot mail in IE it opens just fine. Tried changing the password as suggested but it did not help in Firefox.

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"

  • HT1296 i have downloaded songs through free mp3 app. how to transfer songs from this app to my laptop

    I have downloaded songs through free mp3 app which has a download features in the task bar and all the songs downloaded show up in this. How to transfer songs from this app to my laptop.
    Thanks

    Connect your iPad to iTune (computer) and use File Sharing to copy the MP3 to computer.
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%208/318aff1df0a4de96506 56dbe6ebb40d6.jpg

  • How to show rss from other sites on my site?

    how to show rss from other sites on my site?
    i'd like to have a window on my site that shows rss from
    another site
    (their content in a window on my site)
    thanks
    lenny

    What version of DW do you have. The later versions have RSS
    script generators (I believe) for consuming feeds. Otherwise, you
    can use 3rd party sites to generate the code, or you can use a
    server side scripting language to consume the feeds.

  • If i delete mail in G-mail than automatically delete in Thunderbird, How can I prevent from this there is any solution to remain mail in thunderbird?

    If i delete mail in G-mail than automatically delete in Thunderbird, How can I prevent from this there is any solution to remain mail in thunderbird?

    If you have a gmail IMAP mail account, you need to understand tht you are remotely viewing the server folders, so basically the folders you see in Thunderbird are the same folders you see when you use webmail - (logon to google account via browser).
    If you want to delete emails off the server, but keep those specific emails accessible in Thunderbird, then you need to move/copy them from the Thunderbird IMAP gmail mail account and store them in Local Folders account in suitably created folders before you delete them from the IMAP mail account.

  • I got fab advice from this site for getting hotmail contacts onto ipad 2, can anyone tell me why my folders are empty though?

    I got fab advice from this site for getting my hotmail contacts onto ipad 2, but all my folders appear empty, can anyone tell me why?

    I got fab advice from this site for getting my hotmail contacts onto ipad 2, but all my folders appear empty, can anyone tell me why?

Maybe you are looking for

  • How to set different color for items in selectManyCheckbox

    hi, I would like to change item text background color for each item on selectManyCheckbox (different for each item). It is only 5 items so that could be static reference or select. I know only how to change background for all items af|selectManyCheck

  • Error when adding a ZFS Storage in the Desktop Provider configuration in Oracle VDI

    Hello, When I tried to add a Desktop Provider in Oracle VDI I received an error in the 4 option after the Certificate verification in Specify Storages. Here's the log: LA M▒<81>S FINA: thr#20197:"Thread-46528" Congestion Retry 1 for root at 10.10.10.

  • Adding quantity field for the same material number in Table control

    Hello Experts, I have an requirement, where I need to add the quantity field when the material number is repeated in a table control. Here I show the pop-up message "Material already exists, do you want to add the quantity". If the user clicks on Yes

  • DAQmx has no Advise VI, how can I get around that in my programming?

    I am reading a switch through DAQmx, I need to make timing calculation on each change (on/off) but there is no Advise VI in the DAQmx functions. I need to use the on-change terminal on the Advise VI. I've implemented the same application using FieldP

  • Default topic for unmapped IDs

    I have been going through my client's application, with BugHunter enabled, and when I find a dialog box that has not yet been mapped in the Map ID file, I add the map ID and the associated topic. But - what if I miss a "buried" dialog box? Currently,