How can I make a member of one class accessible from another class?

I thought by making a data member protected it was available to all members of the package, but the compiler is giving me an error. If I put the class name dot the data object it thinks it is a function and gives an error.

I can't post actual code or I'll get in trouble.
I can't create an instance of A because the class
needing to call the structure is a Thread and there
will be multiple instances of it.
I need one solid structure and it can't be static
because it has to be ablet o change.So you can't use a static and you can't use an instance. So how exactly do you ever access A?
BTW you are describing the impossible so you need to take a deep breath and give an explanation that makes even a modicum of sense. Hint: what you have described thus far is nonsensical enough that nobody is going to want to steal your precious code trust me.

Similar Messages

  • How can I to control any element of my GUI from another class?

    How can I to control any element of my GUI from another class?

    For that, you need the external class to have the reference to your element.. If your idea is to change basic properties like width, height etc.. then you can have the constructor of the external class to take the object of the parent of your class as the parameter and modify ..
    However, if the properties to be altered/accessed are custom to your element, then you will have to have the class accept an object of your class as the parameter. No other option..
    What exactly is your requirement?

  • How can I make two Canvas in one Window ?

    I want in the main window ( that is only window in the module ) press button to appear another canvas.
    but that I can't make it , I just made two window until the another window appear.
    that's all
    I tried with :-
    show_view('canvas_name');
    but didn't work with me Sad
    the another canvas made it stacked Canvas .... but also didn't work Sad
    so please , How can I make two Canvas in one Window only ?
    and thanks in advance

    this code work with me :-
    show_view('canvas name');
    go_block(block_name');
    execute_query;
    for HIDE button u have to write...
    hide_view('canvas_name');
    but
    that not exactly what I want ...... I want the stacked canvas appear like second window , and could control on it like window .... it could be possible ????

  • HT202060 How can I make Activity Monitor show one graph instead of four for MacBook Air?

    How can I make Activity Monitor show one graph instead of four for MacBook Air?

    Learn about OS X: Activity Monitor shows one CPU Usage graph on systems with more than four cores
    Copied and pasted from top of the page.

  • How can I make my phone number active when viewing from a mobile device. My phone number is in my header in CSS

    How can I make my phone number active when viewing from a mobile device. My phone number is in my header in CSS

    See this support document http://support.apple.com/kb/HT5661

  • I want to know how can I make my playlist in my iPhone be from oldest to newest?

    I want to know how can I make my playlist in my iPhone be from oldest to newest?

    You cannot do that from your phone. You can do that from your computer.

  • How can I make Adobe Acrobat Pro give a warning to another person who is trying to open the same file I currently have open?

    How can I make Adobe Acrobat Pro give a warning to another person who is trying to open the same file I currently have open?

    You can't.

  • How can i make a graph y is unmber pasing from UDP port,x is the time stamp.and in the same time this graph can display several numbers to compare.

    how can i make a graph
    y is number(the blue wire)pasing from UDP port,
    x is the time stamp.
    plus in the same time this graph can display several differenr numbers to compare.

  • How can I make multiple quizzes within one Captivate project?

    Hi guys! Really liking Captivate 5.5, especially the way random question slides can lift questions out of a question pool...very elegant!
    Sadly though, I've come up against a bit of a wall. In my project, I want to have 3 separate quizzes that all use the same question pool; a 10, 30 and 50 question-long quiz. Each one needs to have its own results page.
    It's easy enough to see what I mean by looking at the screenshot below:
    The idea was to have about 105 slides in total, with slides 10 - 20 being the 10 quiz slide, 21 - 51 being the 30 question quiz and 52 - 102 being the 50 question quiz.
    There are three invisible buttons placed over those 10, 30, 50 text boxes. In the picture, the '10 question' button would jump to slide 10, the '30 question' button would jump to slide 21, and the '50 question' button would jump to slide 52, jumping the user to the start of their designated tests.
    Though I can create the 10 random question "block" easy enough, when it comes to adding the 30 question "block" it just adds the new random questions to the existing random questions. I want three separate quizzes, each with their own results screens please. (I don't want to daisy-chain to external projects, because the results of each test need to be used within the homepage.)
    It just adds them on to the existing block!! Argh!!
    Little bit ticked off with Adobe...the reason their products are so incredible is because they put no constraints on the user, and you can use their tools to create things even the developers never dreamed of. Like in Photoshop for example, I bet when the dropshadow fx was created, the developers never realised that it would be used to give a metallic 'stamped' look to text by turning it to white and applying it just inside the text.
    Captivate, though amazing most of the time, has a nasty habit of stomping on my toes. You can't set grade boundaries and have quizzes give out grades A+ to F- for example. You can only have 'pass' and 'fail', thus making it rather pointless for use in schools, contrary to how the program is advertised. Another example would be when I wanted to create a replay button. I thought that a button that jumped to the slide it was on would be a simple, no-BS replay button, but for some reason you can't make a button jump to its current slide. I downloaded a widget that worked in the end, but I wish Adobe would get off my back and let me do what I want!
    Anyway, if you could help me out here it would be grand

    I must say I have a little sympathy for the Captivate developers on this occasion.  As you say, they've created an application that does so much, that when you eventually run into a hard boundary of some kind, the effect is somewhat jarring.  However, every application, no matter how good, has limits.  I'm probably one of the worst offenders when it comes to asking the Adobe Captivate Development Team for enhancements (I think I've logged over 70 enhancement requests for Captivate 6 alone).
    In your case, you want to have three different quizzes in one project file, each with it's own separate Quiz Results page.  Lilybiri's blog explains how to set up your own faux Quiz Results pages using system variables and custom user variables, but you're going to find this to be quite a lot of trouble.  Even if YOU want to consider these as three separate quizzes, as far as Captivate is concerned they're just one big quiz with 50 questions.  So Captivate will calculate it's internal results based on a 50 question quiz, even if your users select the 10 question version.  So achieving a final Pass/Fail result is going to be problematic at best.
    As Lilybiri suggested, your better strategy would be to break this up into separate modules so that you can get your three separate quiz results (all done in standard Captivate) as well as correct results based on the actual number of questions done by the user.
    As far as grades A-F is concerned, there's nothing to stop you from using Advanced Actions and User Variables to calculate the user's score as a grade.  You need a user variable that stores the user's grade (e.g. var_Grade). And you need a fairly complex Conditional Advanced Action (e.g. caa_CalculateGrade) with several clauses each of which goes something like:
    If
    cpQuizInfoPointsscored is lesser or equal to [highest score for a particular grade]
    AND
    greater or equal to [lowest score for a particular grade]
    Actions
    Assign var_Grade with [the appropriate grade for that range of scores]
    Your conditional action will need one of these clauses for each separate grade.  Once your variable has been assigned a grade based on the user's score, you can display it in a text caption somewhere on the quiz results page or on a slide thereafter with suitable commendations/ commiserations.

  • How can I make multiple computers share one iBooks library?

    I have several computers with which I sync my iPad.  I loaded a bunch of PDFs into iBooks onto my iPad from one of them *but* the PDFs do not show up in the iBooks library on the other computers.  If I click on "Sync Books" on one of hte others it asks me if I want to remove all the existing books on the iPad which I most certainly do not.  How can I keep the iBooks library in sync on these multiple computers?

    Books and pdfs aren't synced.  Bookmarks, highlights and collections can be synced across devices. pdfs downloaded onto an iPad can be transferred to a computer when connected using the USB cable.
    iTunes Store: Transfer purchases from your iOS device or iPod to a computer

  • How can I make a homemade video on iDVD transition from one chapter to the next?

    For example, I usually have 4 chapters for my projects.  I coach basketball so each chapter represents a quarter.  When quarter 1 ends, it goes back to the menu...rather then going right into quarter?

    Hi
    Not 100% on Your question - but may be this helps.
    Play all resp. one chapter at a time
    Play All Button
    1. There are NO - Play All - button in any version of iDVD
    2. It can be faked in several ways
    Easiest and most fault proof way is to make a doublet movie containing All and with
    Chapters set to match. It will take up x2 space but is easy to understand and produce.
    Cons: Tried this in iMovie’11 by Exporting out each part as a full Quality QT.mov then Importing back into new events and putting these into a new project (Play All project). Resulting DVD had Audio that was OK (as parts) - BUT the picture was very bad and standing photo were cut of in height. So the Play All movie has to be created from same material and exactly in the same way as the individual parts + then Chapters has to be set to match.
    • It's said that one can put all movies into a Photo/SlideShow and this will also
    give the function of a Play All button - Tested - and ONE HAS TO un-cheque - Scale pictures to TV-Safe area else it will be a black frame all around and a small picture !
    Mike Evangelist1
    You might be able to get close to what you want by using a slideshow in iDVD. (It's not widely known, but you can put videos in a slideshow.) If you set the slide duration to manual, playback will pause after each movie/slide, and you can continue with the 'next' button.
    3. Using another program to do this e.g.. Roxio Toast™ where there is a Play All button option.
    Summary
    a. Making a Play All movie with same care as the individual Part movies - gives a very Good Result
    b. Using Roxio Toast™ - also an usable way to go
    Yours Bengt W

  • How can I make a change on one computer effect other compujters automatically

    If I change a bookmark on one computer, I want that bookmark reflected on all the other computers. It seems as if I have to do the sync on system A to get the change to the server; then I must go on System B, change the sync type to copy from the server and do a sync. This is way too cumbersome. If synch means to have the same data everywhere, why isn't the default to make this happen as one logs into each system? right now if I make a change on one system and do a synch, it will get overwritten when I go to another sysem and synch.

    We use test sites on our remote server. We purchase a cheap $2.99 .info domain and give it a unique domain name. We then make it an addon domain on our remote server.
    When we're building sites we then make a unique subdomain to the addon domain. We upload our files to each unique site's subdomain so we can see and test them live,.then we can contact the client
    and tell them to take a look at their site live, which at the time is a subdomain, etc.and uploaded.
    Once we have the site completed and uploaded to the designated subdomain we then contact the client and ask them to test their site and see if it's ready or do we need to make more changes.
    We use a hosting package for this that cost us less than $30.00 a year with unlimited domains and subdomains. We've got about 30 subdomains on it now and they're not even making the usage wiggle because of taking very few hits.
    Once the site is completed and approved we then delete that particular site's subdomain and upload to the clients remote server.
    We don't test our sites locally, we test all our sites live as we build them using a subdomain to the .info tld domain on our remote server. You can also buy hosting packages for around $12.00 a year to test your sites on.

  • How can I make a dropdown box populate with values from other fields?

    I am trying to create a NCAA bracket where they select teams from a dropdown menu. For example, they choose which teams win in game 1 and 2 through a dropdown box. The winner of games 1 and 2 then play each other, so how can I populate the dropbox with their selections for game 1 and 2?
    Game 1 winner --
         (game 9)        |--- Game 9 winner
    Game 2 winner --
    Game 9 winner needs to populate with their selections from game 1 winner and game 2 winner.

    I would look at using the setItems Acrobat JavaScript method.
    Have you considered using  a Mouse Up action for "Game 1" and "Game 2" to fill "Game 9"

  • Can I edit a project on one Mac remotely from another Mac?

    As far as I know, you can access and control a Mac from another Mac that is not on the same network, say if you are travelling with a MacBook Air and need to access files and applications on your iMac at home.
    I'm wondering if it's possible to work with Final Cut Pro X in this way. So you could access the project on an iMac from a MacBook Air, see the screen of the iMac and enjoy all the power of the iMac for editing and exporting in FCPX while controlling it from your MacBook Air.
    If so, that would be so convenient, whether it be while travelling or even when at home and wanting to make a quick adjustment to something from the MacBook Air resting on your lap.
    Has anyone here ever done this or know if it's possible?
    Thanks!

    There are ways you can access the iMac and the screen and the software but it's not useable as an editing platform. The response time over the Internet is way, way, way to slow. Plus no keyboard shortcuts work. Everything has to be mouse driven.

  • How can I uninstall a previously installed version of Aperature from another owner?

    Hi,
    I purcased my iMac from a previous owner.  His version of Aperature is still on it - registered under his AppleID.  I would like to uninstall it as it is preventing me from using my own version of iPhoto.  How can I do this?  Would it be asvisable to uninstall it and then purchase a new version of Aperature and then convert my iPhoto library to Aperature?  Right now, iPhoto wont launch becuase it wants me to upgrade Aperature, but I don't own a registered copy to my Apple ID, so I can't upgrade it.
    My setup is:
    iMac 27" 12,2
    3.4 GHz Intel Core i7
    32GB 1333 MHz DDR3
    Graphics AMD Radeon HD 6970M 2048MB
    OS X 10.9.2 (13C64)
    Aperature 3.2.4
    iPhoto 9.5.1
    Thank you!

    The previous owner of that machine should have wiped it and install the original OS that shipped with the system leaving the system at the point where the new owner takes over and enters all there own information.
    Before you go much further with this machine you should seriously consider backing up any new stuff you have done and wiping it and starting from scratch. If you keep the system like it is you  will be plagued with problems. Even doing OS updates will prove frustrating.
    Right now the best you can do is to move the Aperture that is on the system into the trash, log into the App Store using your ID and buying Aperture. That should work but to be honest I have never had to do it so can;t say for sure.
    You might want to look at this What to do before selling or giving away your Mac from Apple to read what they recommend.
    good luck
    regards

Maybe you are looking for

  • Migrating MySQL database to Oracle 11g RAC

    Hi, I would like to migrate an entire database from MySQL to my new Oracle 11g RAC. How do I do it?

  • Graphic problem need help A.S.A.P.

    The class below called "IconGen" will not display the graphic it is suppose to when I call it into a main and add it to a JPanel. If someone could tell me why this code doesn't produce a graphics I would be greatly appreciative. import java.awt.*; im

  • Calender goto date?

    How do you select a date to goto from the month view?

  • Join Tool Question

    I just tried the Join tool on a path I created with the Pencil tool and to my surprise, it would not join the path. Shouldn't it have been able to close the path? Have used the Join tool on paths which I created with the Pen tool and never had a prob

  • Clarity Slider disappeared in Camera Raw CS3

    I'm working my way through Scott Kelby's 7-Point book and in lesson 7, I'm directed to adjust the clarity slider in Camera Raw but it's just not there! I see vibrance and saturation but no clarity. Can anyone help me find this baby? thanks so much fo