Simple import problem

I have created an array of object BankAccount. i have used the data that follows
10
1/b.wilson/1502-231/156.00/200
2/c.davies/1502-462/200
10 is the array size and the rest is information regarding accounts. i have 2 constructors but do not know how to use the scanner to import this data. i have imported the 10 for the array size but i do not know how to set the data to the correct fields.
any ideas?

TjHodge wrote:
I have created an array of object BankAccount. i have used the data that follows
10
1/b.wilson/1502-231/156.00/200
2/c.davies/1502-462/200
10 is the array size and the rest is information regarding accounts. i have 2 constructors What do the constructors have to do with anything?
but do not know how to use the scanner to import this data. i have imported the 10 for the array sizeOkay, so you know how to use Scanner to read an int and, presumably, store that int in a variable.
but i do not know how to set the data to the correct fields. What exactly do you mean? Are you asking how to split a line up into the components of a BankAccount? If so, use String.split. If that's not what you're asking, be more specific, and show code to help us grasp what you've done so far and what's got you stuck.

Similar Messages

  • JDeveloper IDE simple setting problem

    Hi,
    Recently we switched to JDeveloper from Visual Cafe .I have a simple setting problem.How can I set the options so that IDE gives, the core java classes and packages,and our application classes and packeges, prompts in imports as well as in code.Where to set the options.
    eg: when I write
    import java. it should prompt all the pakages.
    Thanks in advance.
    -Gopal
    null

    I am not sure I understand what you are requesting, but ...
    You can configure JDeveloper projects to include various libraries by default.
    This is done by selecting menu Tools | Default Project Properties.../ Libraries tab.
    You should define a library for your classes.
    You can import any of the packages / classes from all the libraries which your project includes.
    It would be incorrect for a tool to automatically add a bunch of import lines at the top of every file because each file should import what it needs and just as importantly, not import what it does not need depending on the component type (e.g. a servlet should not include javax.swing.* ).
    An easy way to import elements into JDeveloper is to type in something like:
    import java.
    // and then type in Ctrl Space
    and this launches the package browser, you can select packages or classes to import.
    You can also do this at the variable declaratiton point such as typing in:
    foo() {
    Frame x
    // Press Control Alt Space
    and this will correctly change the type (Frame) to the type you select in the package browser and add the import statement.
    -John
    null

  • Help - HDV tape import problem - Sony HC-3 broken - Questions/Warning

    My Sony HC-3 HD camcorder has just failed. I've had it just over 3 years.
    I really don't enjoy video editing much, and despite maybe shooting 20-30 tapes of HD footage of my young children, I'd only got round to importing a handful over Firewire, but was lulled into a false sense of security perhaps by treating the tapes as my film negatives (new tape each time).
    The camcorder behaved a bit erratically a few weeks ago when inserting a tape, then the other day it gave an error, I ejected the tape and had a constant C32:11 error flashing. Lots of user reports on the web, no idea what the real issue is, but any suggested fixes didn't work.
    Essentially I cannot close the tape transport compartment with or without a tape - it won't accept a tape and return to record/play position.
    Almost feels as though something isn't clicking/catching when you push the tape in.
    Anyhow, I thought if worst comes to worst I'll just buy Sony's latest model - then the realisation they'd discontinued consumer HDV tape camcorders. Not a happy bunny.
    I've sent camcorder to local Sony repair center and am awaiting outcome.
    Now my questions are:
    1 - Is there any way of simply reading the tape data using an SD camcorder if I ever needed to ? - There are programs that use them to archive data so I guess in theory it must be possible just to read the data, unless it's stored in an SD compliant file format rather than just data.
    2 - is 1080i HDV (1440x1080 res) as captured by the Sony HC3 a cross-vendor format or Sony specific - (if 1 is impossible) could I if needed say pick up a Canon HDV camcorder and use that to import my video?
    3 - are we to assume now that DV/HDV is dead as a consumer format despite it's better image quality compared to hard drive/memory card video codecs.
    Hopefully Sony will repair my camcorder for a fixed rate charge - if they can't or won't what are my options for importing the video I've got on tape?
    There are bound to be companies who'll do this for a fee if worst comes to worst, but I feel a bit annoyed with Sony for dropping support for the format after buying an expensive camcorder only a few years ago.
    Even if it can be repaired, I'm not sure I'll want to continue using it if there's a risk of future failure and inability to import old tapes. Frankly I'm glad I've used the video function on my Canon 5D II a lot in the last year or so for quick video clips even if many are transiently OOF.
    Yes, my fault for not importing the tapes immediately after shooting, but I'd assumed that I would be able to import the data well into the future evene if it meant a new device.
    AC

    Jeremy Hansen wrote:
    HDV is not dead!!! Heavens, the pros laugh at AVCHD and hard drive based cameras. When you shoot on HDV tape, you have a backup.
    Sony do still manufacture HDV pro camcorders of course - it's the early adopter consumer they've left in the lurch.
    One of my original reasons for using tape was this automatic backup - silly of me not to routinely import tapes to Mac of course.
    To answer your questions:
    1. No, you can't read it with an SD camera. you are correct that it is just 12GB of data, but no software really knows how to go back and forth, so to speak. In case you care, there was an app years ago (I forget which) that could use a Dv camera as a 12GB backup drive. But practically, no.
    Shame really seeing as it's just data - I'd used the Firewire SDK kit DVHSCap app to pull off 12-13GB m2ts files in the past which I felt would be ok for computer archival, unedited direct playback on PS3 and fairly quick to convert to AIC as needed for future editing purposes using a utility.
    I did wonder if DVHSCap might be able to pull the data from an SD camcorder, but maybe the tape just would not play.
    2. HDV is HDV. If you had problems, pros would advise you to import with the same camera, or at least same brand. But, usually there are no problems. There shouldn't be, but occasionally there are.
    I was hoping this was the case, great.
    3. Image quality is NOT better with hard drive based camcorders. In fact, most use a higher rate of compression than HDV. What is the advantage? A tape-based camera takes an hour to import and hour. Hard drive cams go faster. Some look great, but there is no advantage over HDV.
    Yes, the only advantage of HD/card based camcorders is simpler import faster than real time, and I'd always been concerned with HD camcorders you'd have too many eggs in one basket if the HD failed in between imports to computer.
    I own an HC-3, and you have to realize it was an early camera in the high-def market. I don't use it often (except as a secondary) because of its optics.
    I've always found it produced pretty acceptable results - constantly amazed that 3-4 year old products get regarded as obsolete by manufacturers who just want you to buy the latest gadget.
    Here is my advice:
    Get a Canon HDV camera. Use it to import your tapes, and enjoy its superior optics and color quality. Opinion? Yes, but I believe it.
    I may consider that if repair fails - any model recommendations that would trounce the Sony?
    Cheers
    AC

  • XML Premiere 5.5 to FCP7 Import problem

    I am working with an outside editor who did some edits for my company in Premiere 5.5.
    They're  tryng to supply me with a FCP7 compatible XML file for import into FCP7.
    Well I am able to convert the XML file in FCP7, but not all of the info is coming thropugh properly.
    The edit is a simple one...
    2 camera A/B talking head
    1 Main Audio track whihc is done as 4 audio (2 stereo) tracks in Premiere.
    The edit supplied to me comes through with the video being fine on 2 tracks.
    However, the audio track does not even show up in my timeline.  However it's there on his Premiere timeline.
    Any idea what might be the problem?
    I have supplied pics of both timelines for reference. 
    One is his Premiere timeline, the other is my FCP7 timeline after XML conversion.
    Premiere timeline with 2 videos tracks and 4 audio tracks.
    FCP7 timeline with 2 video tracks and only 2 audio tacks sowing up.
    Where is the other audio track.

    Jeff,
    Thanks for your advice, the use of the UT Video Codec Suite has been exceedingly helpful in capturing video. It has made 1080i capture much simpler.
    Unfortunately it has not solved my 720p import problems.
    I have played around with several different configurations. If I record 720p at 29.97 frames, the whole video imports without difficulty, but the sound is messed up. But when I try to import 720p video at 59.94 frames, Premiere Pro will only import the first couple of minutes of the video if the video is longer than 7 minutes.
    If you have any further advice, I would appreciate it.
    Kerry

  • LR3.2 import problem on computer with Windows OS

    LR3.2 import problem on Windows OS
    This is a continuation of a question that I posed on August 22, 2010 in the discussion string "Cannot import CR2".  I have not been able to resolve the issue of importing an image into an existing folder location.  I had not been able to work on this issue for a number of weeks due to other circumstances, until today.   Note that the following people had attempted to provide answers and suggestions already:  ssprengel, JayS In CT.
    I use a laptop with a Windows operating system and a Macintosh desktop with Snow Leopard.  I run Lightroom on both of them.  The Windows laptop has Windows Vista Home service pack 2, version 6.0 [6002].  Around August 12th I upgraded from Lightroom 2 [481478], to Lightroom 3 on the laptop.  I left the LR2 on the laptop as well as LR3.  On September 12th I upgraded the laptop to LR3.2.  No other changes have been to the laptop or its software applications that I know of.
    My current attempts at resolving the issue reveal that when I created a new catalog "Test Catalog" in LR3 and saved that catalog to my desktop new folder labeled "Test Catalog" that I can import an image into LR3.2 to a new folder on the laptop's desktop.  I then deleted the images via LR3.2 Folders Remove function and tried to import the images into an existing folder as presented in the LR3.2 Import dialog, but get the error message "The following files were not imported because they could not be read.".   When I import images into a new folder placed on the desktop, I can use all functions in LR3 e.g. Develop module.  I cannot import images into existing folders on the laptop's hard drive - I have tried importing into the entire existing folders in the following hierarchy:  c:\users\Michael\My Documents\My Pictures\2010  but always get the same error message.
    LR3.2 does correctly backups upon exiting each time I quit the program, so I know that there isn't any issue of writing to that backup folder which is contained in an upper folder that contains the lightroom catalogs.  I have even created a new Word file, saved it into the folder with Lightroom catalogs, opened it up, modified it, saved it, and saw that it works OK, so that tells me there is no problem with a Read-Only folder attribute.
    I cannot recall if upon the upgrade from LR2.6 to LR3 that I chose to upgrade the catalog to LR3 version.  Would that matter, if yes, what do I verify, how do I manual upgrade the catalog.
    History of actions between August 10th that I have taken follows between the [[[[ and ]]]]:  
    [[[[Preference settings for Default Catalog are set to start with a specific catalog that I call "Lightroom master catalog", it is not set to the "Load most recent catalog". 
    All of the following were using my laptop:  Previously I had no problem with LR2 for any functions.  I just purchased an Epson 7000 media storage device, and in early August and practiced importing images into LR2, and those images were pulled in OK. Next, I upgraded to LR3.  I discovered that the Epson's images had been placed into a wrong folder when I opened LR3.  I used the remapping function in LR3 to move the images into the correct folder.  Next, I used a SanDisk card reader to import images into LR3 into an existing folder of images, but the following error message appeared "the following files were not imported because they could not be read" (Import Results said  'some import operations were not performed').  I tried importing a single image, and multiple images, but had the same error.  I tried switching the card reader to each of 4 different USB port on the laptop, with the same error occurring on each USB port used.
    In order to try to isolate the problem.  I took the SanDisk card reader with the memory card and successfully imported the images into LR3 on my Macintosh desktop computer; so to me the problem is not the card reader or the memory card.  I also used the SanDisk recovery disk while using my laptop to look at the files on the memory card and I could see all the images correctly while in the recovery program, but I have not copied the images to the laptop's hard disk, and have not tried an import into the laptop's LR3.  I did not import images directly from my camera to the laptop LR3 since I did not think it would help with the troubleshooting. 
    I then ran the Repair from the Adobe LR3 CD upgrade disk, on my laptop.  Then I tried doing the import using the SanDisk reader and memory card, but the same problem occurred and same error message, that the files could not be imported (I was trying to import into a folder of existing images).  I then used the Laptop's Control Panel function to remove LR3 application.  Then I did a fresh upgrade of LR3 on my laptop, but the same error message and I am unable to do any import of the memory card from the card reader.  I then tried to do an image import from the Epson 7000 into the laptop, and the same error message and I am unable to do any import into a folder with existing images.   I then tried doing an image import into LR2 on the laptop, and got the same problem to occur when trying to import into an existing folder of images.  I have a couple of  Canon EOS SLR digital cameras, and the issue occurs for any of the file types of the cameras.
    Went into LR3 Preferences, General Tab, I now checked the previously unchecked box for Import Options - "Show import dialog when a memory card is detected".
    Connected the Canon XTi directly with a cable to the laptop computer.  Note that Canon's information said that Picture Transfer Protocol is automatically used when the XTi is directly connected to a computer, so I did not need to change anything in the camera's menu for communications choices (there is no communication menu in fact).  I selected one image and copied it to the laptop desktop.  Tried to import it into LR3 into a folder of existing images but got the error message "Could not copy a file to the requested location."  While in LR3, I changed the location of where the file would be copied into - any of my existing folders of images; tried 5 different folders, but kept getting the same error message.
    With the card reader connected via USB port on the laptop, I copied one image file to the desktop, and then tried importing into LR3 into a folder of existing images.  Got the error message "Could not copy a file to the requested location."]]]]

    I am not clear if by 'import' you are trying to copy or move the files from a location to another or if you are adding the files to a catalog.  My comments may not, therefore, be too helpful.
    Firstly, with both LR2 and LR3 installed you will have both catalogs present, but if you try to open the LR2 catalog with LR3 you will be prompted to update the catalog.  You will thus know which catalog you are working on. 
    Secondly, if you are reading direct from the camera, you should connect using the 'PC connection' mode.
    Thirdly, there is an issue with reading .CR2 files directly from the early Canon DSLRs (in Europe named 300D, 350D, 400D).  While they are visible with the Canon software, they can not be seen with Windows explorer nor can they be accessed with Lightroom. 
    I suggest that you take the CF card out of the camera and copy the files using Windows Explorer in to the destination folder.  You are then sure that the files are on the PC.
    If you have the right Codec installed, you can view them with Windows photo gallery; if you don't, you can use one of the Canon software packages to view the files.  You are then sure that the files are not corrupted.
    Then import the files to your LR catalog using the normal import routine selecting 'add without moving'.  I have tried this routine  successfully using my 350D using both LR1.x and LR3.x.  If that doesn't work - I'm lost.
    Frank

  • On windows 8 and itunes I have importing problems the DVD is only reading the music cd from 1.5x to 4.0x for 95% of the time, it does hit speeds of 30x for the other 5% of the time. Is it a driver issue with the DVD or is it  a windows 8 issue?

    on windows 8 and itunes I have importing problems the DVD is only reading the music cd from 1.5x to 4.0x for 95% of the time, it does hit speeds of 30x for the other 5% of the time. Is it a driver issue with the DVD or is it  a windows 8 issue?

    No. You have no alternative but to plug it into a computer running iTunes and restore it.

  • Aperture Video Import Problem - from Lumix GH4: Imported clips have their dates changed to the import date.  The files show up on the hard drive but many are not showing up in Aperture.

    Aperture Video Import Problem - from Lumix GH4: Imported clips have their dates changed to the import date.  The files show up on the hard drive with import date not created date, but many of these same files are not showing up in Aperture. Sometimes the clips actually show up with the current import but take on the video information from a previously imported file.

    It was suggested I move this question to IPhoto or IMovie which I did. 
    Well moving to a different discussion group did not provide an answer to this question either. But what I finally did was import one batch of photos and videos into IPhoto for a given day at a time. Working with these I could change the date and times in order to get them in the original sequench taken. Then I would create an album with that batch. These would all be on the same day (IMove was closed for this phase). Then I would open IMovie, generate the thumbnails for that album, and select the album I had created. This was necessary because the importing process in IPhoto was using incorrect dates for my video so it was a real struggle finding them in IMove until I developed this approach.
    I believe that this whole process was so screwy because I was importing from an external hard drive not a camera. I had these photos on a PC and did not have the original cameras to use to import directly which I am fairly sure would have made this easier!

  • Final Cut Pro/GY-HD111E import problems?

    Final Cut Pro/GY-HD111E import problems?
    With a brand new Mac Pro and very latest Final Cut Studio complete with updates I'm having a little problem trying to import footage directly from a JVC GY-HD111E (yes I'm in PAL land, UK) via FireWire into FCP.
    Footage is 720p/25p and timeline is set up in FCP that way.
    I'm doing a 'capture now'. The first clip I'm trying to import is about 45 minutes long with no cuts/breaks whatsoever.
    What happens is after about 60 seconds or so, it FCP automatically breaks the clip for no reason and starts a new one, trouble is, when it does this I lose about 4 seconds of footage at that point.
    It continues to break clips randomly, sometimes after 40 seconds or so, sometimes after 95 seconds, but usually between 30 seconds and 2 minutes and each time it starts a new clip I lose between 1 and 6 seconds.
    As I say, there are zero breaks or cuts in this clip, I have a 45 minute clip that was shot in one take, not even a pause anywhere.
    Is this a JVC issue or a Final Cut issue?
    It's a pain as it simply means I can't import my 9 hours of footage hence I can't get on with this project.
    Any ideas why this phenomenon is happening?
    Thanks guys.

    I mean I get the same errors.
    Let me explain again.
    There are NO start/stop/pauses in this clip.
    I'm trying to import just ONE clip with no breaks, again, there are NO start/stop/pause, it is one continuous clip of 15 minutes duration.
    The JVC creates some sort of errors at the Firewire output stage, it drops frames or other errors, FCP gets confused and creates a new clip, even though it is the same clip, but due to the GoP structure, it looses a few seconds too hence I can't import the footage as I keep loosing bits here and there mid clip. It is randam, every 30 to 100 seconds or so it will do this.

  • Real simple xslt problem/question

    Hi, i have a real simple xslt problem but i just cant figure out how to do it by looking at various examples on the net. i have a xml document and in it are some elements with a "result" tag name. i want to use xslt to reproduce exactly the same xml document except with an attribute called "id" added to those elements with a "result" tag name. i'm sure that theres a simple solution to it but i just cant figure it out. any helps greatly appreciated, thanks

    Start with the XSLT identity transform (I don't have it handy and it's fairly long, but you should be able to google it up). Add this:<xsl:template match="result">
      <result id="">
        <xsl:apply-templates>
      </result>
    </xsl:template>

  • Annoyed with JVC/Final Cut Pro import problem; will they ever fix this?

    Annoyed with Final Cut Pro JVC import problem; will they ever fix this?
    I've shot footage on JVC GY-HD111E in the UK in 720p/25p PAL mode.
    I'm trying to import lots of short clips (average 10 seconds) into Final Cut Pro (latest version with 720p/25p support) with a new Mac Pro maxed out with ram and 3 extra internal HDs.
    Problem is, on a scene-break i.e. pause/stop, Final Cut detects this and creates a new clip, but it takes about 5 seconds to 'searching for media" before it starts the new clip. Because some clips are only very short, this 5 second delay sometimes means I only get the final few frames of a clip, rather than the entire 5 seconds or so of it.
    JVC UK are blaming Apple and are saying it is up to them to fix it as Premiere and Edius does not have this problem.
    However, Symbiosis in the UK (who do HD-Connect box) say that the JVC ProHD cameras do not wrap the shots up properly at the end, they are kind of left open and this creates problems on scene-breaks.
    I've tried turning off the "create new clip on timecode break" etc, but it does not make any difference, when I do this it simply quits capturing on a scene break. Besides I have about 300 cutaways like this and I don't want to spend the rest of the year breaking them up on the timeline as this would be a futile and long workflow.
    I'm importing and working on a native HDV 720p/25p timeline and this is the way I want to work. I've already imported and edited 4 hours of footage, but these 4 hours were easy as all 4 tapes had no start/stop points, they were recorded continuously from beginning to end of tape for 64 minutes each time so importing was no problem; 1 clip per tape.
    But now I've come to my 5 tapes containing hundreds of cutaways I'm kind of screwed and need some advise on how I can import them natively in HDV without losing this 5 seconds off the beginning of each clip whilst FCP searches for the media each time.
    I've been told this issue is definately with FCP, any ideas how I can get around this?

    I haven't heard of this JVC/FCP problem, so I can't comment on it. However, whoever shot the cutaways didn't do you, the editor, any favors.
    I've been doing video since 1984, and I've got to say, anyone who shoots a scene that is only 5 or 6 seconds long on tape is making a huge mistake, and it's been that way since the beginning of computerized editing in the late 70s.
    Shoot at least 5 seconds of pre-roll before the shot begins, then roll tape for at least 5 seconds after you've got the shot. That's the protocol I've followed for 22 years now. Tape is cheap, edit suite time isn't.
    But laying down only 5 to 6 seconds for a scene is wrong, IMO.

  • Imovie Mac importing problem or Camcorder problem?

    I run a small business for kids parties. I video the kids dancing along to a track they have recorded (played on a cd player). Then i import the video, turn off the camcorder sound and import the finished mixed track of their singing and sync the picture and audio together. This has been working perfectly for over a year. But unfortunately in the last month when i try to sync up the audio track with the video, it starts off synced up perfectly, but gradually as the video goes on the video and audio become out of sync and by the end the video is either too fast or too slow. this is a huge problem! I thought it may the tapes in the video camera so i changed them and it's still doing it. Is this a video camera problem or computer importing problem. Can anyone help as it's ruining the kids DVDs!

    I am surprised it has ever worked. That can normally only be done with synched professional equipment. Maybe they changed the CD player at the performance and the old one happened to play at the same rate as your Mac when it imports? (There is a slight difference between the playback speed between different players)
    Or perhaps your video camera has become slightly worn, so it pulls the tape slower?
    There are endless possibilities for problems with your setup.
    I think you should take a look at the "add scaled" tip at the bottom here:
    http://danslagle.dvmix.com/mac/iMovie/audio/1001.shtml
    (Instead of adding the extracted audio from iMovie, you should add the CD audio.)

  • Import problem with DMP file

    Hi all
    I am using oracle 9i and I have problem in import problem.........
    when i try to import the DMP file it gives me the error,
    IMP-000200: long column Too larege for column buffer size <22>
    can any body please tell me how to get out of this error....
    actually I have a table in export file that has round about 2 lac rows....
    The problem occurs on that table.
    Any help will be highly appreciated
    Thanks in advance
    Regards
    Shayan
    [email protected]

    The correct error code is IMP-00020 not 200
    What's your current buffer set to when imp?
    IMP-00020: long column too large for column buffer size (number)
    Cause: The column buffer is too small. This usually occurs when importing LONG data.
    Action: Increase the insert buffer size 10,000 bytes at a time (for example). Use this step-by-step approach because a buffer size that is too large may cause a similar problem.
    As adviced, increase 10000 and try again.

  • Lightroom 5.4 Canon partial import problem (CR2s)

    Hello,
    I have Lightroom 5.4 on a Windows 8.1 system x64.  My camera is a Canon 50D that's several years old.( i.e. not a brand new camera import problem)
    When I plug my camera into my computer via the USB cable and try to import images into a Lightroom catalog, Lightroom will recognize and import jpgs, but it does not even see CR2 files. No errors, no thumbnails. It's like they are not there.  If I capture a single image as both a jpg and CR2 simultaneously it will only see the jpg and not the CR2.
    If I open the Canon EOS Utility it sees any and all images (CR2's included).
    I've read a few posts so to help narrow it down:
    1) I have write access to the folder (b/c I can import the jpgs.).
    2) My Windows system does not recognize the CR2 files in an exporer window if they are still on the camera (to be specific, it sees that there are files, just not the type and no thumbnail. Not even a properties option with right click). I can't pull the files directly off the camera with my computer only with the Canon app. I have the latest camera codec pack put out by  Microsoft KB2899190 from 12/9/2013.
    3) Once the CR2's are on my computer via the Canon EOS app they are viewable in Expolorer (thumbnails) and can be imported into Lightroom.
    4) I have cleared and reformatted the flash card (more than once). Rebooted and powered down the PC and Camera multiple times (removed camera batt. and Unplugged PC).
    5) As of time of this post Lightroom is up to date.
    I believe there is some communication issue with my camera and this particular PC setup. My wife's computer does not have this issue (she has Vista). When she plugs in the camera the thumbnails pop up in an explorer window for her right away.
    Thoughts?
    Thank you very much for your help.

    Yes, for many people. Recent versions of Lightroom in particular seem to be quite fickle when trying to import directly from camera, and the "fix" in virtually all cases is to use a card reader.

  • Simple OOP Problem. Help!

    This is just a simple OOP problem that i cant decide on a best
    implementation for.
    im passing an object to an instance of, 'TabbedFrame', which is just
    a frame with a Tabbed Pane in it that is holding custom panels.
    however, these custom panels need access to the object being
    passed to 'TabbedFrame' and to some methods in it.
    i cant make them static however so how do i gain access to them?
    is my only option to pass the 'TabbedFrame' to each panel?
    like - jtabbedpane.add( "Panel 1", new mypanel1(this));
    here is code:
    new TabbedFrame( DataObject );
    public class TabbedFrame{
    public TabbedFrame(DataObject do){
    this.do = do;
    jtabbedpane.add( "Panel 1", new mypanel1() );
    DataObject do;
    public class mypanel1{
    public mypanel1(){
    // need access to DataObject of the 'TabbedFrame' object that instantiated
    // this 'mypanel1' and to some of its methods
    }i would just pass the DataObject to evey panel (there are 12) but
    i also need to be able to call methods in the 'TabbedFrame'.
    Any help would be appreciated!

    Modify mypanel1's constructor:
    public class mypanel1{
    TabbedFrame tf;
    public mypanel1(TabbedFrame tf){
    this.tf = tf;
    // need access to DataObject of the 'TabbedFrame' object that instantiated
    // this 'mypanel1' and to some of its methods
    DataObject theDo = tf.getDataObject();
    tf.someMethod(); // Call method on the TabbedFrame
    }In TabbedFrame:
    public TabbedFrame(DataObject do){
    this.do = do;
    // Modify call to constructor to pass "this" TabbedFrame.
    jtabbedpane.add( "Panel 1", new mypanel1(this) );
    }

  • Aperture 3.2.1 Import problems.

    Aperture 3.2.1 Import problems. I can not import. Complete system hang when I try. Have to force reboot. I made a new user and everything seems to work fine under that user. I must have something conflicting in my admin user but I have had no luck finding it. I have tried rebuilding the library (all three options) but to no avail. Aperture will run fine as long as I do not try to import. This is very frustrating, any help would be greatly appreciated.
    27" imac 3.06 intel core 2 duo 12 GB Ram

    Hello Tim,
    If a problem only occurs when working from one account, then very often faulty user preferences or presets are the cause. Try to remove your user preference file, and if that should not suffice, move your presets to the desktop, as described in the Aperture 3: Trouble Shooting Basics:
    (Caution: I see, you are running Lion: Because of Lion's non-preemptive Process Management you can never be sure if an application really has quit, even if it looks in the Dock as if the Application has finished. So it is very important to log off, before you launch Aperture again, after you changed something in the libraries like described below.)
    Delete the user preferences
    You can resolve many issues by restoring Aperture back to its original settings. This will not impact your image files or your library. To reset your Aperture user preference settings to their original state, do the following:
    Quit Aperture.
    In the Finder choose Go to folder from the Go menu.
    Type~/Library/Preferences in the "Go to the folder" field. Press the Go button.
    Remove the "com.apple.Aperture.plist" file from the Preferences folder. (and log off and log in again!)
    Move the user created presets, keyword lists, and so on...
    Quit Aperture.
    In the Finder choose Go to folder from the Go menu.
    Type~/Library/Application Support/Aperture in the "Go to the folder" field. Press the Go button.
    Move the contents of this folder to your Desktop (and log off and log in again!)
    Start Aperture and see if the issue is resolved. Note: Permanently removing these files will delete presets, metadata sets, keyword sets, and so on. If moving these files to the Desktop does not resolve the issue, move them back to their original location to restore the presets, adjustment chain presets, and metadata sets. In no case will removing these files affect metadata, keywords, or adjustments already applied to images.
    If none of this should help, try to boot into safe mode (hold down shift after the start up chime), to see if you have conflicting plugins or video drivers etc. installed in your admin library.
    HTH
    Léonie

Maybe you are looking for

  • Firefox keeps crashing. Even when i start it in safe mode

    I have a Windows 7 64bit computer working with firefox for a long time. Yesterday they think they opened some SPAM message, firefox crashed and isn't working any more. I have performed all actions mentioned below without any succes: - Firefox does th

  • I changed my Apple ID and now I can't access iCloud

    iCloud is already set on my old Apple ID in my Iphone and I can't delete it. Whenever I add my password it says it's wrong, and when I tried to retrieve my password (of the former Apple ID) it didn't send me an email. I also tried changing my account

  • Can I install an SSD into my MSI GE620DX laptop?

    Can I install an SSD into my MSI GE620DX laptop? Couldnt find any information on the site or the manual about that, Im thinking of ordering an SSD but I dunno if I can put whatever type of SSD in there. The 128gb SSDs in sweden are just in my price-r

  • Digital Invoice - Mexico new compliance (approval reqd?)

    We are implementing Digital mexico invoice and I am looking at different notes for implementation... I came across this post in SCN, http://weblogs.sdn.sap.com/cs/mobile/view/wlg/21066?x-topic=85 u2022 Take effect January 1, 2011 u2022 Eliminate foli

  • How to setup in-process report server 11g on linux for destype=printer

    Currently, I'm facing following error when send RDF report directly on printer with destype=printer using run_report_object built-in REP-50159: The report generated successfully but distribution to destinations failed. REP-50157: Destination ID TESTR