CryoEnix Posted August 2, 2005 Posted August 2, 2005 Hey guys, I'm back with more irritating questions - once again, I've run into a brick wall with my manual VB.NET to Java program ports. This time, I'm trying to load an icon into a java object from a file - whether the icon is tied to the file in question (as in .exe files), or found through file associations (like the notepad icon on a .txt). In VB.NET this can be accomplished with the straightforward GetIcon() method, but is there an equivelant method/class in Java? Please help, or at least direct me to a good place to look on the net - google has finally failed me. Quote Chaos is merely logic beyond human comprehension
ThePentiumGuy Posted August 13, 2005 Posted August 13, 2005 I'm actually not sure at all how you assign an icon to a type of file...but I can show you to look...java.awt.ImageIcon (it oculd also be in javax.Swing, not too sure). Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
CryoEnix Posted August 13, 2005 Author Posted August 13, 2005 Cheers dude, I'll look into that right now. Quote Chaos is merely logic beyond human comprehension
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.