Results 1 to 4 of 4
Thread: 2 Images in One Frame
- 07-07-2010, 04:48 PM #1
Member
- Join Date
- May 2010
- Posts
- 4
- Rep Power
- 0
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.Last edited by Fubarable; 07-07-2010 at 05:09 PM.
- 07-07-2010, 10:04 PM #3
Member
- Join Date
- May 2010
- Posts
- 4
- Rep Power
- 0
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!
Similar Threads
-
No frame?
By Lars1111 in forum Java AppletsReplies: 3Last Post: 04-16-2010, 02:47 AM -
Returning focus to a frame after hiding another frame
By fletcher in forum AWT / SwingReplies: 7Last Post: 11-02-2009, 06:31 PM -
Adding multiple images to frame
By 435.mahesh in forum AWT / SwingReplies: 1Last Post: 04-24-2009, 08:31 PM -
Images in AWT frame
By Urgle in forum New To JavaReplies: 4Last Post: 12-02-2008, 06:37 AM -
Frame to other Frame
By Aswq in forum New To JavaReplies: 2Last Post: 07-19-2008, 04:27 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks