NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Resizing Images in Netbeans

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
mikaelD



Joined: 19 Dec 2008
Posts: 1

PostPosted: Fri Dec 19, 2008 9:25 am    Post subject: Resizing Images in Netbeans Reply with quote

Hello,

I'm quite new to netBeans and I'm trying to make an Java application that would use images as buttons or background.
It seems rather simple to use a JButton or a JLabel and their icons to put the images but then, I'm unable to resize the image. The resizing of the button or of the label only cuts the image.
Is there a solution ?

Please Help me Sad !
Back to top
Peter Pis
Posted via mailing list.





PostPosted: Tue Dec 23, 2008 12:49 pm    Post subject: Resizing Images in Netbeans Reply with quote

Hi,

have you tried this:
http://java.sun.com/docs/books/tutorial/2d/images/drawimage.html

Your application should listen on appropriate events and according to
them, just do resizing of the image.

Regards,
-Peter

mikaelD wrote:
Quote:
Hello,



I'm quite new to netBeans and I'm trying to make an Java application that would use images as buttons or background.

It seems rather simple to use a JButton or a JLabel and their icons to put the images but then, I'm unable to resize the image. The resizing of the button or of the label only cuts the image.

Is there a solution ?



Please Help me Sad !




Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo