Results 1 to 6 of 6
Thread: help with new Swing component
- 06-09-2012, 12:09 AM #1
Member
- Join Date
- Oct 2011
- Posts
- 28
- Rep Power
- 0
- 06-09-2012, 12:32 AM #2
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,619
- Rep Power
- 5
Re: help with new Swing component
Have you read the specific subjects in the Swing Tutorials?
Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials)
If not, I'd suggest to start there. There are step by step instructions and code examples to do exactly what you need. If you have read them, then I recommend asking a more specific question.
- 06-09-2012, 05:46 AM #3
- 06-09-2012, 12:14 PM #4
Member
- Join Date
- Oct 2011
- Posts
- 28
- Rep Power
- 0
Re: help with new Swing component
ok just one question...
how am I suppose to use the image icon to display a part of an image?
- 06-09-2012, 01:31 PM #5
Re: help with new Swing component
Load the image (see ImageIO)
Create a subimage (see BufferedImage and, if you like, Graphics)
Construct the icon (see ImageIcon)
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 06-09-2012, 01:39 PM #6
Member
- Join Date
- Oct 2011
- Posts
- 28
- Rep Power
- 0
Similar Threads
-
hi, how to add a graphic component , say a line2D, to a swing?
By noobplus in forum AWT / SwingReplies: 26Last Post: 03-12-2012, 05:11 PM -
can't add to JPanel after removeAll() is triggered by another swing component
By apchar in forum AWT / SwingReplies: 8Last Post: 07-05-2011, 10:12 AM -
Which swing component is suitable for TextEditor...?
By Dinesh_rockz in forum AWT / SwingReplies: 1Last Post: 02-23-2011, 05:41 AM -
swing component
By cahyadiakbar in forum AWT / SwingReplies: 0Last Post: 09-22-2010, 10:40 AM -
Swing - Changing component default font
By Java Tip in forum Java TipReplies: 0Last Post: 03-11-2008, 10:52 PM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks