2 Images in One Frame
I want to make an Edge Detection program with the layout showed in the picture below.
The Edge Detected image will have to be able to be repainted when the run algorithm button is pressed. How do I display 2 images at once? When I try making and imageframe, or using paint(Graphics g), only the image is displayed and the buttons do not appear.
What is an image frame? Please tell the details.
Does it have anything to do with your mixing AWT and Swing code as you do here: Java Programming - Why does my grayscale image appear black?
By the way, you never responded to that post.
To display more than one image, often we create ImageIcons and place them in JLabels, and format the structure of the GUI using layout managers as is well described in the Sun Swing tutorials. To change images, simply create a new ImageIcon and swap the icons in the displayed JLabel.
Oh, never mind about the ImageFrame.
I got 2 images to display at once using ImageIcons~~
Thanks so much for your help!!!
I'm glad you've got things working, congrats!