NetBeans Forums

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

Add images to gui - Gui Builder

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
Samarions
Posted via mailing list.





PostPosted: Sat Sep 27, 2008 8:07 pm    Post subject: Add images to gui - Gui Builder Reply with quote

Hi,

I'm going crazy here, trying to add an image to a gui I'm making, using the
Netbeans gui builder.

I've downloaded the swingx-jar in hope of trying to use stuff there but
nothing works. JXImagePanel, JXImageView... I can't figure out what to use
and how to use it.

This is my first time using a gui editor.

Help!
--
View this message in context: http://www.nabble.com/Add-images-to-gui---Gui-Builder-tp19706028p19706028.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.
Back to top
Johnny Kewl
Posted via mailing list.





PostPosted: Sun Sep 28, 2008 10:19 am    Post subject: Add images to gui - Gui Builder Reply with quote

----- Original Message -----
From: "Samarions" <address-removed>
To: <address-removed>
Sent: Saturday, September 27, 2008 10:07 PM
Subject: [nbusers] Add images to gui - Gui Builder


Quote:

Hi,

I'm going crazy here, trying to add an image to a gui I'm making, using
the
Netbeans gui builder.

I've downloaded the swingx-jar in hope of trying to use stuff there but
nothing works. JXImagePanel, JXImageView... I can't figure out what to use
and how to use it.

This is my first time using a gui editor.

Help!


Open a normal Java Project, add a JFrame (so you can tes this)
Add the image to your project... will be in the classpath
Compile it...
Add a JLabel to the frame, or panel or whatever...
Look at the JLabel props... click on the ... button
Select the image from the classpath you put it in...

Done!

Try an animated gif... thats fun

If you look at the code it generates, that is the basis for image loading.
Then Java 2D stuff lets you do stuff like rotate, resize... yada yada... if
you need that.

Have fun...

---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---------------------------------------------------------------------------
Back to top
Johnny Kewl
Posted via mailing list.





PostPosted: Sun Sep 28, 2008 10:21 am    Post subject: Add images to gui - Gui Builder Reply with quote

----- Original Message -----
From: "Johnny Kewl" <address-removed>
To: <address-removed>
Sent: Sunday, September 28, 2008 12:20 PM
Subject: Re: [nbusers] Add images to gui - Gui Builder


Quote:

----- Original Message -----
From: "Samarions" <address-removed>
To: <address-removed>
Sent: Saturday, September 27, 2008 10:07 PM
Subject: [nbusers] Add images to gui - Gui Builder


Quote:

Hi,

I'm going crazy here, trying to add an image to a gui I'm making, using
the
Netbeans gui builder.

I've downloaded the swingx-jar in hope of trying to use stuff there but
nothing works. JXImagePanel, JXImageView... I can't figure out what to
use
and how to use it.

This is my first time using a gui editor.

Help!


Open a normal Java Project, add a JFrame (so you can tes this)
Add the image to your project... will be in the classpath
Compile it...
Add a JLabel to the frame, or panel or whatever...
Look at the JLabel props... click on the ... button

ICON property

Quote:
Select the image from the classpath you put it in...

Done!

Try an animated gif... thats fun

If you look at the code it generates, that is the basis for image loading.
Then Java 2D stuff lets you do stuff like rotate, resize... yada yada...
if you need that.

Have fun...

---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---------------------------------------------------------------------------
Back to top
Samarions
Posted via mailing list.





PostPosted: Sun Sep 28, 2008 11:43 am    Post subject: Add images to gui - Gui Builder Reply with quote

Yeeeey!

That was too easy. Now my Frame will be finished in aminute.

Thanks, you saved the day.


Johnny Kewl wrote:
Quote:


----- Original Message -----
From: "Samarions" <address-removed>
To: <address-removed>
Sent: Saturday, September 27, 2008 10:07 PM
Subject: [nbusers] Add images to gui - Gui Builder


Quote:

Hi,

I'm going crazy here, trying to add an image to a gui I'm making, using
the
Netbeans gui builder.

I've downloaded the swingx-jar in hope of trying to use stuff there but
nothing works. JXImagePanel, JXImageView... I can't figure out what to
use
and how to use it.

This is my first time using a gui editor.

Help!


Open a normal Java Project, add a JFrame (so you can tes this)
Add the image to your project... will be in the classpath
Compile it...
Add a JLabel to the frame, or panel or whatever...
Look at the JLabel props... click on the ... button
Select the image from the classpath you put it in...

Done!

Try an animated gif... thats fun

If you look at the code it generates, that is the basis for image loading.
Then Java 2D stuff lets you do stuff like rotate, resize... yada yada...
if
you need that.

Have fun...

---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---------------------------------------------------------------------------




--
View this message in context: http://www.nabble.com/Add-images-to-gui---Gui-Builder-tp19706028p19710902.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.
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 can 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