Why i can't import myOwnPackage.myOwnClass ?

Hello.
I am using NetBeans 6.5
I want to import this code wish is located in D:/NetBeansProjects/BoardGame/scr/Board.java
import javax.swing.JPanel;
public class Board extends JPanel
public Board()
}To another java source code with is located in D:/NetBeansProjects/BoardGame/scr/SkeletonGame/Skeleton.java
package SkeletonGame;
import javax.swing.JFrame;
import src.Board; // I dont know why i am geting an error here;
                          // The error says: package does not existe;
                          // Even if i create a folder called src within the src folder
                          // and put Board.java inside i still get package does not existe;
                          // I even tried import D.NetBeansProjects.BoardGame.scr.Board;
                          // But it dident work either :(
public class Skeleton extends JFrame
public Skeleton()
add(new Board()); // This error is understandible since the Board.java
// it's unrecognized;
// Rest of code here;
}Please SomeOne Help
Edited by: Laythe on Dec 4, 2009 8:00 PM

CeciNEstPasUnProgrammeur wrote:
You can't import classes from the default package. Which is one of the reasons why you shouldn't be using it in the first place.
®ok, after taking your advice i put Board.java in another folder located in: D:/codes/Board.java
but when i import it to Skeleton.java i still get the same problem.
of course this is how it goes:
package code;
import javax.swing.JPanel;
public class Board extends JPanel
    public Board()
package SkeletonGame;
import javax.swing.JFrame;
import code.Board; // I still have the same problem;
//import D.code.board; // this does not wrok either;
public class Skeleton extends JFrame
    public Skeleton()
        add(new Board());
}

Similar Messages

  • Why i can't import videos from my Sony cam with iMovie on ipad 2?

    Why i can't import videos from my Sony cam (HDR-XR500) with iMovie on ipad 2?
    With my iMac i can import videos in iMovie but with iMovie iPad 2 we can't do this...very bad..it's a minimum to can import video from cam!!
    Bye.

    Same with my Canon A 620 Ppwershot! :-((((
    I want to create short diving movies on holidays with iMovie-editing and sent them to friends.
    It does not work.
    But that was one of the main reasons buying iPad and iMovie :-(((((

  • I have 2692 songs imported to my iTunes library and I've used 18.9 GB, why I can't import the rest of my CDs?

    I have 2692 songs imported to my iTunes library and I've used 18.9 GB, why I can't import the rest of my CDs?

    You really don't give us enough information to say.  Maybe you have filled up your hard drive?  Are you seeing any error messages (putting them down here exactly as you see them would help greatly).

  • Why I can't import the sidecar.xml anymore?

    For more than 1 year I used sidecar.xml generator for write the titles of the articles and the export/import in every different size of each issue of my magazine. To import I chose "import multiple articles" and chose the sidecar.xml folder.
    Now with the latest update this seem don't work anymore and it's a HUGE problem for me and I think for many others. I read about this new path-based sidecar.xml files but I don't need it, I want to use the old way to import my xml that worked fine.
    On your release notes: "There are now two different methods for using sidecar.xml files to import articles. The classic sidecar.xml workflow is still supported—the sidecar.xml format and workflow remains unchanged." and then why I can't import anymore the sidecard generated from sidecar.xml generator?

    Hi Bob,
    I’m Tyler. I have the same problem of ‘can’t import the sidecar.xml’.
    I did some work as the metrosur provided on the top:
    • Write the titles in the xml files (manually or using sidecar generator)
    • Copy the xml file (without folder) in the main folder with all other indesign folders
    • Upload all directly to Adobe servers
    But there was a new issue happened that can’t order article automatically
    Could you give me some help about a few questions?
    1) I saw your workaround in comments, but I can’t try this way for the moment.
        I want to ask that can solve this order problem?
    2) Do you know what time is this problem will be resolve because it’s very important to me.
        When this issue resolved, can you announce it in the comments or others?
    I would very appreciate for your help.

  • Why i can't import a clip of AVCHD format from iPhoto originaly from my Sony NEX-5N

    why i can't import a clip of AVCHD format from iPhoto originaly from my Sony NEX-5N?

    Hi there. For anyone searching, here are the results of my research and corresponding advice back to Sony...
    Thanks, your comments looked correct but did not solve my problem. You may be interested to know after much testing and research, I was able to ascertain that some of the camera's AVCHD settings iMovie cannot see at all (only some, which made it even harder to figure out!). Plus, if you have recorded movie clips in more than one format to the memory card (MP4 or any one of the AVCHD's), iMovie cannot see any of the AVCHD's.
    Bottom line - forgo the benefits of AVCHD on the Sony NEX-5N and just use MP4 until Apple makes it easier.

  • HT4489 why i can't import my contact from my android to iphone

    why i can't import my contact from my android to iphone

    install davdroid and it will sync android to icloud.

  • Why I can't import o sync my videos made with my IPhone 4S?

    I can't import o sync my videos made with my IPhone 4S. Have try ICloud Photo Stream, IPhoto, Image Capture, Drang and Drop, Dropbox, also turning it on and off, nothing seams to work. Can someone please give a efective solution? Thanks

    The iPhoto app (version 9.4.3) on my iMac (with OS X, version 10.8.4) no longer imports videos from my iPhone 5 (with the latest version of iOS).  This problem arose suddenly roughly one month ago.  Whenever I connect my iPhone to the iMac, all my photos are imported without a problem, but I get the following error message for all of the videos on the iPhone:
    I get the same error message when my children try to import videos from their 5th gen iPod touches.  The videos simply do not get imported and they remain on my iPhone anmd the iPod touches.  Strangely, I can send the videos via iMessage or email to other iPhones/iPod touches and they play with no problem on the recipient iDevices.  
    Again, this problem began suddenly roughly one month ago - I was able to import videos from my iPhone 5 without incident before it suddenly stopped working - and I am stumped at how to correct this problem.
    I do not have any issues with storage capacity on my iMac, so that possible explanation can be ruled out.
    Thanks in advance for any assistance.

  • Why I can't import iMovie into Apple Configurator without asking me for more codes. If iMovie is free, and I upgraded the latest version and to Yosemite.

    Previously, our school bought a number of codes for iMovie. One of our MacAirs that supervises some iPads through Apple Configurator showed that it was free. However, another Mac Air did not saying that I needed to import more codes. I upgraded everything, software, iMovie in iTunes, and Apple Configurator. Everytime I upload iMovie into Configurator it shows I only have 2 codes, while on the other MacAir, it shows it as free.

    Can I import photos from iPhoto ('08; 7.1.5) into latest version of Aperture without upgrading my iPhoto to the iPhoto '11 version?
    To elaborate a bit on TD's answer:
    You can import only folders of images or selected image files that have been exported from older iPhoto libraries, not the libraries themself.
    Aperture 3.4.5 cannot work with iPhoto Libraries that have not been upgraded to iPhoto 9.4. or later at all:
    You cannot open them in Aperture:
    And you cannot import them as a library to create an Aperture library from the older iPhoto Library.
    Without upgrading to iPhoto '11 your only option would be to export your original images and the edited versions from iPhoto '08 and to import the folders of images into Aperture. That would be a lot of work, a waste of disk space, and break the lossless workflow.  You will clutter your Aperture library with duplicates (version and edite image) that are no proper original-version pairs.
    For a smooth transit from iPhoto to Aperture I strongly recommend to bite the bullet and to upgrade to iPhoto '11  to upgrade your iPhoto libraries to the new version 9.4.3 to preserve all the previous work - albums, books, ratings - you have done in iPhoto.
    Aperture 3.3: Using a unified photo library with iPhoto and Aperture
    Regards
    Léonie

  • Why I can't import AI files into Flash CC?

    I used to work with CS5 and I had no problem importing files, but with the CC version, simply the images didn't appear... I don't understand why.
    Should I change something in preferences? It seems as if Flash doesn't recognise the ai files

    Test out if you can directly copy ai files to the clipboard and paste it in flash.
    There should pop up a dialogue, where you get 4 options.
    The first one will convert the ai to bmp., which you rarely want.
    the lower three imports the drawing as vector.

  • Why I can`t import media file to my second disk?

    I install ssd on my mbp as startup disk,when I try to import media,I can`t select my HDD as save path? What should I do?

    To get the easy stuff out of the way, your drive must be formatted as Mac OS Extended (journaled). I would assume it already is since this used to be your boot drive.
    Now on to more complicated stuff.
    The Final Cut Events and Projects must go in the Movies/Final Cut Projects and Movies/Final Cut Events folders in your Home folder. Or they can go in the Final Cut Projects and Final Cut Events folders at the top level of a non-boot drive. Moves should be made inside Final Cut Pro X to preseve the links.
    What I did was to put my OSX and Apps on the SSD, and then I put the rest of my Home Folder onto the Hard Drive. This includes FCP, iMovie, iPhoto, Aperture, Garageband, and all my documents. When you split your home folder like this, it takes some special considerations. I found a website by frequent Apple Discussions Contributor James Ponds (Pondini) to be very helpful in setting up my Home Folder.
    Here is a link to his website.
    http://pondini.org/OSX/Home.html
    Here is a link to the specific post for setting up a home folder on a secondary drive.
    http://pondini.org/OSX/SetupOther.html

  • Any ideas why I can't import some AVI files into CS6?

    The file is coming up as H.264/MPEG-4 AVC and imports into CS3 without any issues,plays fine in Bridge CS6 too.(Cretive Cloud User)

    What is the codec inside that MPG wrapper?
    Read Bill Hunt on a file type as WRAPPER http://forums.adobe.com/thread/440037
    What is a CODEC... a Primer http://forums.adobe.com/thread/546811
    What CODEC is INSIDE that file? http://forums.adobe.com/thread/440037
    Report back with the codec details of your file, use the programs below... a screen shot works well to SHOW people what you are doing
    http://forums.adobe.com/thread/592070?tstart=30
    For PC http://mediainfo.sourceforge.net/en or http://www.headbands.com/gspot/
    For Mac http://mediainspector.massanti.com/

  • Why I can't import a MPEG-4 file to IPad?

    Hi,
    I tried to sync my Ipad with Imac to import an MPEG-4 files, but it seems impossibile because Ipad don't support this type of file. Is it correct? It's a MPEG-4, the size is 700,8 MB (1920 x 1080); codec h264, AAC; color profile: HD (1-1-1).
    Thanks

    Hello Pacib72,
    Thank you for using Apple Support Communities.
    You might try the suggestion offered by Jolly Giant in this thread:
    What video formats does the iPad support?
    https://discussions.apple.com/thread/2526254
    Regards,
    Jeff D.

  • Lightroom 5 can't import to a FIXED drive called A: or B: even if that's where your catalog is

    This what I consider a bug for lightroom 5.  It simply does not allow you to import to a fixed hard drive called A: or B: even if that is where the catalog was opened from and where all your other photos are stored. 
    Yes I know why... A: and B: used to be used for floppy drives back in the stone ages... however windows has allowed you to assign them to hard drives for decades now, and as time goes on,  you are going to be seeing a lot of computer users who have in fact never heard of a floppy drive and have never even seen a floppy disk.. it's just something they heard about in history class.. if they weren't sleeping.   
    You will be getting more and more technical support issues when the following scenario happens...
    I was running out of room for my data, so I went out and bought me a nice new huge drive... Installed the drive per the instructions and went to 'disk management' to add an additional drive to my system..   It eventually asked me for a drive letter, and A: was at the TOP of this list, so I used that...   then formatted the drive and all was great.. windows reports a fixed drive called A: with a ton of free space... so I moved all my lightroom data to A: and opened the catalog from A: and it started lightroom just fine.. and all my photos are there and this is great!    You can do everything with the hard drive being A: or B:  so I'm done messing with it... well a few weeks or months go by, and I've long forgot about the install process and now I have 13 other applications using my A: drive  and I finally have a break in my busy schedule so I go out and shoot some photos.. I get back, install my memory card in my computer and prepare to import my files to the hard drive where my catalog is...... but I CAN'T!!! A: and B: do NOT EVER show up in the lightroom list of drives... and WHY NOT??? I can't understand why lightroom can't import to something my operating system is reporting as a FIXED drive.     Now I have all this stuff on my huge drive called A: or B: and it's going to be a huge task to re-assign that drive to another letter because all these other applications will be looking for their stuff on A: or B:  Ugh 
    Ok, so Adobe is trying to save us from ourselves and not allow us to try to import to a tiny disk that could not even hold one of our photos... uh... WHY?  Just put A: and B: in the list if the operating system is reporting them and if someone DOES have a floppy drive, called A: or B: and they try to import something to it.... they will just get an error saying it won't fit... problem solved!    What is REALLY ironic is that lightroom WON'T EVEN RUN ON ANY MACHINE WITH A FLOPPY DRIVE IN IT!!!!    You could put a USB floppy drive on your windows 7 or 8 machine... but when you do that... it's NOT necessarily A: or B:... you can make it whatever you want... leaving out A: and B: doesn't help ANYONE at all.
    Now, assume this user is in their early 20's... they have never ever seen a floppy disk, and could not buy one if they wanted to...  which they don't... they just can't understand why this is happening.. why is my huge drive NOT in the list??? why is it not there?  I don't understand this. 
    It should be noted that this also happens if A: or B: is a network drive as well.    Floppies have been obsolete for a long time, and in fact you haven't been able to buy a new computer with a floppy drive since 2005, and they were completely useless back then..  and B: drive has been useless even longer!   
    So, what has happened here... is leaving out A: and B: has just been carried over from decades ago when it was probably a good idea... and no one has even looked at changing it.   People do have problems with this though, but it won't be fixed until someone says something... So I'm saying something.  fact:    A: and B: are NOT reserved for floppy drives anymore..  they have not been for a very long time  fact:    No one will ever plug in a floppy drive ever again.
    fact:   Windows has allowed network drive and fixed hard drives to be A: or B: for decades 
    fact:   You SHOULD be checking the operating system to see if a drive is fixed or removable and what it's capacity is... not making assumptions about the drive configuration 
    fact:   As time goes on the the more and more people who have never heard of a floppy disk increases, this WILL become more and more of an issue.
    fact:   There is no reason to NOT be using A: or B: for network or fixed hard drives... and our software should allow us to do so. 
    fact:  I want my 4TB drive to be B:!   but I have to settle for it being WAY down at T: because I've used all the letters down to S: already... heck my usb 3.0 card reader alone takes up 4 drive letters.. and I'm used to them where they are now.   I also want my RAID box to be a network A: drive..  putting it right there at the top of the list!
    I'm settling for other letters, at the moment.. I actually moved my nearly useless DVD burner down the list.. do you all realize even DVD's are becoming obsolete???  why burn a measly 5GB on a DVD that is so fragile and easily scratched... when you can just write files on a 128GB flash drive?  (yes there are even 512GB flash drives available now) It's only a matter of time before NO one will have ever heard of or seen a CD, or DVD disc either!

    Probably the best place is here http://feedback.photoshop.com/photoshop_family/products/photoshop_family_photoshop_lightro om . Not sure if it's taking new registrations though.
    I'm a little susrpised that it's not possible, and I agree it's a bit silly in 2013, but my guess is it's one of those things that won't change for a while. They've probably played safe, and to be frank, whenever you break such old rules (eg 32 characters, case-sensitive filenames, punctuation in filenames etc) it's only a matter of time before you get bitten by something. I just wouldn't expect Adobe to spend much time on it - it's not as if they've nothing else to work on.
    John

  • Can't import still images into a project or create a podcast track

    I'd be grateful if anyone can explain why I can't import still images onto a track like you can easily do in garage band - in garage band you simply create a podcast track, then drag your photos onto it. However in logic, when I open the media browser i can get a photo folder up but it will not allow me to even look at the contents.
    Also, why is it that the manual for logic express has nothing about how to import a movie to produce a movie score - and yet garage band can even do this.
    Thanks for any advice.

    Have you tried "Working with Video" section of the manual? It's somewhere close to the end...
    Logic works with audio, not images. That's why you can't import a photo, because media browser is used to locate audio files, mostly. And sometimes video.
    I guess it works this way, you create a podcast with Logic, bounce it to mp3 or another compressed format. Then import it into GB and insert a photo.

  • Can't import RAW Files via usb

    I bought a canon eos 5D a couple of days ago. I don't know why but I can't import the raw files from the usb connection. When I press the eos 5D button from the import dialogue, the lightroom says "no files were found to import". Everything works perfect with an external reader but I do want to import them via usb. I don't want to be removing the card too often.
    Can anybody help me or guide me to a possible solution?. Zoombrowser works fine and imports without problem. I love lightroom and don't understand why I can't import via usb. It's strange but it doesn't happen with jpg files. With those, I got no problem.
    thanks in advance

    It is a "by design" issue of the Canon driver software. There is nothing <br />wrong with your hardware.<br /><br />To get the RAW files you need a card reader.<br /><br /><br /><br /><[email protected]> wrote in message <br />news:[email protected]..<br />> Maybe you are right, but I want to know that everything works perfect with <br />> my camera. Nevermind if I'm going to use it or not. It is two days old and <br />> I see that not everything is working properly.<br />><br />> thanks so much for your help, Lee.

Maybe you are looking for

  • Endeca integrator not able to connect with OBIEE 11g

    Hi All, I am trying to connect OBIEE RPD(Repository) using Endeca Integrator3.0. All credential are correct, OBIEE 11g is also up. It show Error: java.net.ConnectException: Unable to connect to port 7001 on machine localhost how to reslove it. Please

  • Viewing .psd on different computer problem????

    Ok I have to bring a project from photoshop to school to present. Problems - you can NOT nstall fonts, brushes, etc. on the school computers - I have used custom brushes and fonts that do not come with photoshop - project need to be a .psd So what wo

  • How we can move BPC data to PCM?

    Hi Experts, I saw an article Integrating PCM 7.5 with BW for moving data from BW to PCM. But it seems to discuss only one way of data transferring which is PCM to BW since it introduce DataBridge in PCM. I have a question regarding the way of data tr

  • Agent Dashboard - system information

    Hi, In WebIC, when you click on date&time displayed on bottom right corner, an agent dashboard pops up. In CRM 4.0 or 5.0, SID along with client is visible in WebIC Agent Dashboard. This is very useful to let you know in which system you are working

  • Field/Screen Exit for MIRO

    Hi Friends, The client requirement is to fix an Exit to disable or inactive the field INVFO-LIFRE or to put the INVFO-LIFRE field (invoice party in Details tab) as display mode where the user not able to change it while posting invouces in MIRO. I've