Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
Swing / AWT / SWT
Create Image object
Weronpc
Greenhorn
Posts: 26
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I can create an Image within a
Applet
Image image = getImage("image location");
How do I create an Image object within JFram?
1 + 1 = 10
Craig Wood
Ranch Hand
Posts: 1535
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
// boiler plate image = Toolkit.getDefaultToolkit().getImage(url_or_imageLocation); // " .createImage(... // needs a MediaTracker for synchronous loading // for j2se 1.2+ image = new ImageIcon(url_or_imageLocation).getImage(); // for j2se 1.4+ image = ImageIO.read(url_or_file_or_inputStream);
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
IE float problem
MathML support in Java Swing application.
Changing the coffee mug icon on the frame
Any solutions to support MathML within JEditorPane
Java Memory Model: A cache image data question, multithreaded.
More...