embedded-resource

Charger l'image à partir d'un chemin de fichiers via BufferedImage

J'ai un problème avec l'application Java, en particulier lors du chargement d'une image à partir d'un emplacement sur mon ord ... ); } catch (IOException e) { System.out.println("The image was not loaded."); //System.exit(1); } return null; }

Obtenir un visage heureux pour apparaître en Java

J'ai du mal à afficher mon fichier image, src/happyFace.gif, dans mon interface graphique Java. L'objectif est d'afficher une ... if (y <= 0 || y >= HEIGHT-IMAGE_SIZE) moveY = moveY * -1; repaint(); } } }

Musique de fond en boucle en Java?

J'essaie de faire jouer de la musique dans mon application et j'ai ce code mais je reçois juste une exception de pointeur nul ... System.out.println("File Not Found"); System.out.println(error); } myBackgroundPlayer.start(myLoop); }

Carica l'immagine da un percorso file tramite BufferedImage

Ho un problema con l'applicazione Java, in particolare nel caricare un'immagine da una posizione nel mio computer. Segui que ... ); } catch (IOException e) { System.out.println("The image was not loaded."); //System.exit(1); } return null; }

Ottenere un volto felice di presentarsi in Java

Ho problemi con la visualizzazione del mio file immagine, src/happyFace.gif, nella mia GUI Java. L'obiettivo è quello di visu ... if (y <= 0 || y >= HEIGHT-IMAGE_SIZE) moveY = moveY * -1; repaint(); } } }

Looping Musica di sottofondo in Java?

Sto cercando di far riprodurre musica nella mia applicazione e ho questo codice ma ho solo un'eccezione di puntatore nullo. I ... System.out.println("File Not Found"); System.out.println(error); } myBackgroundPlayer.start(myLoop); }