This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Picture Question  RSS feed

 
Atrus Greyor
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What would the code be to put a picture off of your hard drive on to a frame? Any help would be appreciated
 
Jeffrey Hunter
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the Java API, specifically:
  • Image
  • ImageIcon
  • JLabel (you can pass an Image into one of the JLabel constructors).

  • [ May 04, 2004: Message edited by: Jeffrey Hunter ]
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!