The Artima Developer Community
Sponsored Link

Java Answers Forum
Images in JComboBox

1 reply on 1 page. Most recent reply: Aug 17, 2003 9:07 PM by Nikhil

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Matt Pociask

Posts: 9
Nickname: mpociask
Registered: Aug, 2003

Images in JComboBox Posted: Aug 14, 2003 1:18 PM
Reply to this message Reply
Advertisement
I am a little new to higher level languages like Java. How would I go about subclassing JComboBox to add functionability to add an image the left of the text of the list?


Nikhil

Posts: 2
Nickname: nikhil77
Registered: Aug, 2003

Re: Images in JComboBox Posted: Aug 17, 2003 9:07 PM
Reply to this message Reply
hi Pociask,
you might want to have a look at the following site :
http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html#renderer
I guess this is what you are looking for,
regards
Nikhil

Flat View: This topic has 1 reply on 1 page
Topic: where can i find source code for system explorer Previous Topic   Next Topic Topic: how to search a word in a file

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use