You see, all my application defined classes are declared in the 'main' clas

hi there,
class MainClass
class other1;
class other2;
public void main(...)
other1 needs other2, other2 needs other3 and so on..,
so you see, for instance i'm inside other2's function, from within, i need to use other1
ie,
class other1
public void afunction()
// needs other2
so what do i do? should i just create a paramter for other1 that accepts the mainclass so i could access the classes?
okey if you can't help there maybe you can help me here, another problem
i 'need' to extend from jtextpane(due to drag and drop), but i want to remove all the access on jtextpane's functions coz i'll be the one to provide the functions, how? in c++, we can do private inheritance can it be done here?

but i want to remove all the access on jtextpane's functions coz i'll be the one to
provide the functions, how? in c++, we can do private inheritance can it be done
here?Do not use inheritance, use another pattern like delegation.

Similar Messages

  • HT204053 i just brought new i phone 5 yesterday and now i can see all paid applications and i dont use or have credit card also now how i can buy applications which are important for me? can i buy them online? or use debit card

    i just brought new i phone 5 yesterday and now i can see all paid applications and i dont use or have credit card also now how i can buy applications which are important for me? can i buy them online? or use debit card and trust me all my friends are regretting buying phone because of this problem.Kindly help.Cant it can be deducted from our mobile charges?i would be much easier then

    You can buy apps using iTunes Gift cards without needing to register your debit card.
    http://store.apple.com/us/personalize/itunes

  • By default, on a mac keyboard F3 lets you see all the open apps and the such. However, I changed it so that I use those keys for keyboard shortcuts; But i'd like the normal F3 key to still work without me having to press FN.

    By default, on a mac keyboard F3 lets you see all the open apps and the such. However, I changed it so that I use those keys for keyboard shortcuts; But i'd like the normal F3 key to still work without me having to press FN.

    rajlego,
    in the Keyboard pane of System Preferences, select the Shortcuts tab, and then select Mission Control on the left-hand side. On the right-hand side, make sure that the Mission Control checkbox is checked, double-click on its current key combination (by default “^↑”) so that the key combination is highlighted, and then press the F3 button — that will set its shortcut to be F3. You can now press F3 to bring up Mission Control without needing to also press the Fn button.

  • A error message pops up when I try to click top singles "see all" saying "Your request could not be completed the item you've requested is not currently available in the US store" when a few minutes ago it allowed me to do so.

    A error message pops up when I try to click top singles "see all" saying "Your request could not be completed the item you've requested is not currently available in the US store" when a few minutes ago it allowed me to do so.

    When I open the store in general (from my PC - Windows Vista), I get a message saying "Your request could not be completed. The item you've requested is not currently available in the Canadian Store."
    On my iPad, Apps opens, but I can't browse new apps listings, but not their details.
    Help?

  • I have just synced my iphone to my computer and all of my contacts went onto the computer and off my phone !! i have a mac .when i sync contacts i click on all contacts and only seven are going onto the phone !! can someone please give me an awnser

    i have just synced my iphone to my computer and all of my contacts went onto the computer and off my phone !! i have a mac .when i sync contacts i click on all contacts and only seven are going onto the phone !! can someone please give me an awnser

    When you connect the iPhone to sync with the new computer,  a number of things will happen. If the new computer/iTunes does not contain any music, then yes, you will receive a prompt saying this iPhone is synced to another library, and if you continue, you will lose your music. However, you risk losing a number of other things, such as apps, contacts and calendar data. When you ask about photos, any photos that you have on the iPhone that were synced from the previous computer would also be lost. You need to save the photo folder from the old laptop and transfer that to the new desktop. You also need to sync the contacts and calendar to the same supported application that you were using in the past, such as Outlook, unless you are using an outside web-based sync, such as Google. Also, when you first connect the iPhone, it will make a backup, or at least make sure that it does before you attempt to sync, or you will not have a backup of some of the other things, such as mail settings, SMS, and the contents of the Camera Roll. I would import the photos from the camera roll to the new computer before trying to do anything else in iTunes.

  • I have a rather old iMac 20" (mid 2007) and I want to upgrade the Hard drive. How do I change it? How do I transfer all my applications? May I just copy the old hd into the new one? Thanks.

    I have a rather old iMac 20" (mid 2007) and I want to upgrade the Hard drive. How do I change it? How do I transfer all my applications? May I just copy the old hd into the new one? Thanks.

    There are many online tutorials on how to change out the HD on a mid 2007 iMac. One of the originals is from 2007 and is Upgrade your iMac 20" or iMac 24" aluminum (mid 2007) to 1TB Hard Drive and 4 GB RAM - DIY Guide. As far as migrating your system Apple helps out with that in Setup Assistant which automatically starts when you turn on a new Mac for the first time. After you have installed the new HD you will have to format the new HD to Mac OS Extended (Journaled) and then you will have to install OS X. The first time you turn it on Setup Assistant will start. Follow the directions and you will be fine. In order to restore your information you will need to backup what is on the current internal HD first. I'd recommend using Time Machine (Assuming you are using Leopard or later) AND also creating a bootable clone using either SuperDuper or Carbon Copy Cloner.
    Please complete your profile so at the very least we know what version of OS X your machine has installed.

  • All my Garage Band songs are gone in the app after I uploaded to iCloud.

    All my Garage Band songs are gone in the app after I uploaded to iCloud. Where can I retrieve the songs? iCloud doesn't show any Garage Band folder backup. Help please!!!

    Is your GarageBand version up to date? If not, upgrade to the latest version. also, you coud try to reset GarageBand to the factory settings. That brought my iCloud projects back.
    Open the "Settings" app on your iPad and scroll down to the applications. Open the GarageBand settings and set "Reset GarageBand" to on.
    BTW: If there are network problems it sometimes may take a very long time, before the song is downloaded from the cloud again. That is why I never upload the original to iCloud - I duplicate the song and share only a copy to iCloud. Once I am sure the upload has been successful and the cloud version is working I delete the original.
    Regards
    Léonie

  • Importing from an iPhoto library only half appear in the application but half are left in the library,how to move on?

    when I import from an upgraded iPhoto library half the photos appear in the application but half are left in the library. How do I get my iPhoto to show all the photos?

    Thank you this. It is the version that came with Yesomite which asked me to upgrade the file from an earlier version of iPhoto 6. This  did and it it rebuilt the Library. when I came look at the photo on the latest iPhoto only half go them appeared. I was opening the library that comes from the choice when you hold down command and option keys at the applecation start up. The other photographs were in the updated library but did not appear on the screen in the application window. They are present in the library but not showing in the application. IS that I have not given the time for them to load? This seem unlikely however. Thanks again

  • I am unable to sync my iPad with my new MacBook Air without losing all photos even though both are linked to the same iTunes account

    I am unable to sync my iPad with my new MacBook Air without losing all photos even though both are linked to the same iTunes account

    Transferring photos from your computer has nothing to do with your iTunes account/Apple ID.
    Photos can be transferred from a single computer only. When transferring photos from another, all photos on the iPad that were transferred from a different computer will be erased from the iPad first - even if the photos were transferred from the old or different computer to the new computer being used for syncing.
    When transferring photos from your computer, what is named the iPod Photo Cache is created on your computer for the photos that are transferred and why you see new photos being transferres are optimized before the actual transfer process. The iPod Photo Cache for these photos on the computer the photos were transferred from is not available on your new computer.
    Since all photos on your iPad that were transferred from the old or different computer should remain on that computer, transfer the photos from that computer to your new computer. These photos on your iPad will be erased with the first sync but will be re-transferred along with a new iPod Photo Cache for these photos being created on your new computer.

  • How do you "pause" an open application, like Mac automatically does when the memory is full?

    How do you "pause" an open application, like Mac automatically does when the memory is full?
    I would like to do so proactively when I am not using a certain program but need to keep it open, and I want to free up computer resources.
    In other words, I want to keep a given program open, but stop it from "thinking".

    There is an application that I can only open a set number of times before it expires.  Every time the program closes, you get one less use out of it.  I want to use it as long as possible, so I thought I would just keep it open all the time.  However, it consistently turns on the fan on the computer, so I imagine it uses a lot of resources.  I got the idea after the Force Quit program "paused" it once after getting overloaded with all the apps I had open.  It stopped the fan, and I was able to open it and run it again later with no problems.  The tricky thing with trying to intentionally overload the system is that it's a hit or miss on which open program the OS will pause (to my knowledge).

  • I recently removed an outlook account and now all of my calendar events are missing. The majority of them were added from my iphone 4s. How do I retrieve the events? Backing up with iCloud did not help, as I assumed it would.

    I recently removed an outlook account and now all of my calendar events are missing. The majority of them were added from my iphone 4s. How do I retrieve the events? Backing up with iCloud did not help, as I assumed it would.

    Outlook is a mail client for PC's (and Macs). It is not a type of account. Do you mean an "Exchange Account"?
    If so, then re-add it. The calendar events live on the Exchange Server. The only way to get them back is to re-add the account to the phone. The contents of Exchange and IMAP accounts are not part of the 'backup' as they already exist elsewhere.

  • Which classes are inherent in the Java language?

    For some reason I just thought of the question this past 2AM.
    What classes are significant to the Java compiler? The list I thought of was:
    Object -- implements wait() and synchronized
    String -- all those convenience idioms we couldn't live without
    StringBuilder -- for String operators like "a" + var
    Integer, Long, Short, Char -- also for String operators like int i; String x = "abc" + i;
    Throwable -- needed for catch clause
    RuntimeException -- needed for implicit throw
    How about the following? Does javac need to know about these? Or are they all handled by the runtime base classes?
    Class
    Constructor
    Thread

    AlanObject wrote:
    jverd wrote:
    ErrorI've never run into this class before, but wouldn't the JVM and not the compiler be dealing with this?> I don't think it has to know about StringBuilder or StringBuffer, as the JLS does not require their use for string concatenation with +. It's just that most implementations do it that way.Good point.
    I don't doubt that in the creation of Java there were long discussions about this. They could have done away with the String-awareness of the language by forcing the use of direct methods but the usability issue won the day.
    Also, are there now classes implied in the use of the for-each statement (Collection?) and in enums (Enumeration?)That would be Iterable, a shiny new abstraction. And, by extension, Iterator. Both them and enums, though, are tricks of the compiler, syntactic sugar. There's no new bytecode for those mechanisms (as yet)

  • I'm trying to install an illustrator trial,  its installing very slowly, and seems to have stopped at 17%, this is the second time I've tried.  I'm using a PC, all other applications closed, I've tried restarting the computer also.  Any suggestions?

    I'm trying to install an illustrator trial,  its installing very slowly, and seems to have stopped at 17%, this is the second time I've tried.  I'm using a PC, all other applications closed, I've tried restarting the computer also.  Any suggestions?

    Nobody can tell you anything without proper system info or other technical details.
    Mylenium

  • HT201272 My hard drive had some issues and all of my music videos are gone.  The itunes store is charging to download them.  How do I get them re-downloaded?

    My hard drive had some issues and all of my music videos are gone.  The itunes store is charging to download them.  How do I get them re-downloaded?

    From your OLD computer...
    Copy your ENTIRE iTunes FOLDER to an External Drive... and then from the External Drive to your New Computer..
    Full Details Here  >  http://support.apple.com/kb/HT1751
    Also see this migrate iTunes library post by turingtest2

  • Although all photos in my libraries are rotated to the correct orientation, random pictures still show up in the wrong position when viewed on Apple TV. Any suggestions?

    Although all photos in my libraries are rotated to the correct orientation, random pictures still show up in the wrong position when viewed on Apple TV.
    Any suggestions?

    silvergc
    Thanks for your comments
    Several of our iPhone users in the UK reported the problem this morning, and as the Apple fan in the office I've got the job of resolving the issue
    The original Excel was an old .xls file, but I have saved it as a .xlsx and the problem still appears
    I haven't spoken with our developer yet, but I assume he has created the Excel file using some programming tools rather that directly using Excel
    In the meantime I have created a simply spreadsheet with 8 cells contain values
    In the first 4 cells, I have formatted them using Currency, and have used the currencies USD, DEM, GBP and CHF
    In the remaining cells I have formatted them using the Accounting option, using the same currencies
    When I review the spreadsheet on the iPhone (or iPad), the first 4 remain the same yet the last four all show the £ symbol
    I have now changed the Region Format of the iPhone to United States, and when viewing on the iPhone the bottom 4 values are now all showing the $ sign!
    If I had created the spreadsheet I would have put the Currency code in a seperate cell and purely used a numeric format for the number, and there would be no issue.  That might be the only solution
    Yes, the Director has the full MS Excel app on his Windows 8 device, but I can't expect all of our clients to go and do the same, in business many of them will have the iPhone
    We may have to change the way we produce the report because of Apple's failings here, and it's not the first time that we have had to change something because Apple devices can't display them properly
    In business, submitting a potential job contract only for the recipient to get the wrong idea of the costs is a major concern

Maybe you are looking for

  • How can i  create and access resource file(with .res ext) in j2me

    hi, i am developing an mobile international application using jsr-238 an optional api to implement the idea of internationalizationand localization. please tell me how can i create .res files in my application to store strings of different languages.

  • Cant able to get the output while using session scope

    Hi I am using jdeveloper 11.1.1.5 As i posted in the previous post i had made some changes still i am not getting proper output These are steps that i had followed for developing login page 1.I had created a TaskFlow in adfc-config.xml such that if t

  • Download report into a flat file format

    Hi Friends, I would like to know your thoughts on what is the best practice most of you using to download a report into a flat file(NOT csv). In my application business users want a report to be downloaded into their local desktop (just like a .csv)

  • How to clear session in JSP?

    I searched yahoo, and found that it seemed not easy to force invalid the session using jsp, compared to php just three lines: session_start(); session_unset(); session_destroy(); How to acheive this using JSP? Must I follow these (quite complex) step

  • An unknown error has occurred. Apple ID

    This has been asked a few times but no solution has helped. When I go to login to 'Manage my account' for my Apple ID to change the associated email address, I get a yellow triangle, with 'An unknown error has occurred' underneath. Then the manage ac