Results 1 to 11 of 11
- 06-16-2011, 05:25 PM #1
Member
- Join Date
- Jun 2011
- Posts
- 5
- Rep Power
- 0
- 06-16-2011, 06:28 PM #2
Create a window of some kind that displays the image and then dispose of it after some time delay.
Why is this thread hidden here vs in the New to Java thread?
- 06-16-2011, 07:07 PM #3
Member
- Join Date
- Jun 2011
- Posts
- 5
- Rep Power
- 0
Can you please give me the syntax of that?
- 06-16-2011, 07:09 PM #4
There are several examples of code on this forum. Use the search for the paintComponent method.
Or look at my recent posts. I think I posted a short simple code example.
- 06-16-2011, 08:21 PM #5
Member
- Join Date
- Jun 2011
- Posts
- 5
- Rep Power
- 0
I thought the paintComponent method is for drawing shapes on a JPanel. So, it can also make images pop up as well?
(And you did not post a short code example.)
- 06-16-2011, 08:33 PM #6
No it does not make images pop up.make images pop up
The paintComponent method is where you get the reference to a Graphics object that can be used to draw an image.
You have to create the place for the image to be drawn.
Look again. It's there.you did not post a short code example
- 06-16-2011, 09:05 PM #7
Moved here from Reviews/Advertising. 'Snowball', please take the effort to post in an appropriate section of the forums.
db
- 06-16-2011, 11:00 PM #8
Member
- Join Date
- Jun 2011
- Location
- San Diego, CA
- Posts
- 24
- Rep Power
- 0
This may be the thread where Norm posted a short sample code block to do something similar to what you are trying to do:
Drawing BufferedImage or Graphics2D to window
If it's not the correct one, you can just click on his user name and scroll through recent posts until you see bits of code.
- 06-16-2011, 11:03 PM #9
Thanks JDScoot. I'm sure you saved the OP a lot of work.
- 06-16-2011, 11:11 PM #10
Member
- Join Date
- Jun 2011
- Location
- San Diego, CA
- Posts
- 24
- Rep Power
- 0
Was just making sure the OP understood you meant in another thread and not a previous post in this thread. I'm too nice I guess.
Last edited by JDScoot; 06-16-2011 at 11:15 PM.
- 06-16-2011, 11:15 PM #11
Similar Threads
-
How can I make a buffered image solid?
By rajkobie in forum AWT / SwingReplies: 2Last Post: 04-17-2011, 08:35 AM -
Make a clickable moving image?
By scheffetz in forum New To JavaReplies: 1Last Post: 04-08-2011, 07:54 PM -
How to make a background image
By Purple Turtle in forum Java SoftwareReplies: 2Last Post: 11-04-2010, 07:32 AM -
To make image move
By mneskovic in forum New To JavaReplies: 4Last Post: 05-08-2010, 08:23 PM -
want to make a menu bar for image processing
By vidhi in forum Java 2DReplies: 1Last Post: 01-15-2008, 07:12 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks