Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-14-2007, 07:59 PM
Senior Member
 
Join Date: Jun 2007
Posts: 130
Jack is on a distinguished road
JLabel
Hi guys, I have a silly question:
When I do:
Code:
JLabel label= new JLabel("Hi", new ImageIcon("image.jpg"));
appears:

[image.jpg] Hi

How can I do that?

Hi [image.jpg];
thnx

Last edited by Jack : 06-30-2007 at 03:39 AM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-02-2007, 07:53 AM
bbq bbq is offline
Senior Member
 
Join Date: Jun 2007
Posts: 134
bbq is on a distinguished road
Did you try
Code:
JLabel label= new JLabel(new ImageIcon("image.jpg"),"Hi");
??
it's ridiculous but maybe it works
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-02-2007, 03:55 PM
Senior Member
 
Join Date: Jun 2007
Posts: 119
Peter is on a distinguished road
Have you use jigloo?Cloud Garden - Jigloo GUI Builder (SWT and Swing) for Eclipse
This is a free plugin that allows to drag and drop components without programming them.
Also each component have their properties and you can do a jlabel and it's easy to put an image inside it with this tool.
try it.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
JLabel append? Jononomous New To Java 0 04-07-2008 09:41 PM
JLabel .setActionCommand stevemcc AWT / Swing 1 03-28-2008 06:16 AM
Problems with JLabel 2 geork New To Java 2 02-03-2008 10:40 PM
help me with JFrame and JLabel michcio New To Java 5 11-20-2007 09:44 AM
JLabel Freddie AWT / Swing 2 05-29-2007 04:19 PM


All times are GMT +3. The time now is 02:58 PM.


VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org