Three Object didn't know each other :)

Hi can anybody help me in this topic,
I have three OO-Objects, how can I do that they know each other, to execute a method from Frame A in Frame B (and the other way)

i think you problem is that 3 classes know ech other but you can't compile any of them bacouse ech of them needs to have already compiled 2 other classes... right?
Just put all the classes into one file.

Similar Messages

  • How Many Of You Know Each Other?

    I'm a poor lonely programmer who doesn't know any other java programmers to speak to in the "real world". How many other people like me are there out there? Or is there just a big bunch of students out there sat in a University somewhere with nothing better to do than post to the forums all day?

    I'm a poor lonely programmer who doesn't knowany
    other java programmers to speak to in the "real
    world".I don't recall meeting a single professional Java
    programmer IRL other than coworkers.Okay, I confess. My wife and I survived meeting tsith
    at a microbrew over Thanksgiving weekend. It was
    close, but we made it.
    Of course, we got so wrapped up in conversation, I
    failed to ask for his impression of the heady brews
    at Flat Branch....It's true, I met with Yawmark and I have to tell you - the claims of "large tracts of land" in some other thread - a bit of an overstatement.
    The brew was wonderful, I did enjoy my trip from bitter to dark, though the evening drew to a close before I hit the porter. Maybe next time!
    Though a Boddingtons or a Beamish down the road from me would be a nice way to while away a winter's evening.
    (and nasch_, I assure you I am headed your way sometime - just make sure no boulders take out the road I'm on, k?)

  • Illustrator Smart Objects are "Linking" to each other in PS file.

    This strange behavior started after I upgraded to the latest PS CC which includes the "linked" vs "embedded" smart object feature.
    When I edit previously created PS files that contain mulitple linked Illustrator smart objects, an edit to one smart object will update a different smart object within the same file. These are not duplicates of a single smart object layer, they are completely independent smart objects, containing different graphics.
    Has anyone else seen this? Is there anyway to break the link between all Illustrator graphics within a document so this won't continue to happen?

    Here'a link to the original file. http://adobe.ly/1d6uwA1
    This was created with PS CS6. I recently had to do some modifications to it, and that's when I noticed the strange behavior with SO. Of course when I tried to duplicate the weirdness this morning, I was unable to do so. I know for certain though, that on two different occasions I updated one SO layer and the it replaced the contents of a different SO layer.
    I did notice some other oddities while playing with this today. Here's what I did.
    Open the file, and save with a new name to make a copy.
    Edit a couple SO layers with Illustrator
    Close the file and save
    Open the file back in PS and again edit a SO
    This time when I save the SO I get this message "This file has been modified outside of Illustrator. Do you want to continue". I say yes to save it. I only get this message after I have closed the file and reopened it for more edits.
    Another oddity; if I leave a SO open in Illustrator by just saving without closing the file. Then close the Photoshop file linked to that SO. When I open a new Photoshop file and try to open a SO within it, PS thinks the SO that was left open is the one I want to work on. I have to close out the previous SO to get the new one to open correctly.
    I work with a lot of Illustrator SO's in PS. So I will continue to monitor what happens, and try to pay very close attention to what steps I took if and when the weirdly linked SO layers happens again.

  • Order to script creation of objects? Some reference each other.

    I'm writing a script that will add objects to a 10g schema. I have packages containing functions and procedures. The functions and procedures reference some views that also need to be added. The views themselves reference some of the package's functions. Which has to be added first? I think the package first then the views? Or maybe it does not matter?
    At the end of the script can a command be added to compile the various objects that have been added?

    I'm a little late to the party here but.
    To do this type of interdependent compile, the logical ordering would be:
    1. Package specifications (i.e. CREATE PACKAGE)
    2. Create views, since the views are really dependent on the public specification for the packaged functions, not the actual implementation.
    3. Package bodies, since the implementation is dependent on the existence of the views.
    At the end of the process, you will, assuming that everything is syntactically correct, have all valid objects.
    john

  • HT203433 my three devises don't update each other anymore.

    I have a PC, Laptop and IPhone 4s. If I played a song, downloaded music or deleted anything it changed it on the other devices. Now no updating at all.
    I don't think I changed anything. What could I have done, what do I need to do. They all show to be "approved"

    First of all, thankyou for the tips you gave me.
    Not sure what version I'm using but the computer was bought in December 2006 if that helps.
    But I've tried all the tips and uninstalled iTunes, downloaded newer versions of iTunes, used different USB 2.0 ports and it still won't respond. It's driven me mad. I've had to use my old iPod mini and that doesn't have enough room for the songs nevermind there being no video.
    I took the iPod back to the shop today. They'll send it to apple. Apple will repair it and send it back or if they can't repair it they will try to replace it for me, so I'm told.

  • HT4865 So who believes Apple should be a bit more cautionary about the sharing of iMessages and other content when several members of a family share the same iCloud account and unknowing can audit each other's iMessages, Contacts, and god only knows what

    I think Apple should be a bit more cautionary about iCloud and privacy.  My family shares the same iCloud account as we all enjoy the music we collectively purchase on iTunes; we paid Apple for this feature with some kind of grouped account.  We didn't know, however that this joins our devices so that iMessages, contacts, pictures and just about everything else is shared too.  The unprivate default seems to be to share everything between all devices vs. to allow access by exception or by choice (or by password?).  Sure, when my kids get all my texts I can go figure out why and fix it but that is in my mind the antithesis of privacy and could be quite embarrassing for any family.  I guess it is good for stalking the kids or parents though if they don't know about the partyline approach to privacy.  Maybe a tech solution would be to have the iPhone show somehow the extent of its audience to its user.

    No argument from me about the vagaries of using and sharing Apple IDs.  This can lead to unintended consequences, especially in a family situation.
    If you're sharing the same ID for FaceTime, you might want to go to Settings>FaceTime, tap the ID, sign out, then sign in with separate IDs there too.  Otherwise, you'll end up getting each other's FaceTime calls.
    Also, if you need to migrate everyone's devices to separate iCloud accounts to keep your synced data separated, you can do this by saving any photo stream photos you wish to keep to your camera roll (unless already there) by opening your my photo stream album, tapping Select, tapping the photos, tap the share icon (box with upward facing arrow), then tapping Save to Camera Roll.  If you are syncing notes with iCloud, you'll need to open each of your notes and email them to yourself so you can later copy and paste the text into new notes created in your new account.  Then go to Settings>iCloud, tap Delete Account (which only deletes it from this device, not from iCloud), choose Keep on My iDevice and provide the password to turn off Find My iPhone.  Then sign back in with a different Apple ID to create your new account and choose Merge to upload your data.  Once everyone's devices are on separate accounts, you can go to icloud.com and delete each other's data from your accounts.

  • Cannot Align Two Objects On Each Other

    I have done a completely clean install of Creative Cloud CS6 on my mac on Mountain Lion. First time opening Illustrator, and I cannot center two vector objects on each other. Rather, when I click to center them (vertically or horizontally) it actually pushes them further apart! It also appears to be arbitrarily selecting another object on my art board when I select these two (there is no grouping overlap, it makes no sense). I've looked around before, and have 'align to selection' checked, and 'snap to grid/snap to point' unchecked in the 'view' dropdown. Going to try to trash my preferences, but this is literally the first time I've opened it, so I can't see how that would be an issue!
    I use this tool CONSTANTLY in what I do, so this is really troubling. Has anyone had a similar problem and fixed it? Thanks so much!!

    I held down Option+Command+Shift while opening Illustrator (as offered in another thread as a way to trash/reset preferences). I know it did this as I had changed the color scheme to light grey, and it's back to dark grey.
    Opened up original file. Now, I can center things horizontally alright, but vertically jumped the both of them way down the page.
    Created a new file. Could center horizontally, centering vertically did absolutely nothing—no jumping down the page, no doing what it should be doing...nada.

  • Confusion about how object interact and are aware of each other

    I have this java applet
    Two of the classes it contains are the main class with the init method and a UI class that is code for the interface.
    the main class instantiates the UI class anonymously (i think you call it that) i.e it does not put it into a named reference it just creates it by calling new without assigning it to anything.
    When I click on a button from the UI class I want to call a method in the main class...but how so?
    At first I tried to make the function i want to call in the main class static so I could easily call it from the UI class...but then it began to get complex...so i just sent a reference of the main class to the UI class via its constructer.
    Now i want the main class to update a JTable in the UI class, but how? It does not have any reference to the UI class.
    What is really the standard method of operation for this sort of thing when objects have to be calling methods of each other. How do I make them aware of each other.

    the best way to do it is like this:
    public class Main {
      //this is the main class
      private static class MyUIFrame extends JFrame {
        //create the class. It is useable within Main this way
        //static means it doesn't implicitly 'know' about the Main class. You can also
        //remove this and call Main.this to use Main's methods
    }Edited by: tjacobs01 on Apr 11, 2009 2:28 AM

  • Three ComboBoxes Dependent on Each Other - Please Help

    I am trying to figure out how to make the data displayed in three ComboBoxes dependent on each other while not hard-coding business rules in "if" constructs, but instead use an ArrayCollection of invalid combinations.
    After compiling the following code and launching, the "$100.00" item in the Tariff ComboBox will be grayed out and inactive
    because its "valid" field is "false".
    QUESTION: what should be added to this application to support the following use cases of the ComboBoxes:
    1) If the user selects clothes and China in the Product and Source ComboBoxes, the "valid" field for the "$100.00" item in the "tariff" ArrayCollection changes to "true", so the "$100.00" item is black and active. Also, the "valid" field for the "none" item in the "tariff" ArrayCollection changes to "false", so the "none" item is gray and inactive.
    2) If after performing 1) above, the user selects Mexico Source ComboBox, the "valid" field for the "$100.00" item in the "tariff" ArrayCollection changes to "false", so the "$100.00" item is gray and inactive. Also, the "valid" field for the "none" item in the "tariff" ArrayCollection changes to "true", so the "none" item is black and active
    I do not want to hard-code these business rules using if() constructs in ComboBox change handlers. Instead, I want to use the "invalid" ArrayCollection below to enforce whatever invalid combinations are in that AC. This will enable a flexible system.
    I've been wracking my brain on this one so please help.
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      creationComplete="init();">
      <mx:Script>
        <![CDATA[
          import mx.collections.ArrayCollection;
          import mx.events.FlexEvent;
          /* The items in these ComboBoxes will be grayed out and inactive
             if their "valid" field is "false".
             After launching the application, open the "Tariff" ComboBox
             and notice the $100.00 item is grayed out and cannot be selected.
             QUESTION: what should be added to this application to support
                       the following use cases of the ComboBoxes:
             1) If the user selects clothes and China in the Product and
                 Source ComboBoxes, the "valid" field for the "$100.00" item
                 in the "tariff" ArrayCollection changes to "true", so the
                 "$100.00" item is black and active. Also, the "valid" field
                 for the "none" item in the "tariff" ArrayCollection changes
                 to "false", so the "none" item is gray and inactive
             2) If after performing 1) above, the user selects Mexico Source
                 ComboBox, the "valid" field for the "$100.00" item in the
                 "tariff" ArrayCollection changes to "false", so the "$100.00"
                 item is gray and inactive. Also, the "valid" field for the
                 "none" item in the "tariff" ArrayCollection changes to "true",
                 so the "none" item is black and active
             I do not want to hard-code these business rules using if() constructs
             in ComboBox change handlers. Instead, I want to use the "invalid"
             ArrayCollection below to enforce whatever invalid combinations
             are in that AC. This will enable a flexible system.
          [Bindable] private var product:ArrayCollection = new ArrayCollection([
            {label: "cars", valid: true},
            {label: "clothes", valid: true}
          [Bindable] private var source:ArrayCollection = new ArrayCollection([
            {label: "China", valid: true},
            {label: "Mexico", valid: true}
          [Bindable] private var tariff:ArrayCollection = new ArrayCollection([
            {label: "none", valid: true},
            {label: "$100.00", valid: false}
          [Bindable] private var invalid:ArrayCollection = new ArrayCollection([
            ["cars"],["China"],["$100.00"],
            ["clothes"],["China"],["none"],
            ["clothes"],["Mexico"],["$100.00"]
          [Bindable] private var currProduct:Object = new Object();
          [Bindable] private var currSource:Object = new Object();
          [Bindable] private var currTariff:Object = new Object();
          private function init():void{
            systemManager.addEventListener(FlexEvent.VALUE_COMMIT, sysMgrHandler, true);
          private function sysMgrHandler(evt:FlexEvent):void{
            if(evt.target is ComboBox){
              var tgt:ComboBox = evt.target as ComboBox;
              switch(tgt){
                case cbxOne:
                  if(tgt.selectedItem.valid == false){
                    tgt.selectedItem = currProduct;
                  break;
                case cbxTwo:
                  if(tgt.selectedItem.valid == false){
                    tgt.selectedItem = currSource;
                  break;
                case cbxThree:
                  if(tgt.selectedItem.valid == false){
                    tgt.selectedItem = currTariff;
                  break;
        ]]>
      </mx:Script>
      <mx:Label text="Tariff Calculator"/>
      <mx:Canvas width="{hb.width}">
        <mx:Label text="Product:" x="{cbxOne.x}"/>
        <mx:Label text="Source:" x="{cbxTwo.x}"/>
        <mx:Label text="Tariff:" x="{cbxThree.x}"/>
      </mx:Canvas>
      <mx:HBox id="hb">
        <mx:ComboBox id="cbxOne" dataProvider="{product}" open="currProduct=cbxOne.selectedItem;">
          <mx:itemRenderer>
            <mx:Component>
              <mx:Label text="{data.label}" color="{uint(data.valid==true?0x000000:0xCCCCCC)}"/>         
            </mx:Component>
          </mx:itemRenderer>
        </mx:ComboBox>
        <mx:ComboBox id="cbxTwo" dataProvider="{source}" open="currSource=cbxTwo.selectedItem;">
          <mx:itemRenderer>
            <mx:Component>
              <mx:Label text="{data.label}" color="{uint(data.valid==true?0x000000:0xCCCCCC)}"/>         
            </mx:Component>
          </mx:itemRenderer>
        </mx:ComboBox>
        <mx:ComboBox id="cbxThree" dataProvider="{tariff}" open="currTariff=cbxThree.selectedItem;">
          <mx:itemRenderer>
            <mx:Component>
              <mx:Label text="{data.label}" color="{uint(data.valid==true?0x000000:0xCCCCCC)}"/>         
            </mx:Component>
          </mx:itemRenderer>
        </mx:ComboBox>
      </mx:HBox>
    </mx:Application>

    It seems like you may want another layer of indirection here. Not necessarily another class (that's probably needed, but orthogonal), but it seems awkward that your "valid/invalid" flags are sitting there directly in the combobox data provider ACs.The items themselves aren't really valid or invalid: it's whether they are selectable in the comboboxes based on the state of the entire application. Instead of storing plain Objects in those ACs, I'd suggest something like
    class Validator {
      public var selectedSource:String;
      public var selectedProduct:String;
      public var selectedTarriff:String;
      public var invalid:ArrayList
      public function isValid(type:String,item:String):Boolean {
        // loop over invalid to determine whether this particular item is valid, given the
        // currernt combination of selected items
    class ValidatedItem {
      public var name:String;
      public var type:String;
      public var validator:Validator;
      public function get valid():Boolean {
        return validator.isValid(type, name);
    Then fill your combobox dataproviders with ValidatedItems instead of Objects. You'll need to instantiate the Validator once for the app and inject it into each item (a Dependency Injection infrastructure like Mate or SmartyPants can make this easier). You can use a Singleton instead if that's more your thing (I'm trying to de-Singleton my life).
    I think that you'll need to wire some extra binding to Validator since otherwise ValidatedItem won't update the valid property when the selected items on Validator change, but that's straigthforward.
    Is this the sort of approach you were thinking of?
    Maciek Sakrejda
    Truviso, Inc.
    www.truviso.com
    Truviso is hiring: http://www.truviso.com/company-careers.php?i=87

  • Hi, I'd like to set alarms or reminders on my I phone or I pad so that it can update or sync automatically with each other. I don't know if this is possible or how to do it. I hope you can help..

    Hi, I'd like to set alarms or reminders on my I phone or I pad so that it can update or sync automatically with each other. I don't know if this is possible or how to do it. I hope you can help.

    HI, if I did this, then I believe that I cloud would then hold my info which I don't want. Is that the case? The reason is that I'm an old git, therefore used to not giving out info. Would I be right?
    Thank-You so much for taking the time to answer.
    John.

  • I currently use an iPhone, an iPad, and a Mac computer for business.  The three devices have Contacts Managers that sync with each other through both Google and through Mobile Me.  Currently, this has created a mess of duplicate contacts.  Please researc

    I currently use an iPhone, an iPad, and a Mac computer for business.  The three devices have Contacts Managers that sync with each other through both Google and through Mobile Me.  Currently, this has created a mess of duplicate contacts.  Please advise me on the steps necessary for removing these duplicates and establishing a syncing solution that doesn't regenerate the duplicates.  There are several applications available that remove duplicates, but I am not sure which ones work or don't work.  I want information on this, but most importantly I want to understand how to fix this problem permanently.  Also, I read somewhere that Mac's new operating system, Lion, can help deal with duplicates.  I don't have Lion, but I would be willing to get it, if this would fix the problem.

    Had the same problem with 4 devices (two computers, an iPhone and an iPod). The solution is simple: open the Address Book application in your mac, ask it to locate duplicate entries (under one of the top menu items, "edit" I think), and then ask it to consolidate them: it took me all of three seconds after I figured it out: worked like a charm! PS: if you have more than one mac with unconected Address Books, repeating the operation in the second one may be a good idea.
    Message was edited by: mfduran

  • After upgrading to YOSEMITE, I tried to use Airdrop between my iMac and iPhone 6 Plus but they don't recognize each other. It also didn't recognize my iPad. I need help

    After upgrading to YOSEMITE, I tried to use Airdrop between my iMac and iPhone 6 Plus but they don't recognize each other. It also didn't recognize my iPad.
    Please help!

    After upgrading to YOSEMITE, I tried to use Airdrop between my iMac and iPhone 6 Plus but they don't recognize each other. It also didn't recognize my iPad.
    Please help!

  • My iphone 4S is constantly on 3g service instead of 4g ...how do i get it to stay on 4g service?  My other phone is showing 4g service right next to each other so i know i am in a 4g service area.

    My iphone 4S is constantly on 3g service instead of 4g ...how do i get it to stay on 4g service?  My other phone is showing 4g service right next to each other so i know i am in a 4g service area.

    THe 4s is 3G device, it can't get 4g service.

  • Does anyone know how to make songs in your playlist play directly after each other with no break between then, ie no silent period?

    Does anyone know how to make songs in your playlist play directly after each other with no break between then, ie no silent period?

    you cannot.

  • On the top left of my computer screen there are what look like the bottom half of small grey and white squares stacked on top of each other. They form a line about three inches long and I cant seem to get rid of them.  Is my computer dying or being hacked

    On the top left of my computer screen there are what look like the bottom half of small grey and white squares stacked on top of each other. They form a line about three inches horizontally along the top and they cover half of the regualr bar (so half of the apple sign int he corner is covered) and I cant seem to get rid of them.  Is my hardrive crashing or being hacked?

    I have never seen DEVELOP on the menu bar for Safari, hence my query regarding testing. 
    What OS are you using and what version of Safari?
    If you want to check your HDD, Open Disk Utilities>First Aid and run Verify and Repair.
    The only remedy that I can think of that may work is an OS reinstall.
    I seriously doubt that your MBP is being hacked.
    Ciao.

Maybe you are looking for

  • Uploading Standard Networks (tr. CN01) using LSMW

    Dear colleagues! I've recently faced a problem trying to craete LSMW project for uploading Standard Networks to the system. Once the Object 170 (Routing), Method 0002 (Direct input) has been chosen for the Standard Batch/Direct Input in step 1 and ev

  • Adobe Media Encoder CS6 trial...  AMT Subsystem Error

    I downloaded CS6 yesterday and Friday (pretty much all day both days) and now recieve a message that the program that downloaded it must be opened before CS6 will open.  I only understand that Download Assistant was involved.  Please explain as I don

  • Issue opening microsoft powerpoint presentation

    I am having issues opening a powerpoint presentation through microsoft word. The error message I am receiving is "There was an error accessing MacintoshHDusers..." Any suggestions? I am receiving the file from another mac user who I believe is using

  • Unable to Open EM console

    Hello, I try to open OEM using http://tempserver:7777/em But The follwing error arises: 503 Service Unavailable Service is not initialized correctly. Verify that the repository connection information provided is correct. Regards Vikas

  • Firefox crashes at startup

    I have always used Firefox on my W7 laptop, but following the 37.0.1 update Firefox always crashes at startup. I have tried most of the recommended 'fixes' (full antivirus checks, fresh install etc) but not those relating to Safe Mode as the crashes