Who knows why a JPanel is automatically painted twice? Please look at my co

// "Raw Problem": Start this as Application or in Appletviewer
// <applet code= ZaehlePaintAufrufe width=400 height=250>
// </applet>
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
class Zeichnung extends JPanel
private int calls = 0;
public void paintComponent(Graphics g)
super.paintComponent(g);
calls++;
int breite = getWidth();
int hoehe = getHeight();
g.drawString("Width: " + breite + " Height: " + hoehe + " Resize Me!", breite/4, hoehe/2);
g.drawString("Paint-Calls: " + calls, breite/4, hoehe/2+30);
public class ZaehlePaintAufrufe extends JApplet
Zeichnung z = new Zeichnung();
public void init()
Container cp = getContentPane();
cp.add(z);
public static void main(String[] args)
JApplet applet = new ZaehlePaintAufrufe();
JFrame frame = new JFrame("ZaehlePaintAufrufe");
frame.addWindowListener(new WindowAdapter()
{ public void windowClosing(WindowEvent e) {  System.exit(0);  } } );
frame.getContentPane().add(applet);
frame.setSize(400,250);
applet.init();
applet.start();
frame.setVisible(true);

Hello and sorry for that long time passed,
thank you for your answer!
If you are still interested at all:
I found that with 1.4 the "redundant" repainting of the panel's whole contents
takes place only when diagonally shrinking the application- or browser-window.
All other cases are drawn just once.
Frank

Similar Messages

  • I deleted the playlists on my iPhone and when I now try to synchronize with my iTunes account to put the music back, nothing happens and I do not get the music back on my iPhone. Anyone who knows why that could be? Grateful for any suggestions!

    I deleted the playlists on my iPhone and when I now try to synchronize with my iTunes account to put the music back, nothing happens and I do not get the music back on my iPhone. Anyone who knows why that could be? Grateful for any suggestions!

    I know it sounds weird, and that is the reason I posted my question.  Because my case is not like all the ones I've found online and it's confusing.  I added a screen capture of my itunes with my old iphone (the one that houses my playlists) connected to it.
    My playlists "ARE"  in my iphone 4s.  They are still there even though they do not show up when I plug in to itunes in my computer. 
    When connecting my phone to itunes on my macbook, the playlists do not appear anywhere in itunes.  I have found my connected iphone icon, I have clicked on the arrow next to it and it does pull up the standard lists that come with the iphone/itunes:  Music, Movies, TV shows, books.  That's it! below that is "Genius" and below "Geniuns" is "PLAYLISTS"  but the only playlist of mine that shows there is one that I created several years back titled "90's music" and that one I created it on my computer, not my phone.  Under "90's music" there are also other standard playlists that itunes automatically adds.
    Does anyone else have this issue or know how to get around this.  I am starting to think that I am going to have to recreate these lists on my computer

  • TS3297 I want to buy the double coins from the game subway surfers! But they told me to contact the itunes support! I don't know why it's not working.. Please help! iPhone 4ss

    I want to buy the double coins from the game subway surfers! But they told me to contact the itunes support! I don't know why it's not working.. Please help! iPhone 4ss

    These are user-to-user forums, you are not talking to Apple here. You can contact iTunes support via this page and ask them why the message is appearing : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then probably Purchases, Billing & Redemption

  • Hi, Im new to Apple MacBook PRO. I have saved about 50GB files plus applications and message advises that my start up disk is almost full! My MacBook pro has a 500GB hard drive so don't know why this message is coming up. Please help.

    Hi, Im new to Apple MacBook PRO. I have saved about 50GB files plus applications and message advises that my start up disk is almost full! My MacBook pro has a 500GB hard drive so don't know why this message is coming up. Please help.

    MacBook Pro
    https://discussions.apple.com/community/notebooks/macbook_pro 
    https://discussions.apple.com/community/mac_os/mac_os_x_v10.7_lion?view=discussi ons

  • Who knows why photoshop polygonal lasso tool is slow scrolling to the left?

    I have two versions of PS, CS5, and now CS6. The tool I use most often is the Polygonal Lasso Tool. I just got CS6, and discovered an old problem had surfaced, one I had years ago and I had long forgotten about. The photoshop polygonal lasso tool is painfully slow when scrolling to the left of an image enlarged enough to go off screen. Because this feature works fine in PS/SC5, I assumed it wouldn't be a problem in CS6. Unfortunately, the problem does exist in the new CS6. The problem  forced me to reformat the computer, thinking okay, maybe, just maybe something somewhere got corrupted. And yes, it worked for about a half hour after the format; then it reverted back to this simply bad behavior of scrolling painfully slowly ONLY to the left. Even if I hold the Shift Key, which should double the speed, it is just so slow, it is unusable. All the while, it works just fine in PS/CS5. Have you folks experienced this problem? I spoke with a few Adobe support techs, and they don't know what the problem is. In fact, they're clueless about this problem; so I am hoping one you may know of a solution! Thanks!

    Have you tried asking about this on the Photoshop forum? You're more likely to find a solution, or at least common sentiment, from the Photoshop folks over there.

  • IPhoto6 adjust panel different on G3 and G5, who knows why??

    Hi everybody,
    I have iPhoto6 on my G5 and also on my G3, both running Mac OSX 10.4.8.
    The edit adjust panel is different on both machines.
    On the G5 I have full functionality i.e. brightness, contrast, saturation, temp, tint, sharpness and so forth... thats fine.
    However, on the G3 I only get brightness and contrast!
    I thought it might be a preferences choice, so I looked there and found nothing. I went through the help function, nothing there...
    I searched apple discussions, but found no similar complaint.
    Anybody know more about this??
    "About" on the G5 tells me: version 6.0.5 (316)
    On the G3 it is: version 6.0.5. (305)
    Could that be it?

    TRATRA:
    That's because iPhoto 6 requires Image Core capability for the full adjust panel. It's listed in the iLife 06 specs: http://www.apple.com/ilife/systemrequirements.html. A G4 or later is required.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.

  • Who knows why the "repaint()"doesn't work when ....?

    I use a "while(threadgroup.activeCount()!=0){} "to block the sentence below
    from being excecuted before I finish the thread above, however since this "while"
    the repaint() in the thread above doesn't work , but I have evidence that the thread
    is really going on ( I use Sytem.out.print() to prove this)

    I'm not sure I follow. Try providing a snippet of the relevant code, and we'll see if anybody on the forum can figure it out for you.

  • Hi!  I have downloaded a ready-made website and I can't seem to open it.  The "theme" install instructions are talking about a "zip" file which I cannot see.  Would anyone know why I can't open it?  PLEASE HELP!!   Thanks!

    Hi Everybody
    I have downloaded three "ready-made" websites for me and it is supposed to have Wordpress in as well.  I can see the folders in my downloads but I can't open them.  It refers to a "zip" file which I don't see nor a "dmg", only a blue folder.   Can anyone help me to figure out how to get this open and set up on my computer?  I guess you can tell I'm new and very frustrated.  Thank you!

    It's not clear what you mean by 'see the folders in my downloads but I can't open them', although it seems possible that a zip file opened/unzipped to create them.
    Perhaps if you include a screenshot, and/or a link to the site where you got these, and describe exactly what happens when you try to open a folder that won't open.

  • I have a new MBP running 10.7.5 and I do not have idvd, anyone know why or how I can get this please?

    I am a newbie to imovies and the proper procedure on the tutorials I have watched demonstrate that to burn a project to media, in this case a dvd, I need idvd, can somone point me in the right direction please?

    Hello there! I had the same thing with mine. I google'd around a bit and found out that iDVD along with iWeb were discontinued, thus no longer being included even though it was advertised iLife 11' had those apps. but from what i was told iLife 11' on the MacBook Pro 2012s were different.
    I called Applecare and complained and my argument was that it was advertised my Mac had iLife 11' so i should get the FULL iLife 11' so eventually they sent me out a disk with the other 2 apps on it. I suggest you call them and see if they can do the same.
    Hope that helps.

  • Is there ANYONE in BT who knows what they are talk...

    I switched from Virgin to BT joining BT on 02/11/2013, on that day I phoned up and spoke to a representative about keeping my old number. I was told this is no problem and it will automaticaly be done. Few days went by and I had no confirmation, I have now possibly been speaking to 30 different representatives, who all told me a different story, one told me that it is categoricaly in no way possible to keep a Virgin number on BT lines, I spoke to Virgin who is still keeping the number open for BT to port but they have had no communication from BT regarding this, I have spoken to Managers, Supervisors from Scotland to Manila, then finaly the email came we are changing your number to (the number I requested to keep from Virgin) with a follow up email to say "Where all done" Brilliant I thought, I rang my old Virgin Nmber only to find it is not ringing on my BT line, so I checked on MyBT, to find that BT successfully changed my number to a number which I did not request, who knows where they sucked that number from. So back to the rigmaral toing and froing, I think I must have spent at least 60 hours of my time to try and find someone who can help me to date I have not received any calls from a manager who I can discuss this farse! 
    So on 28/11/2013 the engineers came to install, he was digusted when I explained the whole story and told me this should have been done prior to instalation. So more hours spent in trying to get someone who know what they are talking about, emails, chats and calls, but nothing. Then last night finaly someone who was prepared to take some action and get this sorted great I thought now it will be done, BUT NO!!!!! tonight I get a call saying that I can not keep the number because it is at a different exchange, keeping in mind that Brierly Hill who my BT number is with is in Stourbridge and this is where I live and have been for the past 8 years, so I can not keep a number that is in the same house, the person kept telling me that this ca not be given to me at my new address and the more I explained I have not moved house and that Brierly Hill is in Stourbridge my line is an 01384 area code and the number I want is 01384, so I asked him to renumber me to a BT number in the Stourbridge exchange so that my Virgin number can be ported but this was obviously not in his grasp, I just can not believe that Virgin has been more helpful about this and that BT believes themselves to be so big that a simple request and these are the only words "I would like to keep my Virgin Number 01384 xxxxx" How can such a simple request turn into such a horible mess, so if there is actualy anyone who knows what they are talking about could they please contact me, surely I am not the only person to switch from Virgin to BT requesting to keep their number, I just wish I could afford the £600.00 I was toldI will have to pay if I cancelled my account immediately, well I guess 18 Months is not that long, then I will be free from the most ignorant organisation I have ever had the displeasure to have dealt with and I will post this on every forum I can find to warn off people who are thinking of joining BT, Virgin Sucks but be assured BT is multitudes worse!!!!!

    So I was told last night that the "Special Cases Team" will be contacting me today, have they HECK NO!!!! does a team like that actually exist? My guess is probably not! So I will try and forget about it for tonight and then tomorrow I will try and contact someone in this mysterious department, the one that deals with such complex issues as "I am moving from Virgin Media, I would like to keep my Number" This is such a complex request that it take a "Special Cases Team", well that is if it actually exists, to deal with such a case. So I now understand that my Virgin Number exists in the Stourbridge Telephone Exchange, so my question to BT Management is why allocate me a number from the Brierly Hill Exchange, when it quite a simple check, there are several websites that will tell you what exchange your number originates from, and when I asked this simple request to keep my number. I was told that BT can not give me that number at the Stourbridge Exchange because of my address, so my question is how on earth can Virgin allocate me a number at the Stourbridge exchange for the same address where I lived for the past 8 years? Well I am getting tired of this situation, but I will not give up until this is resolved, so let us see how long BT will leave me with a perfectly useless phoneline and how many more important appointments I will miss because, even I am not sure what number I have now, afterall BT has only been notified on 02/11/2013, not bad handling of a simple request he, and to date not one customer relations member of staff could be bothered to contact me, never mind a manager, mind you do those actually exist or are they working on how to cause most headaches for new customers and ensure that they cancel their contract at the soonest possible date!

  • Screenshots in cover flow of Safari history are empty. Why? Who knows?

    Screenshots in cover flow of Safari history are empty. Whereas all history is visible. Why? Who knows?

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up guest users” (without the quotes) in the search box. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
    When you see the gray Apple logo, release the shift key.
    If you are prompted to log in, type your password, and then hold down the shift key again as you click Log in.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.  The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    *Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • Hi. I am working on a Mac OSX 10.10.2 Yosemite. I'm working remotely with a woman who is using indesign CS8.2 I'm still on CS6.8 and can't open her files. I would like to upgrade to the latest version and I'd also like to know why these upgrades are not a

    Hi. I am working on a Mac OSX 10.10.2 Yosemite. I'm working remotely with a woman who is using indesign CS8.2 I'm still on CS6.8 and can't open her files. I would like to upgrade to the latest version and I'd also like to know why these upgrades are not automatic as i pay a monthly subscription to the cloud. Thanks.

    A Cloud subscription SHOULD always show you the most recent updates, so you may then choose to do the install
    CC desktop lists applications as "Up to Date" when they are not
    -http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html
    -and added step https://forums.adobe.com/thread/1529654
    Yosemite sometimes has problems, often related to "default" permissions needing to be changed
    -one person's solution https://forums.adobe.com/thread/1689788
    -and a Java update https://forums.adobe.com/thread/1507936
    -update breaks things https://forums.adobe.com/thread/1772260
    -http://blogs.adobe.com/creativecloud/creative-cloud-and-yosemite/
    -https://helpx.adobe.com/x-productkb/global/mac-os-yosemite-compatability.html

  • Just noticed that when I close my mail app by double clicking the home button and swiping up it dies something weird. After doing this when I open my mail, instead of showing all my mailboxes it automatically opens one of them instead. Anyone know why?

    Just noticed that when I close my mail app by double clicking the home button and swiping up it dies something weird. After doing this when I open my mail, instead of showing all my mailboxes it automatically opens one of them instead. Anyone know why?

    Just to recap, this is a collection of ports I have collected over time for people who needed this information when setting up the HP ePrint app so that they could view their email from within the app.  I am certain other applications also need this information.  Although lengthy, I could not find a more comprehensive place to retrieve this information.  Feel free to post additional information, faulty information, or other related topics below as this is simply a collection of data and it would be practically impossible to test all of them. Thank you!
    Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
    When a solution is found please mark the post that solves your issue.
    Every problem has a solution!

  • Goodnight. as you know apple has evolved considerably until today but there are people who do not have ability to buy new products. in my case I would like to know why the apple do not let the iphone 3g update to iOS 4.3 as are several applications that c

    goodnight. as you know apple has evolved considerably until today but there are people who do not have ability to buy new products. in my case I would like to know why the apple do not let the iphone 3g update to iOS 4.3 as are several applications that can not put on my iphone 3g due to this reason. Why does not Apple make a repository with applications for ios 4.2.1? or else do not work in an update to ios 4.3 on iphone 3g?

    This has nothing to do with Apple, as Apple does not make the apps.
    This is the decision of the app maker.
    Contact those app makers and ask them why they do this.

  • How can i edit my contacts?and i dont really used my phone and its automatically add a contacts and email adds.. I dont know why that happen..i just turn my phone off and this is happen..

      How can i edit my contacts?and i dont really used my phone and its automatically add a contacts and email adds.. I dont know why that happen..i just turn my phone off and this is happen..

    Contacts are synced with a compatible programme in the computer; in the iCloud or with Yahoo and Google Mail. You can directly "edit" a contact on the phone and/or within the programme that you are syncing your contacts with.
    Have you configured/setup mails on your iPhone? If yes, check the contents of the mail account(s) individually. (including iCloud)  from SETTINGS - MAILS, CONTACTS, CALENDARS
    "Contacts" if chosen from the mail account (s) would add email addresses to your contacts.
    http://support.apple.com/kb/HT1296

Maybe you are looking for

  • Error in 10g but not in 9i

    Hi i have configured modplsql and used DADs to execute some packages from my database to run my web application. When i create DADs on Application server 9i release 1, it works fine but on 10g(9.0.4) it is giving my following error I really cant unde

  • Nokia C3 - Battery Issue

     Hi, Please I need your support for my probelm with the battery of my mobile Nokia C3. The problem is the battery is not set long and every days need to charge . And the charging is taking long more than 4 hr to full the battery. So i want to know if

  • Mapping and designing COA

    Hi friends, Can anyone please tell me what does someone mean when he say designing COA. Please share some knowledge on difining ,developing ,mapping COA interfaces with legacy systems. Thanks

  • How to associated Classification in DIR (DMS)

    Hi all, I would like to associate some Charateristic values to my doc., but i'm unable to do so as Link (Extra --> Classification) in CV01N transaction is grey. I had maintain the Object type and class Type using SPRO Setting. Table : Draw Object Typ

  • IPhoto from 10.4 to 10.5 is it compatible? Can't get my photos out of the database

    Can anyone help.  I have a manual and a time machine backup before my computer went to apple for repair.  My hard drive was replaced but I had my time machine back up.  Once I updated from time machine there were no photos.  I grabbed my iPhoto Libra