I just need serious help! Please!

ok well.... i need to code a program that has about 5 different GUI's and each in a different class, and there is a claass where all the details of the Database for coustomer details is stored in an array but now i need each GUI to access the array and use it but i dont know how to use the BanksArray class in a different class without re-creating it. and iv tried almost everthing i know and nothing works

...i dont know how to use the BanksArray classin
a different class without re-creating it.Passing the BanksArray object into the different
class as a class variable in the constructor.
Message was edited by:
SeanJ@I'ts better to implement BanksArray using the
Singleton Pattern..
public class BanksArray {
rivate static BanksArray instance = null;
private BanksArray () {}
public static BanksArray getInstance() {
if (instance==null) return new BanksArray()
else return instance;
Just to point out, in case anyone is intending to copy and paste, the singleton code above doesn't work as intended.
If the instance is null, assign a new BanksArray to the instance and then return the instance.

Similar Messages

  • I need serious help please.. We do translations of schoolbooks, I looked for an over-type function but were unable to find, we are working in indesign CS 5. it takes up allot of time to delete text and type in the new language.

    I need serious help please.. We do translations of schoolbooks, I looked for an over-type function but were unable to find, we are working in indesign CS 5. it takes up allot of time to delete text and type in the new language.

    Argh that's frustrating! I never noticed that key did not work in InDesign.
    A bit of research and it turns out the MS Office has this as an option in their software. But I cannot find an option in InDesign preferences to make this work.
    However, somethings are not listed in the shortcuts and preferences and are hidden triggers in InDesign which can be accessed through a script.
    I'm not saying it's possible to activate the Insert Key through a script, but it's plausible that it can be activated.
    Maybe ask on the scripting forum? InDesign Scripting
    I know this may be a possibility as with InDesign's earlier versions of PDF export to interactive documents there previously was no way to export interactive pdfs as single pages if in Spreads.
    But the option to toggle this setting was scriptable.

  • I lost all email 6months and older in mac mail. Need Serious Help!

    I lost all email 6 months and older in mac mail. In my in-box as a well as all other folders I created. I expected that the mac email software would keep all email as it did for me in when I used to use Outlook. As well I thought I was covered with the Time Machine I have installed. Well.....The Time Machine that I was aggressively encouraged to buy apparently doesn't back up email. If it does, I must need some secret decoder ring to unlock where it is. I need serious help. I lost months of professional and personal data. I need to fix this immediately and find some way to get my email back. Please help.

    In March when I upgraded to Lion and iCloud I also experienced a similar problem (cluster of problems) which was solved by a password reset (conforming to new requirements) for my Apple ID. I'm glad to see that many nice people contributed and your primary problem is fixed.  My comment is on your Quicken problem.
    Your data inside Quicken 2004 is on borrowed time.  In the process of researching personal budgeting apps I found many reports on the web that indicate Intuit as a company is scaling down Quicken (desktop) development and its future attention to the Mac platform will be minimal.
    Did you know that Intuit is behind Mint.com?  You may be hesitant to put your financial data "in the cloud" and I may be being sheepish, but.. bbaaaa, bbaaaaa, the cloud is where it's going.  I know first-hand want a pain in the arse it is to customize an app to your liking.  I spent several hours on Mint.com setting up categories and tagging transactions.  It's tedious. I didn't look because I wasn't a Quicken user, but perhaps Intuit was nice enough to provide a data conversion path for Mint.com.  It is worth a look.
    My second suggestion is to scour the web for a hack solution.  You can't be the only person who is facing this problem.  Quicken was very popular.  I just bet someone has posted directions or some code for exporting the Quicken 2004 data and manipulating it for something else.
    Good Luck.
    Ellee H.

  • Cold boot problem with X-FI Fata1ty card... Need serious help!

    Hey guys:
    I just finished upgrading my computer. Realized that I have a cold boot problem. In order to identify the source of problem. I began the following test.
    . Remove everything except, cpu, heatsink, ram, video card. Tried to boot with those devices. => No cold boot problem.
    2. Install the rest of the ram sticks (I have 4 x 52 in total). => No cold boot problem.
    3. Install the other video card (my setup is 7900gtx in SLI) => No cold boot problem.
    4. Install the Creative X-FI Fataty card. => COLD BOOT PROBLEM
    Once the computer is shut down via the front power switch on the case, the computer will not boot again. To boot the computer, I need to switch off the main power switch on the back of the psu and switch it back on; then turn on the computer via the front power switch on the case. I tried the problem with and without the sound card. Whenever the sound card is installed. There is the problem. If there is no that sound card in my rig, then there won't be any cold-boot problem.
    My rig specs:
    DFI Lanparty nF4 SLI-DR Venus
    AMD Opteron 65 CCBE 609 - Stock speed
    4 x 52 MB G.Skill Samsung TCCD LE 2.85V DDR 400
    CPU Cooling - Tuniq tower 20
    2 x EVGA 7900 GTX Stock - SLI
    3 x WD Raptor 74G RAID-0 SATA (-3) 0000 rpm (System)
    x Seagate Barracuda 7200.7 60Gb 7200RPM NCQ SATA - 4 (Backup)
    Pioneer Black DVR 0 DVD+/-RW - IDE /0
    Lian-li PC-V 200B Plus-2 with little case mod
    OCZ GameXstream 600W
    Creative Fatalty Sound Card w/ Front Panel
    Logitech Z5500 5. speakers
    I need serious help. This problem is so annoying.
    Tnanks and will greatly appreciate it.Message Edited by White_Hair on 0-27-200605:4 PM

    The onboard sound is disabled. Unfortunately I sold the Seasonic PSU to my friend. The OCZ GameXStream is suppose to be the higher grade psu than Seasonic PSU. Also, the cold boot problem only exists if the sound card is plugged to the motherboard. I tried change different pci slot. It doesn't seem to help the problem. Thanks for the reply Message Edited by White_Hair on 2-02-200606:07 AM

  • Remote App on iPad connects but drops after about  20 mins. Need to turn  off wait about 1 minute then turn on wifi on iMac before it can reconnect. Need some help please.

    Remote App on iPad connects but drops after about  20 mins. Need to turn  off wait about 1 minute, then turn on wifi on iMac before it can reconnect. Need some help please.
    Already gone through troubleshooting guide a zillion times. Thanks.

    This worked for me... A little time consuming but once you get rolling it goes GREAT... Thanks....
    I got my artwork and saved it to my Desktop
    Opened up Microsoft Paint and clicked on "File" and "Open" and found it to get it on the screen to resize it
    Clicked "resize" and a box for changing it opened up
    Checked the box "Pixels" and "Unchecked maintain aspect ratio"
    Set Horizontal for 640 and Vertical for 480
    Clicked on "OK" and went back to "File" and did a "Save As" and chose JPEG Picture
    It came up "File Already Existed" and clicked "OK" (really did not care about the original artwork I found because wrong size)
    Went to iTunes and on the movie right clicked on "Get Info", clicked on "Details", then "Artwork"
    Go to the little box on the top left that shows your old artwork and click on it to get the little blue border to appear around it and hit "Delete" to make it gone
    Click on "Add Artwork" and find it where you put the one from above on your Desktop and hit "Open" and OK and your new artwork is now there and all good.
    Sounds like a lot of steps to follow but after around 5 or so you will fly through it. This worked perfect on my iPhone 6 Plus and I have artwork on my Home Videos now.

  • Hi, my iphone its in recovery mode and when i restore my iphone 5s loading show the blue screen and show note on itunes (unknown error 14) please i need your help please . thanks

    Hi, my iphone its in recovery mode and when i restore my iphone 5s loading show the blue screen and show note on itunes (unknown error 14) please i need your help please . thanks

    In the article Resolve iOS update and restore errors this is what it says about error 14:
    Check your USB connections
    Related errors: 13, 14, 1600, 1601, 1602, 1603, 1604, 1611, 1643-1650, 2000, 2001, 2002, 2005, 2006, 2009, 4005, 4013, 4014, or “invalid response."
    If the USB connection between your device and computer is interrupted, you may be unable to update or restore.
    To narrow down the issue, you can also change up your hardware:
    Use the USB cable that came with your device, or a different Apple USB cable.
    Plug your cable into a different USB port directly on your computer. Don't plug it into your keyboard.
    Try a different computer.
    If necessary, resolve any further issues with the USB connection, then with your security software.
    If you're still seeing the error message, check for hardware issues by following the next section.

  • Hi! I got movies on my external hard drive that are AVI kind and won't play on my macbook pro? need some help please!!

    Hi! I got Movies on my external hard drive that are AVI kind and won't play on my macbook pro? When I start playing the movie a message pops up and says "a required codec is not available". I tried flip4mac, xvid, divx already and still not playing my video. need some help please!! thanks.

    Although vlc mentioned above is a much more powerful and better player you could try installing Perian if you insist on using the quicktime player.  It may supply the codec it needs.
    Not sure why you wouldn't be able to play straight avi files though in quicktime.

  • HT1199 I need your help, PLEASE. How can to fix "NO MOUNTABLE FILE SYSTEM" error of my back up hard drive on Mountain Lion OS?

    I need your help, PLEASE. How can to fix "NO MOUNTABLE FILE SYSTEM" error of my back up hard drive on Mountain Lion OS?

    Did you format the drive for Mac use before you tried to use it as a backup drive?
    Are you using Time Machine on the drive? You can't view the contents of its backup database and the only way to access the info is directly from the Time Machine app.

  • Need serious help over here...

    Hi guys...need serious help...I am using nokia lumia 710 for the past 3months...today i tried to reset my phone,but after resetting my phone dint restart...it keeps on rebboting after the WINDOWS PHONE screen apears...So i need some help...i tried pressing power on,camera and volume up and down button to reset again...but nothing happening...if i charge the phone it does the same...plz help me

    Did you try removing the Battery for a couple of minutes, insert back and see if it makes any difference ? If no change then you need to visit Nokia Care

  • HT201066 how do you close it. Its that it dosent let me close the screen recorder just minimize it.HELP PLEASE!

    how do you close it. Its that it dosent let me close the screen recorder just minimize it.HELP PLEASE!

    Launch Safari with the Shift key held down. If that doesn't work, disconnect the computer from the Internet.
    (116363)

  • HT201328 Hey, i bought an iphone from online shop and its locked by orange france, i contact them to unlock it but they refused, they said that we regret to inform you that we'r not able to unlock second hand phones? I need your help please.

    Hey, i bought an iphone from online shop as a used phone and its locked by orange france, i contact them to unlock it but they refused, they said that we regret to inform you that we'r not able to unlock second hand phones? I need your help please. Its not fair , apple should figure it out
    Regards,
    Orange

    This is no different with any carrier locked phone. Getting a carrier locked phone officially unlocked is the responsibility of the carrier, not the cell phone manufacturer. A cell phone manufacture cannot unlock a carrier locked phone without the carrier's authorization.
    An iPhone sold as officially unlocked when new can be used by others as a second hand phone, and the same with any carrier locked iPhone that can be unlocked by the carrier, and many carriers offer it.

  • HT4623 I. Tried many time to install my apple to update software but can't fix I need your help please and Thanks.

    How i fix and software update i was tried but cant i need your help please and thanks.

    "but cant"
    That doesnt tell us anything useful. You need to post EXACTLY what you did and EXACTLY what happened, including any error messages.

  • Need serious help about understanding settings on photoshop for the best quality- please reply is you know a lot about this.

    Ideally I'd like to speak to someone from the UK as I feel I can't write out everything I want to say because it's too confusing and it isn't just one question.
    I need help with setting photoshop so the images are the best quality on screen and for websites and printing and how I can change that etc I've heard different things and I just need some clarification and advice.
    Obviously I'm sure some of you wont want to give personal details out that's fine but I'm generally just in need of some advice, let me know if you can help:)

    I don't change any settings.  For 1X web images I always use Save for Web.  PS remembers which web settings you used the last time.   This doesn't effect other files or formats.
    Image optimization — Web Fundamentals
    Improving Images for Hi-Res Retina Displays
    A guide for creating a better retina web - Ivo Mynttinen / User Interface Designer
    Serving Hi-Res images only to High Density Displays with PHP
    Retina Images
    Seriously, you can drive yourself crazy with all this Retina display stuff.  I don't see much upside to it except for very special situations.
    Nancy O.

  • Getting attachments and emails need serious help!!

    I am not sure if I am doing this right, but I am trying to receive emails from gmail, and I am having some serious problems. For some reason I get four emails and then I get a null exception. I have been through my code a dozen times and I cannot find the problem. Here is my code:     try{
                        Properties props = new Properties();
                        props.setProperty("mail.pop3.socketFactory.class", SSL_FACTORY);
                        props.setProperty("mail.pop3.port", "995");
                        props.setProperty("mail.pop3.socketFactory.port", "995");
                        Session session = Session.getInstance(props, null);
                        Store store = session.getStore("pop3");
                        store.connect("pop.gmail.com", "jwheat3300", "carrie11");
                        Folder folder = store.getFolder("INBOX");
                        folder.open(Folder.READ_ONLY);
                        int n=folder.getMessageCount();
                        attach = new String[n];
                        String select = "false";
                        String body = "";
                        for(int i=1; i<=n; i++)
                             Message message = folder.getMessage(i);
                             date2 = "3/2/2006";
                             from = message.getFrom()[0];
                             subject = message.getSubject();
                             attach="false";
                             Multipart multipart = (Multipart)message.getContent();
                             int j = multipart.getCount();
                             for(int l=0; l<j; l++)
                                  Part part = multipart.getBodyPart(l);
                                  disposition = part.getDisposition();
                                  System.out.println(disposition);
                                  if((disposition !=null) && ((disposition.equalsIgnoreCase(Part.ATTACHMENT) || disposition.equalsIgnoreCase(Part.INLINE))))
                                       MimeBodyPart mbp = (MimeBodyPart)part;
                                       if(mbp.isMimeType("text/plain"))
                                            body = (String)mbp.getContent();
                                            if(body==null)
                                                 body="";
                                            bodies.add(new Body(body));
                                       if(mbp.isMimeType("text/html"))
                                            body = "This is an html email. Unable to display HELP";
                                            bodies.add(new Body(body));
                                       if(mbp.isMimeType("application/x-shockwave-flash"))
                                            attach[i] = "true";
                                       System.out.println(part.getContentType());
                                  if(disposition == null)
                                       MimeBodyPart mbp = (MimeBodyPart)part;
                                       if(mbp.isMimeType("text/plain"))
                                            body = (String)mbp.getContent();
                                            if(body==null)
                                                 body="";
                                            bodies.add(new Body(body));
                                            attach[i] = "false";
                                       if(mbp.isMimeType("text/html"))
                                            body = "This is an html email. Unable to display HELP";
                                            bodies.add(new Body(body));
                                            attach[i] = "false";     
                             inmails.add(new Inmail(select, from, subject, date2, attach[i]));
                             table.revalidate();
                        folder.close(false);
                        store.close();
                   }catch(Exception t)
                             System.err.println("Exception900: " +t.getMessage());
    I get the body fine, and what I am trying to do is when I get all of my information is to put this into the inmails vector and then update my table. That works but I am only gettting four of thirty emails. Also when it comes to attachments do I need to set up a mime type for every possible attachment that will come? I need some serious help!

    I guess I am seriously confused then....I tried doing the tutorial from jguru on sun's site and this was how the code was set up. At least I think it is....I pretty much have no idea what I am doing. I mean the code as it stands will get the emails, and by the way this is for an application not for a server or anything. So should I check for it to be just plain text first and then find out if there is a multipart. There is not really any good tutorials that explain what it is I am trying to accomplish. Please help!

  • Need Urgent help please? I need to restore from a previous iphone backup.

    Oops, I admit it - I messed up but need help please?? I received a replacement iphone today. My broken iphone OS and my itunes had the latest software updates and I did a full backup before going to the store to get the rerplacement. However, when I got home with the replacement iphone and plugged it in, it asked if I wanted to update the OS on it. I made the mistake of saying yes. It then made a backup of the empty factory settings from the new replacement and restored from that rahter than the backup I made before going to the store. Yes I know I should have said no and just did the restore which would have resotred my previous backup that I made before going to the store. Then after everything would be allright I could have told it to update the OS.
    You can slap my in the face or I will do it myslef for making such a stupid mistake. All ready did the "I should have had a V" thing to my forehead.
    After seeing the restore was fromthe factory settings rather than my earlier good backup, I went into my documents and drilled down to the mobile sync backup and saw that one of the three folders (with giberish as a title) has a lot of information with the date and time I did the backup before going to the store.
    Could I possibly delete the later (factory setting backup) folder and then do a restore to get my good backup onto the iphone? I didn't do that yet in fear that it might mess something else up on the iphone and I wanted to check with you experts here first for guidance and assistance, PLEASE?
    I'll be anxiously awaiting any help you can give!
    Thank you!!

    rwmac22 wrote:
    Hopt and OneOrangeTree, Thank you both very much for replying!!
    It took me a long time to get back to the dissucison group because I tried both of your suggestions which therfore had to do about 4 restores. They take quite a while (about 50 minutes each actually). Your help got me half way there and is very apprecaited! I did manage (with your excellent help) to get most of my backup put onto the replaced iphone. the photos, music, and videos didn't get put over. I think I can move those back over by making sure they are selected in the seperate tabbed screens for the iphone. However, I can't get to those screens because every time I connect the iphone now, it brings up the "set up your phone screen". The one with the "an iphone has been previously synced with this compter" setup as new phone or restore from ....
    Well I did the resotre from 3 times and that page still comes up when I plug in the iphone. Yes, I did close itunes, reboot the PC, and powered off the iphone and then brouhgt it back up before connecting (all several times), but itunes still takes me to the same "setup iphone screen".
    Can you help me to get it to the standard iphone screen and there I will make sure the selected items are checked and do a sync.
    Please know I do appreicate your kind assistance so far and hope someone can get me the rest of the way!
    The "Backup" do not store your Applications, Music, Video's. It saves your settings, your application preferences, etc.

Maybe you are looking for

  • Why am I not able to put plug-ins on the master track?

    so my problem is that the volume of tracks in logic is correctly and if I listen to them in itunes they are way lower. I put an adaptive limiter, a match eq, a multripressor and gain on the output track and nothing changed. How can I solve that probl

  • PHP include in Template

    Dear Forum users, I have created a Template, saved it as PHP, in one table there is an include code: <?php include ("../file.inc.php"); ?> It works in the related file, just there are some strange characters showing up in the browser window:  (How

  • Download report with Aggregates

    Hi I am using Application Express 4.0.2.00.07 I have been trying to figure out a way to print the aggregate that is in my IR to be printed/downloaded into CSV or HTML. I have no problem in printing the report but I cant get the aggregate(sum) to be p

  • I need a map which will retrive values in the same order i give?

    can any body tell which map technique will retrive the vlaues in which order i inserted. HashMap uses hash technique. TreeMap has it's own.. like way. so, which mapping tech. can i use for my requirement? Thank u in advance.

  • Mandatory Attributes in Create User Form

    Hi All i want to make the mandatory fields in create user form (ie Organization name) as optional. For this i edited the FormMetada.xml file by making optional as true. (in the attribute reference for Organization field in User management section), a