Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
An dieser Stelle weise ich allerdings auf meine Signatur hin. Wenn es um ein einfaches Hintergrundbild in einem JPanel geht und das Programm ansonsten kaum anforderungen hat, würde ich das Bild einfach skaliert zeichnen. Kannst ja einen Kommentar an die Stelle machen, dass dort Optimierungsmöglichkeiten bestehen...Der performance impact für skalieren ist übrigens gewaltig. Wo immer du die Möglichkeit hast, würde ich empfehlen die Bilder gleich in der richtigen Größe auszuliefern, auch wenn sie sich dadurch duplizieren.
Wenn das nicht geht, merk dir im Speicher die skalierte Version und skaliere nicht bei jedem Zeichnen.
Java SE 6 CompatibilityDouble buffering enhancements
Currently, there can be a noticable delay between the time a window is unobscured and the time the window is repainted.
In Java SE 6, Swing provides full double buffering. For each window, Java SE 6 maintains an offscreen buffer that remains in sync with the onscreen window buffer. Any time a window is unobscured, Swing copies from the back buffer directly to the screen. Swing also manages repainting for JWindow, JDialog, JApplet, JFrame and other heavyweight components in the Swing package. New methods have been added to RepaintManager to manage this activity.
Applications which can rely on Swing to do painting on an expose event can be affected. In Java SE 6, Swing classes might not paint an expose event if they can instead refresh the screen from the backbuffer.