Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2008

Tip: Looking for answers? Try searching our database.

Image with label

Thread view: 
CezarAntonio - 15 Dec 2007 22:24 GMT
Hi friends.
I'm need put one label up one image in J2SE.
Is posible? Anybody help-me? I would like an example

I'm brazilian, sorry my english.
Cézar
Andrew Thompson - 16 Dec 2007 01:08 GMT
...
>I'm need put one label up one image in J2SE.
>Is posible?

Use a javax.swing.JLabel

>..Anybody help-me? I would like an example

I would like a pony.  Why don't you try it yourself,
read the Java Tutuorial, and if you have any problems,
ask on com.lang.java.help (not comp.lang.java.programmer)?

Signature

Andrew Thompson
http://www.physci.org/

CezarAntonio - 04 Jan 2008 18:56 GMT
I think that I did not explain correctly, and my problem excessively
seemed to be simple.
The components that I needed (jLayeredPane1,MatteBorder,GroupLayout)
not exists in J2SE 5.0.

Of any form, thank's for your biggest help.

Cézar
Andrew Thompson - 05 Jan 2008 02:03 GMT
>I think that I did not explain correctly, and my problem excessively
>seemed to be simple.

Putting an image in a label?  That is what I was
explainign, and yes, it is simple.

>The components that I needed (jLayeredPane1,MatteBorder,GroupLayout)
>not exists in J2SE 5.0.

There is no class named jLayeredPane1, though JLayeredPane
was in Java 1.4, as was MatteBorder.  Change the GroupLayout
(introduced in 1.6) for a different layout and the code should be
OK to compile in 1.5.

>Of any form, thank's for your biggest help.

My 'biggest' help is expensive.  Here I offer 'usenet help',
which requires a lot of effort from you.

Signature

Andrew Thompson
http://www.physci.org/

Lew - 05 Jan 2008 03:41 GMT
CezarAntonio wrote:
>> The components that I needed (jLayeredPane1,MatteBorder,GroupLayout)
>> not exists in J2SE 5.0.

> There is no class named jLayeredPane1, though JLayeredPane
> was in Java 1.4, as was MatteBorder.

<http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLayeredPane.html>
<http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/border/MatteBorder.html>

Signature

Lew



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.