Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 08:57

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Java Bild aufrufen

Discussion on Java Bild aufrufen within the General Coding forum part of the Coders Den category.

Closed Thread
 
Old   #1
 
bashdard's Avatar
 
elite*gold: 1
Join Date: Apr 2012
Posts: 376
Received Thanks: 55
Java Bild aufrufen

Hey,
ich habe ein Problem mit Java, nämlich wie kann ich Bilder aus der .jar auslesen und in meinem Programm verwenden?



Wie kann ich das Bild "ammo_crate.png" als ImageIcon aufrufen?
bashdard is offline  
Old 08/23/2012, 21:28   #2

 
Obilee's Avatar
 
elite*gold: 144
Join Date: May 2007
Posts: 62,459
Received Thanks: 29,541
ImageIcon icon = new ImageIcon(getClass().getResource("ammo_crate.png") ); bzw. "resources/" vor dem Path ranhängen wenn die klasse iwo anders ist.
Obilee is offline  
Thanks
1 User
Old 08/24/2012, 20:12   #3
 
bashdard's Avatar
 
elite*gold: 1
Join Date: Apr 2012
Posts: 376
Received Thanks: 55
Quote:
Originally Posted by Obilee View Post
ImageIcon icon = new ImageIcon(getClass().getResource("ammo_crate.png") ); bzw. "resources/" vor dem Path ranhängen wenn die klasse iwo anders ist.
Danke, klappt!
bashdard is offline  
Closed Thread


Similar Threads Similar Threads
[JAVA Error] Could not create the java virtual machine
07/21/2013 - Technical Support - 10 Replies
Schönen Abend! Leider hat es sich aus einem unerfindlichen Grund ergeben, dass sobald ich die Minecraft.exe starten will die Errormeldung kommt. Die Tips auf Minecraft.net habe ich schon ohne Erfolg befolgt. Hoffe ihr könnt mir weiterhelfen... Mein PC:
[Java] Could not create the Java virtual machine
06/22/2011 - Minecraft - 1 Replies
hallo ihr minecraftler ^^ habe seit heute das problem das wenn ich minecraft starte original als auch cracked das diese fehlermeldung kommt: Java virtual machine Launcher Could not create the Java virtual machine
[VC++] Formular in Dll aufrufen
06/14/2009 - C/C++ - 9 Replies
Hi, ich habe vor kurzem ein wenig mit C++ angefangen. Nun bin ich auf ein Problem gestoßen, bei dem mir auch Google nicht weiterhilft (wahrscheinlich benutze ich einfach nur die falschen Suchbegriffe). Ich will eine Dll in einen anderen Prozess injecten und diese dann ein Formular öffnen lassen. In Delphi habe ich das mit folgendem Code hinbekommen: begin if appHandle = 0 then apphandle := GetActiveWindow; Application.Handle := appHandle; try Form1 :=...



All times are GMT +1. The time now is 08:59.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.