Calling a method in a tab from the main window.

I came into this project and I don't fully understand why I can't do what I want to do.
The previous writer creates a main GUI that looks like a normal Windows Application with the menus and things. Then inside he has tabs to navigate to the various parts of the program where the user can input data and receive results. This I understand. He begins the program by using a starter to create a new MainGUI calling it MainGUI.  My problem is now that I am working on the tab and want to call one of MainGUI's get methods, I can't. I can call from another tab. EX: SitePropPanel.getOpenYear() where SitePropPanel is another tab that is created in the MainGUI.  When I try to use MainGUI.getData() it just says _MainGUI cannot be resolved.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

In case it is not clear, In the tab, I want to I want to be able to call a getter method that exists in the MainGUI. I thought I could do this by saying
MainGUI.getData();  I used MainGUI because that is name the previous programmer gave to the instance of the class, MainGUI, in the Starter class.

Similar Messages

  • I accidently closed my window with all my app tabs, now the only window that opens was a 2nd one I had open. How do I get back all my app tabs from the previous window, and why didn't it give me the usual warning you are closing more than one tab?

    I accidently closed the window with all my frequently used app tabs, now the only window that opens was an extra one I had opened. How do I get back all my app tabs from the previous window, and why didn't it give me the usual warning you are closing more than one tab? edit
    Details

    Then the (App) tabs from that window are lost unless you can restore an older copy of the sessionstore.js file (Time Machine?) that has that lost window.
    *http://kb.mozillazine.org/sessionstore.js

  • Can I set up a new window to open without all the tabs from the current window opwning?

    I have a new computer at work with what must be a new version of firefox. I use multiple windows to do my job. When I open a new window, all the tabs from the current window open in the new one. I am wondering how to configure a new window to open with either a blank page or just my homepage?

    I restarted Firefox and changed the homepage settings a to a different choice and back to the desired page then restarted Firefox again. This eliminated all the initial tabs from opening from opening in the new window. I am not sure how all the pages were cached or what I should have done but I no longer have this issue.

  • Printing from the main window -- song order is not the same as playlist ??

    iTunes 10.0.1 (22)
    OS 10.6.4
    Let's say you have a album with 18 songs. The songs are in the exact order of the album, from 1 of 18 all the way to 18 of 18. (track numbers are also correct, in order). You view by album (constrain the results window by searching for album title)
    Now, print. Select any option, (I tried both cd jewel as well as song listing -- doesn't matter which you select).
    The ORDER of the printed song list (or jewel case insert) DOES NOT MATCH the order of the songs in the album.
    What good is that?
    I can recreate this with various albums.
    This NEVER happened before version 10.
    Anyone have any info on this?
    PS -- if you create a PLAYLIST and then copy the album into the playlist, it prints just fine. The issue is printing from the main window when in album view mode.
    Thanks,
    J
    Message was edited by: Jeremy Roberts

    Try changing X postion to not equal to zero something else for example.
    /:           POSITION WINDOW
    /:           POSITION XORIGIN '-0.1' CH YORIGIN '+0.4' LN
    /:           SIZE WIDTH +0.7 CH HEIGHT +5.0 LN
    /:           BOX FRAME 7 TW
    /:           BOX HEIGHT '1.1' LN INTENSITY 15
    Nabheet

  • How to call a function in a class from the main timeline?

    Hey Guys
    I have a project in Flash with four external AS files, which are linked to items in the library using AS linkage.
    What I want to do is call a function in one of these files from the main timeline, how would I go about doing this? I'm not currently using a document class, most of the code is in Frame 1 of the main timeline.
    Thanks

    // change type to the class name from the instance
    ClassNameHere(this.getChildByName('instance_name')).SomeFunction();

  • Anyway to get sound from the main window only?

    If you have mulitple quicktime windows playing is there anyway to get sound from only one when you make it the main window?

    Open QuickTime Player 7.6.6.
    Command-, (comma key) to open the Player preferences / General tab
    Sound: Play sound in frontmost player only.

  • How do i get the components when a new window opens from the main window?

    In a given application, i am able to get the list of components for the main window. When an event happens in the main window, now a new window opens here how do i get the components for this newly opened window?

    getContentPane().getComponents() can be used, only if i know that new class name thats been poped up when the event happens to that main window....
    Is there anyway in runtime to know that new class name & fetch the event...

  • Inputting Keywords and then Hiding them from the main window?

    Hi, folks. As my subject line reads, is it possible to temporarily hide images to which I've entered keywords so that I can shrink my library of un-keyworded photos down as I enter keywords? Basically, I'm a bit overwhelmed with trying to catalog 30,000+ photos and I'd love to be able to hide individual, keyworded files as I code them, OR to hide them as I put them in various collections.
    Is either of these currently possible?
    Thanks for your help!
    -Greg

    >is it possible to temporarily hide images to which I've entered keywords so that I can shrink my library of un-keyworded photos down as I enter keywords? Basically, I'm a bit overwhelmed with trying to catalog 30,000+ photos and I'd love to be able to hide individual, keyworded files as I code them
    In the library module, display a group of photos you are working on--e.g., all photos, or a folder/sub-folders, etc.
    In Find, look for Keywords with rule "Are Empty". Only the images without keywords are displayed.
    As you add keywords, the images disappear from the grid display.
    >OR to hide them as I put them in various collections
    See this thread for an approach:
    http://www.adobeforums.com/cgi-bin/webx/.3bc46c3a/1

  • My entire screen is in tiny font, toolbars, tabs and  the main window

    I found my answer on how fix the size of my resolution back to normal on here but having trouble with getting my settings and font size back to default. Everything on my screen is smaller and not sure how to go back to "normal". Any help would be appreciated.
    I have a mac book white 2009..i think it was a gift. mac os x 10.5.8 hope that helps.

    If it's Snow Leopard, there is no true full screen for windows, but you can resize the windowby moving it to top left by dragging on the top "frame" then drag the bottom right corner to fill as much screen as you want. Once you've set the size that file or application should remember it and open at that size every time.
    But you need to do that for each appication.
    For Lion, ask in the Lion forum; I understand it has proper full-screen capability, but I don't use Lion so can't advise.

  • My safari stopped letting me open a new tab in the same window. what happened and how can I get it back to normal?

    When I try and open a new tab in the same window, it wont open a new tab. It leaves the page I am on and goes to the "top sites page."

    Hi,
    If you have got to  Mountain Lion OS X 10.8.2 and therefore Messages version 7.0.1 then double click the individual chats.
    Once they are in separate windows you can chat like that  (That's the way I used to chat - I didn't even use the tabbed chat)
    It is impossible to create a separate Chat window each new chat (you have to separate them off from the main window which also keeps a "copy")
    New chats are added to the main window even if you have used the red button to hide it. (CMD + 0 from the Window menu brings it back)
    10:49 PM      Tuesday; November 20, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Calling a method on a jFrame from a jPanel that created by the jFrame

    Hi all
    I can not for the life of me work out how to do this.
    Calling a method on a jFrame from a jPanel that created by the jFrame.
    I have used this code to set a handle for one jPanel to another.
    i.e I can create new jpanel and pass in handles from one to another but not back to the jFrame.
    // this is sudo code
      private Panel_Top topPanel;
      private Menu_Panel menuPanel;
      private DataPanel dataPanel;
    //create new
        topPanel = new Panel_Top();
        menuPanel = new Menu_Panel();
        dataPanel = new DataPanel();
    // add handles from one to another
        menuPanel.setDataPanel(dataPanel);
        topPanel.setDataPanel(dataPanel);
        topPanel.setMenu_Panel(menuPanel);
        dataPanel.setMenu_Panel(menuPanel);
    // in each class I use this to set
      public void setDataPanel(DataPanel dataPanel) {
        this.dataPanel = dataPanel;
      }But I can not seam to get a handle back to the jFrame that created it.
    Please help
    as you can see I am trying but no luck so far
    Thanks

    class Life extends JPanel{
          pulic Life( JFrame owner )
                owner.doSomething(); // pass the JFrame to the constructor and feel free to use it
    }[code[                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Calling a method of one class from another withing the same package

    hi,
    i've some problem in calling a method of one class from another class within the same package.
    for eg. if in Package mypack. i'm having 2 files, f1 and f2. i would like to call a method of f2 from f1(f1 is a servlet) . i donno exactly how to instantiate the object for f2. can anybody please help me in this regard.
    Thank u in advance.
    Regards,
    Fazli

    This is what my exact problem.
    i've created a bean (DataBean) to access the database. i'm having a servlet program (ShopBook). now to check some details over there in the database from the servlet i'm in need to use a method in the DataBean.
    both ShopBook.java and DataBean.java lies in the package shoppack.
    in ShopBook i tried to instantiate the object to DataBean as
    DataBean db = new DataBean();
    it shows the compiler error, unable to resolve symbol DataBean.
    note:
    first i compiled DataBean.java, it got compiled perfectly and the class file resides inside the shoppack.
    when i'm trying to compile the ShopBook its telling this error.
    hope i'm clear in explaining my problem. can u please help me?
    thank u in advance.
    regards,
    Fazli

  • How do you call a java class from the main method in another class?

    Hi all,
    How do you call a java class from the main() method in another class? Assuming the two class are in the same package.
    Thanks
    SI
    Edited by: okun on May 16, 2010 8:40 PM
    Edited by: okun on May 16, 2010 8:41 PM
    Edited by: okun on May 16, 2010 8:47 PM

    georgemc wrote:
    To answer your impending question, either the method you're calling has to be static, or you need an instance of that other class to invoke it against. Prefer the latterAnd to your impending question after that: no, don't use the Singleton pattern.

  • Is it possible to call a method in a servlet from  a java script ?

    I need to do a dynamic html page . In the page i select some things and then these things must communicate whit a servlet because the servlet will do some DB querys and update the same webpage.
    So is it possible to actually call a method of a servlet from a java script? i want to do something that looks like this page:
    http://www.hebdo.net/v5/search/search.asp?rubno=4000&cregion=1011&sid=69DHOTQ30307151
    So when u select something in the first list the secodn list automaticly updates.
    thank you very much

    You can
    1. load all the options when loading the page and
    set second selection options when user selected
    the first; or
    2. reload the page when user select first selection
    by 'onChange' event; or
    3. using iframe so you only need to reload part of
    the page.

  • Can a site use cookie info from separate Firefox windows, or just between tabs in the same window?

    Hi!
    I apologize for how crazy my question sounds,, (& for everything that follows), but I'm at a loss as to the correct wording...I hope my explanation will clarify things, at least enough so that someone understands what I'm trying to say! Wish me luck!
    I'm using Firefox 37.0.1 on Windows 8.1 & everything is up to date. The most important details for this problem will be my settings & addons for Firefox, so here goes:
    I allow all cookies, but it's set to clear them when Firefox closes.
    I do NOT save any history or passwords & I also have "Click & Clean" enabled, & I use it frequently, even though I don't save any history or anything else, just to add to my security/privacy, (guess I didn't use it often enough, huh?)
    I have the box checked for "Do Not Track", (but I just learned the hard way that even so-called "nice" companies don't honor this request)
    I have "Ghostery" as well as "Google Analytics Opt-out" enabled, (even though I don't use Google for my search engine, nor do I go to a Google site unless it's absolutely necessary, (I read about Google's penchant for following users everywhere in order to get their preferences, so I avoid them if at all possible).
    In other words, I thought I was protected from tracking-related problems, but I need to know if these precautions are effective when using Firefox & having several tabs open...then opening another tab/window...are cookies & any other info "readable", (I don't know what word should be used here), from tab to tab in the same window, (which just happened to me), & is the cookie info readable from window to window? In other words, do I have to completely close out Firefox, delete cookies, then open a brand new window so that any session cookie info has been deleted to protect my browsing info from being accessed?
    I know, I'm STILL not making much sense...here's what happened, (I won't divulge the site that did the 'cookie abuse', though.
    I had several tabs open, as I usually do, because I was gathering info for research on a report I was working on. Suddenly, I remembered I had to order my hubby's birthday gift, so I opened another tab, (in the same window), to my favorite site & started searching for the items I wanted. I found what I was looking for & was getting ready to check out when I noticed something very odd...there were several "suggestions" listed for items I "might be interested in, based on my browsing", but the funny thing was, I didn't search for anything related to these suggested items! Instead, they were related to items in the other tabs I had open. Scary, underhanded stuff, if you ask me! I always knew not to have banking/financial sites open while surfing, but the tabs I had open were from sites where I was getting research info for my report, so no red flags went up when I went to the site to place my order.
    So I guess the question I need answered is...is cookie info accessible only between tabs in the same browser window OR is it even accessible from window to window? Did I make sense yet? I sure hope so, because this incident has me absolutely flapping around like a fish that's just been pulled out of the water & is just left on the deck! This obvious assault on my privacy has hit me like a punch in the stomach, because I thought this site was one I could trust...especially since I had "Do Not Track", "Google Analytics Opt-out" & "Ghostery" enabled!
    I just don't know how to deal with this, but obviously, I need to know the rules so this NEVER happens again. Luckily, there wasn't any finance-related breach, but my sense of trust has taken a BIG blow.
    If this made sense to anyone, please advise me on the rules of 'cookie abuse' so I don't EVER let this happen again!
    Also, is cookie info able to be shared between browsers, e.g. use Firefox for more personal/sensitive browsing & Opera for research activity?
    Any & all advice is desperately needed & gratefully accepted! I sincerely hope this doesn't happen to anyone else because it really takes the wind out of your trust bubble. I've never been as surprised & disappointed at a company as I am about this. So sad.
    Oh well, learn something new every day...too bad I learned not to trust. :(
    Thanks in advance for your help.
    Nuts4Mutts :(
    P.S. If you need anything clarified, just ask

    Cookies are stored in a cookie jar and thus are shared among all open tabs and windows.
    Only all Private Browsing mode tabs/windows use a separate cookie jar that is used for all PB mode tabs.
    Note that session restore stores cookies of open tabs in the sessionstore.js file as part of stored session data.
    * http://kb.mozillazine.org/browser.sessionstore.privacy_level

Maybe you are looking for

  • Cannot send webmailwod from iCloud on laptop (Windows)ndows)

    For 9 months I am using my laptop running on Windows (no mailprogram) for receiving and sending mails. All in a sudden message cannot send this mail at the moment. On my Iphone I still can send mails. I checked my browser (firefox), my virusscan AVAS

  • Materialized view is empty after 5 minutes

    After successful usage in our dev environment, I went to migrate a snapshot to QA only to find that after about 5 minutes, it was empty. Here are all the facts/symptoms I could think of, I was wondering if anyone could shed some light - I'm stumped.

  • ERROR ITMS-9000 "File given does not match type JPEG....

    I'm trying to upload our iBook. I first did an export outside of publish, then did publish and reloaded everything under the .itmsp file publish created. About 10 minutes into the upload, I received a message that read: 1 Apple's web service operatio

  • Bad connectivity with T510 minidock

    I've actually been using the dock for quite awhile now; normally it works great, and I have my external monitor attached (1920 x 1080 @ 60 Hz, 2 ms response) and it all works great. There's just one problem though -- my USB connectivity seems to be p

  • Pro*C Link Errors when Building with VC++6

    After a successful precompile with the Oracle precompiler for Pro*C, and a successful compile using Visual C++ 6.0, I could not build the executable, and got the following error: Linking... b110a_1.obj: error LNK2002: unresolved external symbol _sqlc