• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display image on previous JFrame?

 
Andre Tampubolon
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm working an a simple image processing app (using Netbeans).

Now I have these 2 classes (simplified for clarity):




MainForm is... well the main from (which contains the main() method).
When its btnLoad is clicked, EditForm will appear and display the image previously displayed on MainForm
We can do fancy image processing stuffs here. Once done, click the btnOK, EditForm will disappear and the edited image will be displayed
in lblImage.

What I want to know is how to "pass" the image edited on EditForm to MainForm's lblImage if EditForm's btnOK is clicked?
Thank you.
 
Campbell Ritchie
Sheriff
Posts: 51361
87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

Why do you have two frames? Use one frame. If you require a secondary display consider card layout or a dialogue window.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic