Why Can't we have JCanvas for developing Custom LightWeight Components?

Well!
I am Sandeep - [email protected]
I am developing a application for showing images
and Every time I read a new Image ,
I have to resize the Window 'MANUALLY'
so that it appears .
I am showing it on JPanel which is in JScrollPane
I have tried all invalidate - validate() and repaint()
on JScrollPane and JPanel also .
I tried shuffling size of main JFrame also but failed.
I have resize the JFrame manually to make Inage
Appear.
So I created new Object of 'myclass extends JPanel'
and put it in JScrollPane as setViewportView(...)
well I dont like to create new object of my
JPanel-subclass.
Can u help me.
Also I tried to use Canvas but as my application
is in SWING , it overlaps so i want some thing like
JCanvas ?
Do we Have It?

if you're calling the methods on Toolkit to load the image, pass in the component as the ImageObserver. This way when the image is finished loading, it will repaint itself.

Similar Messages

  • HT1338 Why can't I install Leopard for PowerPC on my old Mac Mini?

    Why can't I install Leopard for PowerPC on my old Mac Mini? The massage "This can not be installed on this computer" appears.

    My thoughts are that your difficulties could be one of these:
    your non-retail DVD may only work on a very limited range of Mac minis
    the installer may not like your new RAM
    the installer may not like the language change especially if the disk has not been erased first
    I have seen a little evidence for 3 in the code of other Leopard install DVDs - they appear to have less stringent language checks for erased volumes. Whilst I have never modified model specific installers I have modified retail installers to ignore speed and RAM checks.
    My advice:
    back up your whole mini hard disk to an external disk - see notes
    erase the hard disk and partition into 2 volumes with Leopard install DVD
    try to install Leopard on one volume
    put original OS on the other volume
    Notes:
    Carbon Copy Cloner can be used to backup the whole hard disk
    ensure the mini can be booted from the external disk before you erase the internal disk

  • Why can't we have a real 'finalise'

    Hi :)
    As we know, all advice about the 'finalise' method is to never
    use it, don't override it, pretend it doesn't exist, and if you ever
    actually do write code in it, make sure it doesn't throw an exception,
    and make sure (can't remember if this is just a 'myth') that it
    executes in a very small time period.
    Now, i don't have a problem with the requirement for this implementation,
    but why can't we have a 'finalise' method that we can implement code
    in.
    Personally, I would love to have such a method where I can close my
    resources, even do other things to conceptually 'end' my objects life.
    Consider how ridiculous it would be if an OO language said: "yes,
    there is a constructor, but don't write code in it ..., oh, you wan't to
    'initialise' your object you say? well, create a pattern or interface or
    whatever, implement an 'init' method, and always call that'. Anyone
    who had a programming language tell him that would drop it for
    a more sensible one.
    So come on ... we have a method (even as many as we feel like, assuming
    signatures) to 'establish' our object, why are we disabled and disallowed the
    option of having one to finalise it (even; not sure of the appropriateness: ones
    matching the constructor signatures).
    who's with me? :) !

    Where is your problem ?
    Use a finally clause...Hence the fragileness. Out of the population of
    developers, what percentage do you suppose remember to
    do that? It would be MUCH better for the VM to take
    care of it, destructing/finalizing objects either as
    soon as they are no longer strongly reachable (hard to
    implement), or at least at SOME point before the app
    dies (the GC COULD have been designed to GUARANTEE
    running before app termination)What I mean was that you can do something (clean up used connections, streams etc.) but let the GC do the rest. By the way it isn't guaranteed that the GC will run a full garbage collection before you close.

  • Why can't I use iDisk for a back-up disk for Time Capsule?

    G'Day All,
    I am new to apple and mostly am loving it! Being new to this product has me asking some basic questions, like ... why can't I use iDisk for a back-up disk for Time Capsule?
    Here I have something like 20 gb disk space available, but it seems I need to buy an external hard drive (or an airport) in order to use, what I believe is one of apples greatest inventions, the Time Machine...
    Can anyone correct my flawed understanding or, better yet, teach me how to do it properly?
    Cheers
    Gabriel

    Gabr1el wrote:
    Thank you Pondini.
    Speed makes sense, but I thought I had plenty of size available ... never mind! Looking over some of the other posts, it looks as though I'd be better off with an external Hard drive than the Apple Time Capsule (if I want more than 12-18months service).
    That was true of some of the ones made a couple of years ago (many of which Apple replaced way beyond the warranty period, and even some beyond the 3-year AppleCare period). Presumably Apple has fixed the power supply problem in the newer units, so they'll last longer.
    If you don't have AppleCare for your Mac, I'd strongly suggest buying it. If you do, and buy a TimeCapsule, Airport, or other accessory within 2 years, it's covered, too.
    But unless you need a wireless router, yes, paying for one in a Time Capsule doesn't make sense. A good external HD is a much better buy.
    thank you for the links - I am still getting used to the way Apples work ...
    If you haven't found these yet, you may find some handy tips here: http://www.apple.com/support/switch101/
    here: http://www.apple.com/support/mac101/
    and some of the other videos listed on the Time Machine Tutorial page.

  • Just to version 7.Like all updates,ad-ons get disabled.The ad-ons that was disabled,where I am not able to open my emails.Why can't FireFox have updates without disabling ad-ons we need to work with?

    Just to version 7.Like all updates,ad-ons get disabled.The ad-ons that was disabled,where I am not able to open my emails.Why can't FireFox have updates without disabling ad-ons we need to work with?

    ''guigs2 [[#answer-672422|said]]''
    <blockquote>
    NoScript stops cookies, please disable this addon/extension as well as make sure that the language en-us is installed.
    # 1) Open up the Firefox Preferences tab. You can do this by typing about:preferences in the URL bar.
    # 2) Click "Content"
    # 3) Next to "Languages", click "Choose"
    # 4) Select "English/United States [en-us]", click "Add"
    # 5) re-open "about:accounts"
    # 6) Click "Get Started"
    </blockquote>
    Thank you for replying. Unfortunately, I already did all of these things. As you can see from the below screenshot, the language is already set. Also, this screenshot was taken in Safe Mode, so NoScript is not enabled. About:accounts still says I need to enable cookies for some reason. So, this solution didn't work....

  • HT1926 why can't i sign in for itunes and buy songs. it says error 0000000xmething am i missing something and what is an extender player i am missing that

    why can't i sign in for itunes, it says the itunes store is unavaible. but it has been for a whole month now, why can't i buy songs, it lets me listen to the radio only but not buy or open my account, it says error 00000000x something, and what am i missingto listen and download and to buy itunes

    Hi Bill!
    If the decrypt went without any interruptions or anything that looked like an error then your computer is probably OK. The fact that none of your accounts can log in leads me to believe you may some corruption somehwere else.
    Find your software installation CD or DVD that came with your Mac or that you purchased in a store and insert it into the drive. You can boot to it by holding down the "C" key at startup.
    After you pass the initial screen for language you'll see the software installation page. Ignore this. Instead look under the menus for Disk Utility. Run Repair Permissions and Repair Disk. Restart and try to log in again.
    If that doesn't work then restart from the disk again and look for the menu option to reset an administrator password. If you can get into just one admin account then you should be able to reset passwords for any others.
    If resetting an admin password doesn't work then I suggest you look into using a third party tool such as DiskWarrior from Alsoft <http://www.alsoft.com>. It is an excellent tool for repairing disk problems. If you have Apple Care then you may have also receieved a CD for TechTool. You can run that as well.
    Hope this helps!
    bill

  • Why can´t i have siri on my ipad 2

    why can´t i have siri on my ipad 2
    i think it have enought power and it has able to use a mobile 3g network connection.

    No, Siri support is only for iPad 3, iPhone 4S, iPhone 5 and iPod touch 5th generation.

  • Why can't we have superdrive and retina display and HDMI in one macbook pro?

    Its good to have a lighter macbook pro for those who don't need the superdrive....BUT, What about those (like myself) who desperately want a superdrive in their macbook pro and also the retina display!!  And, Why can't we have a regular HDMI in macbook pro with a superdrive....this is so frustrating!  Whats wrong with apple!

    I might actually buy a windows laptop.  So sad.
    No need, as long as Apple continues to offer a notebook line-up that includes built-in optical drives, to buy a Windows machine... yet.
    As I said, the only thing that I use my SuperDrive for now is backups of all those digital software deliveries, documents, etc. If I finally break down and buy an external Blu-ray drive, I won't use the SuperDrive at all. But right now I have almost 12 years of back-ups on DVD, both single and dual layer - so, for now, I need my optical drive.
    I'm hoping that - one day - Apple will sell MacBook Pros with Blu-ray drives. Hey, I can wish, right?
    Clinton

  • Why can I not have the MAC app store application with my software update?

    Why can I not have the MAC app store application with my software update?

    You need to be running v10.6 Snow Leopard.
    http://www.apple.com/mac/app-store/
    You can upgrade to Snow Leopard for $29.00 if your Mac meets the minimum requirements.
    http://www.apple.com/macosx/specs.html
    http://store.apple.com/us/product/MC573Z/A?mco=MTY3ODQ5OTY

  • Why can´t i have more than one initiator task on my bpm process

    Hi All.
    I am working with BPM 11g and would like to know:
    Why can´t i have more than one initiator task on my bpm process
    In this case, i will have two separeted process where each has its initiator task?
    Regards,
    Diovani

    Hi Diovani
    Two different processes can have different task initiators...task initiator means creation of a process instance which can happen only once

  • Why can't I download trial for Acrobat Pro on my Mac?

    Why can't I download trial for Acrobat Pro on my Mac?  I get an error message.  I click the download:  "Install Adobe Download Assistant", then click on it, see Adobe AIR application instaler, then get "Sorry, and error has occurred.  This application cannot be installed because this installer has been mis-configured. Please contact the application author for assistance."   If I knew who the application author was, I'd contact him!  Thanks, Pete

    Hey PetaPete,
    There are some known issues when downloading Adobe Download Assistant which you can find at:
    Troubleshoot Adobe Download Assistant
    So, you might alternatively need to try downloading Acrobat from the link given below:
    http://prodesigntools.com/adobe-acrobat-xi-pro-standard-reader-direct-download-links.html
    Note:
    1) You need to stay on the Adobe trial page for the respective product that you're downloading. You should be signed in.
    2) Copy/ Paste trial link for the files that you're downloading from Prodesigntools on to the address bar of Adobe trial page and hit enter.
    Regards,
    Anubha

  • What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?

    Hi All,
    I am new to TestStand. Still in the process of learning it.
    What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?
    Thanks in advance,
    LaVIEWan
    Solved!
    Go to Solution.

    Hi,
    Using the Parameters is the correct method to pass data into and out of a sub sequence. You assign your data to be passed into or out of a Sequence when you are in the Edit Sequence Call dialog and in the Sequence Parameter list.
    Regards
    Ray Farmer

  • My Order Number 2510885387 and i have ordered for developer account but when i am checking the status it is still saying no order done in last 30 days

    my Order Number 2510885387 and i have ordered for developer account but when i am checking the status it is still saying no order done in last 30 days

    There's a Contact Us button at the bottom of this article    >  https://developer.apple.com/support/ios/purchase-and-activation.php

  • Why don't we have _all for receivables tables?

    Hi All,
    Greetings.
    In the Recent Interview that I have attended, I was asked a question as "Why don't we have _all for receivables tables such as rcv_shipment_headers,rcv_shipment_lines so as we have for the other tables such as ap_invoices_all, ap_invoice_lines_all and so on.."
    what is the actual reason for this?
    Please help answer this question.
    Regards,
    Bhaskar.

    Hi AsifMuhammad,
    Thanks Very Much for your time and your valuable reply.
    I found the answer for my question.
    Thanks and Regards,
    Bhaskar.

  • Why can't I see reviews for app updates on iPad 3rd gen since iOS 7 update?

    Why can't I see reviews for app updates on iPad 3rd gen since iOS 7 update?

    AAfter an hour with Apple chat, I figured out what to do on my own.  When the iPhone and iPad go to autolock, press home key and do not open- streaming will be on the screen and I turned it back on.  No more stops.

Maybe you are looking for

  • F150 : Dunning letter print

    Hi, I customized Form for a Dunning letter (level 1) in Tcode FBMP, but when I tried to print a dunning letter I get this message : 'Form ZF150_DUNN_1 does not exist' Is there any other customizing point must I do ? Please advise Regards.

  • Can't receive mail and lost mail

    Just went to mail and found existing mail  had disappeared. Not receiving new mail. Where do i find it? Receiving on iphone & ipad. The stored mail & received mail on iphone & ipad. Just got a problem with the imac.

  • I updated Mavericks yesterday. Now my MBP won't load.

    It shutdown to install the update.  When it came back up, it was at the grey apple logo, but there was a progress bar under it.  I assumed this was part of the installation as I had never seen it before.  Well, the progress bar finished, but then the

  • Thumbnails in Elements 10 not linking to photos on correct Hard Drive

    I use two separate internal HD's.  Primary HD has a C and D partition.  Secondary HD has a E and F portition.  The secondary HD is meant as a internal backup for programs (E) and for songs, photos, and critical files (F).  On the primary HD, under th

  • Internal table in method of class (BADI)

    Hello people !! I need to use an internal table into method of class. I don´t know very well how to use it. I know that it hasn´t a header; but I don´t know how to defined and use it. I need to use in a method of badi.- I will be grateful by the help