Deadline fast approaching, need help

If I have 2 InternalFrames that can call the same class,
How can I find out which Internalframe the call came from.
Thanks
Jim

this is assuming that the program structure that you are looking for is like this:
The two InternalFrames are seperate instantitation of the same class, and that they call the other class seperatley.
that those seperate instantiations of the other class have knowledge of each calling class, and that the calling class has the ability to be identified.
I would use a String to store "name" for the class and make sure it is not static. If it is then when you change one you change them all. Then you can make set/get methods for that String, and you can have a constructor that can set the "name" variable too.
If I understand your question right, then your InternalFame class will have to pass a reference to themselves to the class constructor/method that they are calling. Otherwise the class the was called by the two InternalFrames would not have anyu sort of handle to reference the InternalFrame class.
Finally, if you want the infromation about the calling object inside of the called class to be visible to each instantiation of that class then it should store the InternalFrame refrence in an static data-structure that can store multiple objects (ie Vector, Object[], ...)
to sum it up:
--in InternalFrame use an identifier variable (your choice) but don't use static variables if the 2 classes are of the same type
--In InternalFrame when you are constructing the "other class" pass a reference of the the "calling class" to the class that is getting called.
--in the "other class" store the references in a static variable that can hold multiple objects. 
hope this helps.

Similar Messages

  • If anyone could help me I would be HUGELY appreciative - Uni deadline today and need help!

    Hi
    I'm reasonably new to indesign but know the basics.  I have a deadline today but my InDesign CS6 is behaving strangely - If anyone could help me I would be HUGELY appreciative. 
    I'm trying to type like I normally would but whenever I try to place a piece of punctuation at the end of a paragraph or line, it places it at the start of the line.. even if my cursor is telling it to do differently.  (see image)
    I'm trying to place it at the end of legibility where my cursor is but it places it at the start of clarity at the start of the line!? does anyone have any ideas, need help with this ASAP
    Thanks a lot!
    Joe

    @Joel – do you work with the Adobe World-Ready-Composer in conjunction with a RTL (Right-To-Left) character format? Maybe you could show us your paragraph with "Hidden Characters"on. Together with your definitions of the character style for the dot, the character style for all other characters and the paragraph style.
    I could mimic something like  you are showing with a very strange set of scripts generating a paragraph style and two character styles in InDesign CS5.5.
    See the following screen grabs:
    Character Style named "ZF_LTR" for all characters in the paragraph but the last one (the dot):
    Character Style named "ZF_Arabic" for the last character in the paragraph:
    Paragraph Style named "AF_MIXED2_LTR-RTL" for the whole paragraph. Not formatted properly for Arabic use. See the details in the section "Formateinstellungen" in the screen grab:
    That would be an explanation…
    Might be, that there is another one.
    Uwe

  • Desperate for Delay function - Deadline fast approaching...

    I am trying to do what I suspect is easy, and I've searched
    but not come up with what I need to do.
    In my project, I have 4 nav buttons in a nav bar. Press on
    one and it calls a .swf file that animates the actual pressed
    button photo larger onto the main area of the screen, so it's no
    longer part of the main nav bar. I would like the user to be able
    to click another nav button (still in the nav bar), and the
    animation reverses itself - the large photo goes back to a small
    icon for the navigation bar, then the newly clicked button enlarges
    into the main area. Make sense?
    What I've done so far is to add the code below:
    This works great to call up the correct swf on clicking a
    button. Unfortunately, I don't know how to allow time for the
    reversing of the animation before jumping to the newly selected
    area.
    As of now, each called swf animates the button image
    enlarging on screen, submenus slide out of it, then it hits a
    "stop" in the timeline. What I want to happen is when the user
    clicks on a different nav bar button, it releases the playhead from
    the stop in the loaded swf, it plays through reversed frames,
    making the large image shrink back into its place in the nav bar,
    and the subsequent new button expands to fill the area. Maybe not
    the best way to achieve what I want, but all I've come up with so
    far.
    So, is there a way to tell Flash to release the playhead (in
    the called .swf file), play 105 frames and THEN jump to the correct
    section based on what the user clicked in the nav bar?
    Please be gentle with me. I'm quite new to AS, so please
    SPEAK SLOWLY : ) I've experimented with setInterval and getTimer,
    but those are over my head. I don't understand how to use them and
    how to integrate with my existing code as shown above. I think what
    I want is pretty easy, but I'm getting very frustrated making it
    work.
    Any help is greatly appreciated. My hair is turning gray fast
    enough on it's own - I don't need Flash's help with that!
    Hope this makes sense. Let me know if it doesn't and I'll try
    to explain it better.

    The code that you're showing is AS2 and this is the AS3
    forum. In any case, what you want to do is fairly simple to
    achieve. One way to make this work is to keep track of the current
    button and the button that's just been pressed. When you press the
    first button, animate it. Store its name in a variable.
    When you press the second button, animate the first button
    back. When that button has finished, tell the second button to
    animate and store its name in the variable. It might look something
    like this:

  • Ipod touch 4g  4.3.5 8gb battery drains very fast! need help.

    I just got a brand new ipod touch 4g from Singapore and i've been using it for four days now.During these four days i couldn't help but appreciate the device's brilliance and i have to admit it ***** when it comes to battery backup. I use ios 4.3.5 and what i've notced was that my ipod drains way too fast..which is very annoying after having spent so much on the devie, one can't afford to compromise on the battery department. please help me

    It may be a defective battery.  Try these solutions.  It helped me..
    1. Go to settings > general > Reset > Reset All Settings.
    (This will not erase any data.  However it will reset all you configured settings [password, brightness, etc.] on you device)
    2. Visit a apple Store near you
    3. Call Apple at 1-800-MY-APPLE (Free if your complimentary 90-Day call support is active)
    4. Send it in for service at Apple.com/support

  • Help! My iweb app has just completely stopped working. It won't allow me to create a new site or open a previously built site. Please help, my deadline is fast approaching.

    Help! My iweb app has just completely stopped working. It won't allow me to create a new site or open a previously built site. What should I do? Please help, my deadline is fast approaching.

    What system and iWeb versions are you running? What happens when you double click on the iWeb application when trying to launch it?
    OT

  • Need help - deadline approaching

    Hi
    I have a project done completely from multicam clips. Everything is fine when I play the clip in FCPX 10.1.1 . BUT when I try to export using share (master) the sound is gone only a loud his can be heard. As I said in FCPX it plays perfectly fine. The project was 10 days work and is finished ..... Any idea what can be wrong???
    I work with FCP since over 8 years now, with X since 2 years, never had such probelms.    I really need help   !!!   Thanks

    If you want to use external application to record your computer sound you can try "SoundFlower" it routes audio from your computer (no ambience or external sound) to the recording software which can be (Quicktime, Screenflow, etc..) then find a way to combine audio with video from FCP.
    Here is a how to record sound with sound flower
    I hope this will solve.

  • Need help. I am running a 27 in imac with 16 gigs of ram. Photoshop runs really fast, except when opening files. It takes 5-10 minutes to open even a small file of 1 meg. I cleaned and validated all the fonts and removed all questionable fonts. Reset pref

    Need help. I am running a 27 in imac with 16 gigs of ram. Photoshop runs really fast, except when opening files. It takes 5-10 minutes to open even a small file of 1 meg. I cleaned and validated all the fonts and removed all questionable fonts. Reset preferences and still have problem. Slow to open and in force quit "Photoshop not responding" At this point should I uninstall and start over.

    What are the performance Preferences?

  • I NEED HELP FAST!!! how can i activate wi-fi if i want to use that for facebook apps instead of wasting my data?

    i want the 200 mb plan for my iphone and wanted to know if instead of using safari i can use apps such as facebook or tumblr without using up my data. i got the asnwer that i can avoid that by using wi-fi, but how does that whole thing work?
    sorry i am a bit new at this, and i need help fast!
    THANK YOU!

    hookedonlerman wrote:
    but will that replace the use of using up data? (wifi & 3G)
    It sounds as if you don't really understand what "using data" means. Data is not something different from WiFi and 3G, it's something sent over WiFi and 3G. Think of data as water and WiFi and 3G as types of pipes. Some apps need to send and receive data to work. That data can be sent or received in different ways. It can be sent over WiFi or 3G. Both official iPhone carriers in the U.S. have metered data plans. It's sounds as if you're talking about AT&T's 200 mb data plan. WiFi is not provided by your cellular carrier. You can have WiFi from your Internet Service Provider at home or you can access free WiFi at places like McDonalds or Starbucks or paid WiFi at places like airports.
    If you have WiFi turned on on your phone and WiFi is available, the phone will default to WiFi. WiFi is faster than 3G and generally not metered, and is sometimes even free. If you are out of range of WiFi, you would be using 3G to send and receive your data. With a metered plan, you need to keep an eye on how much you are using because if you go over your allowance, you will be charged additional fees.

  • My daughter has spitefully changed my password and has refused to tell me. I have so much medical information that I can not lose. Is there anyway to get around this problem. Please I need Help fast.

    My daughter has spitefully changed my password and has refused to tell me. I have so much medical information that I can not lose. Is there anyway to get around this problem. Please I need Help fast.

    Connect the iPod to your syncing computer and restore it via iTunes.  However, if iTunes asks for the unknown passcode you need to place the iPod in recovery mode and then restore the iPod from backup.  For recovey mode see:
    iPhone and iPod touch: Unable to update or restore
    "If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup). If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. Refer to Updating and restoring iPhone and iPod touch software."
    Above is from:
    http://support.apple.com/kb/ht1212

  • My little brother messed up with my iPod touch 4th Gen by entering the wrong password , now all data is beeing erased what should I do.The iPod is just showing the Apple Logo and some buffering icon below it.Need help fast!I'm really worried!

    I really need help this has happend 5 hours ago and the ipod os still showing the apple logo and the buffering icon below it!
    It re booted several times till now.
    Need help fast!

    - I suspect that he went to Settings>General>Reset>Erase all content and settings.  For 1G or 2G iPod that can take hours and it will likely stall out if not connected to a charging source.
    Try the following:
    - A reset.
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - The connect to computer and try to restore via iTunes.
    - Id something is still showing onthe screen, disconnect from computer/charging source and let the battery fully drain. After charging for an hour, Try the reset and restore.
    - If you can turn the iPod off, se if placing the iPod in recovery mode and then restore. For recovey mode:
    iPhone and iPod touch: Unable to update or restore

  • Need Help Fast Please

    Why does this code not do what I want to happen?
    I have a 7 non functional buttons above the buttons for the days in the month and I would like to be able to layout the buttons starting on the day that the month begins and ending where it ends.
    Like in the microsoft windows calander.
    Any ideas as to how I'd do this?
    I need help fast. Please.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    import java.util.*;
    public class MyDairy extends JFrame
         //Initilises Global Variables
         myHandler H = new myHandler();
         monthHandler J = new monthHandler();
         openHandler O = new openHandler();
         String monthName;
         JComboBox months;
         static String[] daysOfWeek = {"Sun", "Mon", "Tue", "Wed", "Thur", "Fri", "Sat"};
         static int[] daysInMonth = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; 
         JFileChooser box;
         public MyDairy()
              //Initilises the JComponents
              JMenuBar menuBar;
               JMenu menu;
              JMenuItem menuOpen;
              JMenuItem menuSave;
              JMenuItem menuExit;
              JButton dayName[] = new JButton[7];
              JButton day[] = new JButton[36];
              JPanel b;
              JPanel a;
              Calendar today = Calendar.getInstance();
              Calendar startOfMonth = Calendar.getInstance();
              startOfMonth.set(Calendar.DAY_OF_MONTH,1);
              startOfMonth.set(Calendar.DAY_OF_WEEK,7);
              System.out.print(startOfMonth);
              //Sets up the Layout
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              Container c = getContentPane();   
              c.setLayout(new BoxLayout(c, BoxLayout.Y_AXIS));
              a = new JPanel();   
              a.setLayout(new GridLayout(0, 7));
              b = new JPanel();   
              b.setLayout(new GridLayout(5, 7));
              //Sets up and adds the menu bar   
              menuBar = new JMenuBar();   
              setJMenuBar(menuBar);  
              //Adds the File menu
              menu = new JMenu("File");   
              menuBar.add(menu);
              //Adds the menu items      
              menuOpen = new JMenuItem("Open");     
              menu.add(menuOpen);
              menuSave = new JMenuItem("Save");     
              menu.add(menuSave);
              menuExit = new JMenuItem("Exit");     
              menu.add(menuExit);
              //Produses the ComboBox
              String[] name={"January", "Feburary", "March", "April", "May", "June", "July", "Augest", "September", "October", "November", "December"};
              months = new JComboBox(name);
              int m = today.get(Calendar.MONTH);
              int d2 = today.get(Calendar.DAY_OF_WEEK);
              System.out.print(d2);
              months.setSelectedIndex(m);
              months.addActionListener(J);
              c.add(months);
              c.add(Box.createVerticalStrut(10));
              switch (months.getSelectedIndex())         
                       case 0: for (int i=1; i<36; i++)                          {                   
                         if(i<4)                
                            day[i] = new JButton();                  
                            day.setEnabled(false);               }               
    int k = 1;                
    day[i] = new JButton(" "+k);                b.add(day[i]);                
    day[i].addActionListener(H);               k++;               
    }break;          
    //other case statement up to 11 are simaliar          }                     
    c.add(a);
              //Produces an Array of Buttons
              for (int i=1; i<36; i++)
                   day[i] = new JButton(" "+i);
                   b.add(day[i]);      
                   day[i].addActionListener(H);               
              c.add(b);
              updateNameField();
              setSize(400,400);
              show();
         }//constructor
         private void updateNameField()
              monthName = (String) months.getSelectedItem();
         class myHandler implements ActionListener
              public void actionPerformed(ActionEvent e)
                   new Text_Area(monthName);
         class openHandler implements ActionListener
              public void actionPerformed(ActionEvent e)
                   File f1 = New File ("2003.dat");
                   simpleSerializer S = new simpleSerializer(f1);
                   MyDairy = S.readObjectFromFile();
         class monthHandler implements ActionListener
              public void actionPerformed(ActionEvent e)
                   updateNameField();
         public static void main(String[] args)
              new MyDairy();

    Container c = getContentPane();
    c.setLayout(new BoxLayout(c, BoxLayout.Y_AXIS));don't code like above try something like...
    Box box=Box.createVerticalBox();
    c.add(box);
    ----so on
    Hope this will help...

  • Need help fast with a buying decision - Leadtek 6800 GT

    Hi there, I have the opportunity to swap my Club 3D 6800 GT for a Leadtek 6800 GT. The reasons I would do this would be the cooling and the games bundle.
    I just wanted to know if anyone knows how the cooling is on this particular card and if it would be better than the reference design?
    My other concern is that it has a huge copper heatsink on the back of the card, this would sit directly under the CPU HSF. There really would only be a few millimeters between them and due to the position of the socket on this board, the heat sink fins go up vertically. Would the heat from the card's copper heat sink rise up into the CPU HSF grooves and raise the temperature of the CPU?
    Thanks for any help  
    I kind of need help fast as someone said they were gonna buy my other card of ebay today, there's still time to stop them if this is gonna be a bad idea

    i would definately take the leadtek one over the club3d card, the cards themselves are all based on refrence designs just different cooling solutions and bundles
    and the cooler on the leadtek is a lot better, and it isnt more noisy then the club3d one at all
    it has better cooling, and they seem to be the ones which are the most available, and they overclock very well due to the better cooling

  • Need Help Fast! Page is dispalying twice in quiz

    I have created a quiz using tips from another post in this
    forum. I insterted a regular slide with a continue button before
    the quiz questions. I insterted another regular slide at the end of
    the questions with a re-take button that points to that first
    slide. This part is working great. When I take the published quiz,
    I click the continue button, and instead of continuing, the slide
    redisplays. I click the button again, and it moves forward like
    it's supposed to. Any advice?
    I'm supposed to have these posted in our LMS today for
    testing, so I need help fast!!! Thanks!!

    What you're seeing is likely the result of a MS patch for IE
    in response
    to the Eolas patent suit.
    MS recently updated IE so any content shown in a page using
    the Embed,
    Object, or Script tags will need to be 'activated' before
    they can be
    clicked (or otherwise 'interacted with').
    Your home computer probably hasn't had the latest security
    rollup
    installed, is why you're not seeing the issue on that
    machine.
    There is a work around, many site mention it. This may be a
    good place
    to start:
    http://www.macromedia.com/devnet/activecontent/articles/devletter.html
    Erik
    dukekelly wrote:
    > Why is it that as soon as you ask for help, you find the
    answer?
    >
    > This isn't a captivate problem at all. It's an IE
    problem. Because the button
    > is a control in Flash, our systems where I work are
    requiring us to click the
    > screen to activate the controls. THEN you have to click
    the button. When I play
    > the movie on my home computer, this phenomenon isn't
    happening. Now, how am I
    > supposed to deal with that??? ASRRGGGHH!!!
    >
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - Authorware
    http://www.macromedia.com/support/forums/team_macromedia/
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    *Search the A'ware newsgroup archives*
    http://groups.google.com/groups?q=macromedia.authorware

  • I am trying to export a video as an flv but the list of possible formats is much shorter than it used to be. I cannot find any way to make an FLV using the newest version of Premiere Pro. Need help fast! I am on a Mac

    I am trying to export a video as an flv but the list of possible formats is much shorter than it used to be. I cannot find any way to make an FLV using the newest version of Premiere Pro. Need help fast! I am on a Mac

    Support for exporting to FLV and F4V has been removed. To learn more, please consult this blog post: removal of FLV and F4V export features from Adobe Media Encoder, After Effects, and Premiere Pro | After Effects regio…

  • Just bought an ipad mini I have synced it with my itunes but when I go to play my music it just flashes threw all the songs or albums or artists like it is on super fast shuffle until it finds a song it would like to play.  need help please

    Just bought an ipad mini I have synced it with my itunes but when I go to play my music it just flashes threw all the songs or albums or artists like it is on super fast shuffle until it finds a song it would like to play.  need help please

    Since you are a new iPad user .....
    Complete guide to using iOS 6
    http://howto.cnet.com/ios-6-complete-guide/
    Guide to Built-In Apps on iOS
    https://sites.google.com/site/appleclubfhs/support/advice-and-articles/guide-to- built-in-apps-ios
    You can download a complete iOS 5 iPad User Guide and iOS 6 iPad User Guide here: http://support.apple.com/manuals/ipad/
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad - Guided Tours
    http://www.apple.com/ipad/videos/
    Apple iPad Guided Tours - Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    http://www.youtube.com/watch?v=YT2bD0-OqBM
    http://www.youtube.com/watch?v=ROY4tLyNlsg&feature=relmfu
    http://www.youtube.com/watch?v=QSPXXhmwYf4&feature=relmfu
    How to - Articles & User Guides & Tutorials
    http://www.iphone-mac.com/index.php/Index/howto/id/4/type/select
    iPad How-Tos  http://ipod.about.com/lr/ipad_how-tos/903396/1/
    You can download an iPad User Guide to the iPad from the iTunes store.
     Cheers, Tom

Maybe you are looking for

  • How to change to SMPT host

    Hi, I am MCA student doing a final year project in company.I am in team implementing sunidm. I have installed sunidm on windows. While installing the idm i selected for sending email notification file as local file ie is text file insteated of SMTP.

  • Mini DP on MacBookPro to thunderbolt on iMac

    I have a MacBook Pro that I purchased in December of 2010. It does not have a thunderbolt port. I just purchased an iMac, and would like to be able to use it as an external display for the MacBook Pro. From what I've found, there is not currently a d

  • Very slow BB since modem upgrade

    Hi I've recently went through with the modem upgrade provided by Kelly Comms. Seemed ok at first but now my connection is pretty much unusable upstairs. Download speed is 1.6MBs upstairs but much better close to the modem (understandably). Any option

  • Cleaning my mac book to make it run like brand new.

    Want to restore macbook late 2008 to factory settings but cannot find discs. I just want the feel of a brand new macbook, but keep the other apps that I have purchased. How can I do it without restoring to factory settings.

  • ADF BC - unable to control posting order

    Hello, we have big troubles with controlling entity posting order when deleting entities. For simplicity consider this example: - you have Dept (master) and Emp (detail) entities - then: a) change some attribute in current Dept row b) remove all Emps